A step by step guide on how to add Bing’s conversion tracking code to your Shopify shop.
Log in to Bing and navigate to Campaigns > Conversion Tracking (bottom left corner)
Now click on Get Started
Click on Create UET Tag
Enter a UET Tag Name and click on Save
Now download the UET Tag for use in a later step and close the popup message
From the left hand menu click on Conversion Goals then on Create Conversion Goal
Enter a Goal Name and choose Destination, then click on Next
Log in to Shopify and go to Settings > Checkout
Scroll down till you see Order Processing and in this section Additional Scripts
Now paste on the first line the code below in the Additional scripts sections
{% if first_time_accessed %}
Now open the downloaded UET Tag, you will see two lines of basic text and the last line with the script. Copy the script and paste it underneath the code above. Now add the conversion value script below.
If you are using prices like 1,000.00
<script>
window.uetq = window.uetq || [];
window.uetq.push({ 'gv': {{ checkout.total_price | money_without_currency | remove:',' }}, 'gc': '{{ shop.currency }}' });
</script>
If you are using prices like 1.000,00 (Europe)
<script>
window.uetq = window.uetq || [];
window.uetq.push({ 'gv': {{ checkout.total_price | money_without_currency | remove:'.' | replace: ',', '.' }}, 'gc': '{{ shop.currency }}' });
</script>
Paste the final code below
{% endif %}
You should see a complete code looking similiar to the below.
{% if first_time_accessed %}
<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"12345678"};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>
<script>
window.uetq = window.uetq || [];
window.uetq.push({ 'gv': {{ checkout.total_price | money_without_currency | remove:',' }}, 'gc': '{{ shop.currency }}' });
</script>
{% endif %}
You can now click on save.