Hi Skinnybloke
I thought as much, it's just actinic's answer seemed to good to be true...
Tried the following variations:
The problem I have is i'm not sure exactly how "real-time" analytics is. I mean for testing purposes does anyone know how long it takes before an ecommerce transaction is likely to appear on analytics?
I thought as much, it's just actinic's answer seemed to good to be true...
Tried the following variations:
=====================================================================
Doesn't work for me
=====================================================================
<form style="display:none" name="utmform">
<textarea id="utmtrans"></textarea>
</form>
<script language="JavaScript" type="text/javascript">
<!--
var realprice = <actinic:variable name="NumericOrderTotal"/>/100;
var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER"/>|affiliation|' + realprice + '|tax|shipping|city|state|<actinic:variable name="DeliveryCountry"/>';
var line2 = 'UTM:I|<actinic:variable name="THEORDERNUMBER"/>|<actinic:variable name="ProdRef"/>|<actinic:variable name="ProductNameOnline"/>|category|price|quantity';
document.getElementById('utmtrans').value = line1 + '
' + line2;
//-->
</script>
=====================================================================
Doesn't work for me
=====================================================================
<script type="text/javascript">
<!--
var utmt, utmi, utmordernumber, utmprice, utminvoice;
utmi = "";
utmordernumber = "NETQUOTEVAR:THEORDERNUMBER";
utminvoice = "NETQUOTEVAR:INVOICEADDRESS3|NETQUOTEVAR:INVOICEADDRESS4|NETQUOTEVAR:INVOICECOUNTRY";
-->
</script>
<Actinic:XMLTEMPLATE NAME="ShoppingCart">
<Actinic:XMLTEMPLATE NAME="OrderLine">
<script type="text/javascript">
<!--
utmt = "UTM:T|" + utmordernumber + "|Main Store|NETQUOTEVAR:TOTAL|NETQUOTEVAR:TAX1| NETQUOTEVAR:SHIPPING|" + utminvoice;
utmprice = "NETQUOTEVAR:PRICE";
-->
</script>
<Actinic:XMLTEMPLATE NAME="ProductLine">
<script type="text/javascript">
<!--
utmi += " UTM:I|" + utmordernumber + "|NETQUOTEVAR:PRODREF|NETQUOTEVAR:PRODUCTNAME|STOCK BAGS|" + utmprice + "|NETQUOTEVAR:QUANTITY";
-->
</script>
</Actinic:XMLTEMPLATE>
</Actinic:XMLTEMPLATE>
</Actinic:XMLTEMPLATE>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-XXXXXXXX";
urchinTracker("/sale_G1/receipt.html");
document.write('<form style="display:none;" name="utmform"><textarea id="utmtrans">' + utmt + utmi + '</textarea></form>';
</script>
==========================================================================
Doesn't work for me
=====================================================================
<form style="display:none" name="utmform">
<textarea id="utmtrans"></textarea>
</form>
<script language="JavaScript" type="text/javascript">
<!--
var realprice = <actinic:variable name="NumericOrderTotal"/>/100;
var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER"/>|affiliation|' + realprice + '|tax|shipping|city|state|<actinic:variable name="DeliveryCountry"/>';
var line2 = 'UTM:I|<actinic:variable name="THEORDERNUMBER"/>|<actinic:variable name="ProdRef"/>|<actinic:variable name="ProductNameOnline"/>|category|price|quantity';
document.getElementById('utmtrans').value = line1 + '
' + line2;
//-->
</script>
=====================================================================
Doesn't work for me
=====================================================================
<script type="text/javascript">
<!--
var utmt, utmi, utmordernumber, utmprice, utminvoice;
utmi = "";
utmordernumber = "NETQUOTEVAR:THEORDERNUMBER";
utminvoice = "NETQUOTEVAR:INVOICEADDRESS3|NETQUOTEVAR:INVOICEADDRESS4|NETQUOTEVAR:INVOICECOUNTRY";
-->
</script>
<Actinic:XMLTEMPLATE NAME="ShoppingCart">
<Actinic:XMLTEMPLATE NAME="OrderLine">
<script type="text/javascript">
<!--
utmt = "UTM:T|" + utmordernumber + "|Main Store|NETQUOTEVAR:TOTAL|NETQUOTEVAR:TAX1| NETQUOTEVAR:SHIPPING|" + utminvoice;
utmprice = "NETQUOTEVAR:PRICE";
-->
</script>
<Actinic:XMLTEMPLATE NAME="ProductLine">
<script type="text/javascript">
<!--
utmi += " UTM:I|" + utmordernumber + "|NETQUOTEVAR:PRODREF|NETQUOTEVAR:PRODUCTNAME|STOCK BAGS|" + utmprice + "|NETQUOTEVAR:QUANTITY";
-->
</script>
</Actinic:XMLTEMPLATE>
</Actinic:XMLTEMPLATE>
</Actinic:XMLTEMPLATE>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-XXXXXXXX";
urchinTracker("/sale_G1/receipt.html");
document.write('<form style="display:none;" name="utmform"><textarea id="utmtrans">' + utmt + utmi + '</textarea></form>';
</script>
==========================================================================
The problem I have is i'm not sure exactly how "real-time" analytics is. I mean for testing purposes does anyone know how long it takes before an ecommerce transaction is likely to appear on analytics?
Comment