I have recently added the Adwords tracking code to our receipt page and now get an error. This error is fixed by removing the
part of the code, However we need this to get the cost data transferred.
Actinic is now reporting an error on the receipt page
'A JavaScript error has been found on the page ('Expected')").
Any ideas?
Code:
var google_conversion_value = 0; if (NETQUOTEVAR:ACTINICORDERTOTAL) { google_conversion_value = NETQUOTEVAR:ACTINICORDERTOTAL / 100; }
Actinic is now reporting an error on the receipt page
'A JavaScript error has been found on the page ('Expected')").
Code:
<!-- Google Code for Purchase/Sale Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 123456789; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "purchase"; var google_conversion_value = 0; if (NETQUOTEVAR:ACTINICORDERTOTAL) { google_conversion_value = NETQUOTEVAR:ACTINICORDERTOTAL / 100; } /* ]]> */ </script> <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/123456789/?label=purchase&guid=ON&script=0"/> </div> </noscript>
Comment