Jake Herbert
07-02-08, 01:40 PM
Hi,
I am having a hard time passing a variable for google analtics on my INVC page.
Here is a snap shot of the code I am using to pass the order totals.
<textarea id="utmtrans">
UTM:T|&mvt:order:id;|mainstore|&mvt:order:total;|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'TAX'">&mvt:charge:amount;|</mvt:if></mvt:foreach>
<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'SHIPPING'">&mvt:charge:amount;|</mvt:if></mvt:foreach>
This passes the shipping charges and taxes correctly, but the page output includes "&mvt:order:id;" and "&mvt:order:total;" instead of the actual value.
Output of this on the INVC page is
<textarea id="utmtrans">
UTM:T|&mvt:order:id;|mainstore|&mvt:order:total;|1.183|
5.06Somehow it is not showing the variable, the weird thing is that I use &mvt:order:id; earlier on in the INVC page and it correctly shows the order value.
Can any one help me?
Many Thanks
Jake Herbert
www.facewest.co.uk
I am having a hard time passing a variable for google analtics on my INVC page.
Here is a snap shot of the code I am using to pass the order totals.
<textarea id="utmtrans">
UTM:T|&mvt:order:id;|mainstore|&mvt:order:total;|<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'TAX'">&mvt:charge:amount;|</mvt:if></mvt:foreach>
<mvt:foreach iterator="charge" array="order:charges"><mvt:if expr="l.settings:charge:type EQ 'SHIPPING'">&mvt:charge:amount;|</mvt:if></mvt:foreach>
This passes the shipping charges and taxes correctly, but the page output includes "&mvt:order:id;" and "&mvt:order:total;" instead of the actual value.
Output of this on the INVC page is
<textarea id="utmtrans">
UTM:T|&mvt:order:id;|mainstore|&mvt:order:total;|1.183|
5.06Somehow it is not showing the variable, the weird thing is that I use &mvt:order:id; earlier on in the INVC page and it correctly shows the order value.
Can any one help me?
Many Thanks
Jake Herbert
www.facewest.co.uk