Hi
I have done a search on the forum and can't seem to find a post about implementing the new Google Analytics tags especially the Ecommerce code.
I have added the new code on my pages
<!-- START GOOGLE ANALYTICS CODE -->
<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 pageTracker = _gat._getTracker("UA-2480124-1");
pageTracker._trackPageview();
pageTracker._setDomainName(".www.funky-cards.co.uk");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
</script>
<!-- END GOOGLE ANALYTICS CODE -->
and now trying to work out how to go about adding the ecommerce tag on the receipt page. I have started with the below
<script language="JavaScript">
pageTracker._addTrans(
"<actinic:variable name="OrderNumberOnlineXML" />", // order ID - required
"Funky Cards", // affiliation or store name
"<actinic:variable name="Total" />", // total - required
"", // tax
"", // shipping
"", // city
"", // state or province
"" // country
);
pageTracker._addItem(
"<actinic:variable name="OrderNumberOnlineXML" />", // order ID - necessary to associate item with transaction
"75JKL", // SKU/code - required
"", // product name
"", // category or variation
"30", // unit price - required
"1" // quantity - required
);
pageTracker._trackTrans();
</script>
which is what google recommends but not sure how I implement the add item area into Actinic any help would be great.
Cheers
Darren
I have done a search on the forum and can't seem to find a post about implementing the new Google Analytics tags especially the Ecommerce code.
I have added the new code on my pages
<!-- START GOOGLE ANALYTICS CODE -->
<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 pageTracker = _gat._getTracker("UA-2480124-1");
pageTracker._trackPageview();
pageTracker._setDomainName(".www.funky-cards.co.uk");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
</script>
<!-- END GOOGLE ANALYTICS CODE -->
and now trying to work out how to go about adding the ecommerce tag on the receipt page. I have started with the below
<script language="JavaScript">
pageTracker._addTrans(
"<actinic:variable name="OrderNumberOnlineXML" />", // order ID - required
"Funky Cards", // affiliation or store name
"<actinic:variable name="Total" />", // total - required
"", // tax
"", // shipping
"", // city
"", // state or province
"" // country
);
pageTracker._addItem(
"<actinic:variable name="OrderNumberOnlineXML" />", // order ID - necessary to associate item with transaction
"75JKL", // SKU/code - required
"", // product name
"", // category or variation
"30", // unit price - required
"1" // quantity - required
);
pageTracker._trackTrans();
</script>
which is what google recommends but not sure how I implement the add item area into Actinic any help would be great.
Cheers
Darren
Comment