The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Google Adwords Conversion Tracking: Confirmation of correct code

ocorralocorral Member
in Bugs & Feature Requests edited October 2012
Hi team,
I don't really have a question, I just want to confirm that my code is correct. I've used the ^^order_total^^ variable within my adwords conversion code and just want to make sure this will work and it doesn't require any parenthesis or anything. There isn't really a way for me to test it without buying a product myself or triggering a fake conversion. The ^^order_total^^ variable doesn't have a dollar sign correct?
^^receipt_only_begin^^
^^analytics_google_ga_async^^


<!-- Google Code for Purchase Complete Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXXXXXX;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "gM0LCLPr0wMQ1YW82wM";
var google_conversion_value = ^^order_total^^;
/* ]]> */
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">;
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/997130965/?value=0&amp;label=gM0LCLPr0wMQ1YW82wM&amp;guid=ON&amp;script=0"/>;
</div>
</noscript>


^^receipt_only_end^^

</body>
Comments
  • fc_adamfc_adam FoxyCart Team
    @ocorral,

    That should be ok - but we'd definitely recommend testing it. Even if you just throw it on a test store and run a couple quick test transactions to make sure it works as you expect. It shouldn't include a dollar sign, no.
Sign In or Register to comment.