Please note: The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please post in our forum, but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
{% if cart_is_fullpage or context == “checkout” or context == “receipt” %}
{% endif %}
{% if first_receipt_display %} <script> window.uetq = window.uetq || []; window.uetq.push({ 'gv': {{ total_order }}, 'gc': '{{ locale_info.int_curr_symbol|trim }}' }); </script> {% endif %}
After all of those steps, you should have something that looks like the following:
{% if cart_is_fullpage or context == "checkout" or context == "receipt" %} <script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[] ,f=function(){var o={ti:"TAG_ID_HERE"}; o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")} ,n=d.createElement(t),n.src=r,n.async=1,n.onload=n .onreadystatechange=function() {var s=this.readyState;s &&s!=="loaded"&& s!=="complete"||(f(),n.onload=n. onreadystatechange=null)},i= d.getElementsByTagName(t)[0],i. parentNode.insertBefore(n,i)})(window,document,"script"," //bat.bing.com/bat.js","uetq");</script><noscript><img src="//bat.bing.com/action/0?ti=TAG_ID_HERE& Ver=2" height="0" width="0" style="display:none ; visibility: hidden;" /></noscript> {% endif %} {% if first_receipt_display %}<script> window.uetq = window.uetq || []; window.uetq.push({ 'gv': {{ total_order }}, 'gc': '{{ locale_info.int_curr_symbol|trim }}' }); </script> {% endif %}
Only use the above as a reference of what your resulting code should look like. Make sure you copy the UET tag code from Bing Ads management interface to ensure your tag ID is correctly included.
YOURSTORE.foxycart.com/receipt
or if you have a custom store domain that will look something like secure.yourstore.com/receipt
. You'll need to update either approaches to ensure it's your own FoxyCart store domain.