ga.js / Prostores - Google Analytics Tracking

Written by admin on 17.04.2008 | ProStores - Misc

Google would like to track additional information about ecommerce. To this end, they have developed new tracking code which is more powerful than the existing code.
Anyway, add the following 9 lines of code to your site’s HEADER template:
<script type=”text/javascript”>
var gaJsHost = ((”https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(”%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
var […]

Prostores Recently Viewed Products 0.1.4 released

Written by admin on 16.01.2008 | ProStores - Misc

Made a few corrections - the version I’d posted was a quick simplified version of live code which is more complicated. This version removed the css formatting information.
Download version 0.1.4

Prostores Recently Viewed Products 0.1.3 released

Written by admin on 14.01.2008 | ProStores - Misc

I’ve updated the recently viewed products code. Current release version is 0.1.3.
Download version 0.1.3

CSS Hacks in ProStores

Written by admin on 10.08.2007 | ProStores - Misc

Here is some code which I use as a building block to soling cross-browser issues. It may be helpful for the developers in the room.
first we figure out what the OS is and set $os to this value to one of the following: win, mac or linux.
[code]
<ss:set name=”useragent” value=”$request.getHeader(’user-agent’)”/>
<ss:if test=”$string.matches($useragent, ‘.*Windows.*’)”>
<ss:set name=”os” value=”win”/>
<ss:else/>
<ss:if test=”$string.matches($useragent, ‘.*Macinto.*’)”>
<ss:set […]

Links

Light Reading