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?
) and I can't find where the details to control it are stored. I've been through the design tab and read the AUG and searched but I can't seem to find the basic infor that tells me where to change the layout. If i go to the design tab and change the style (I'm using executive) little seems to happen. At present I have all the sections listed down the centre of the page followed by the new products bit and then the basket which has my old buttons from my old site but they are not showing as I assume they are not stored in the correct place for this version.
Comment