Add Bing Conversion Tracking To Shopify
Add Bing Conversion Tracking To Shopify

A step by step guide on how to add Bing’s conversion tracking code to your Shopify shop.

Getting Your Code

Log in to Bing and navigate to Campaigns > Conversion Tracking (bottom left corner)

Bing Conversion Tracking Step 1

Now click on Get Started

Bing Conversion Tracking Get Started

Click on Create UET Tag

Bing Create UET Tag

Enter a UET Tag Name and click on Save

Bing Create UET Tag2

Now download the UET Tag for use in a later step and close the popup message

Download Bing UET Tag

From the left hand menu click on Conversion Goals then on Create Conversion Goal

Bing Conversion Goals

Enter a Goal Name and choose Destination, then click on Next

Goal Description
  • In the Destination URL, choose regular expression with the value .*thank_you
  • In the Revenue value choose: Conversion action value may vary (for example, by purchase price)
  • In the Count section choose: Unique (for example, if one ad click leads to three purchases, that will count as one conversion.)
  • Assign it to the UET Tag that you created. In this example it is Shopify
  • Click on Save
Bing Conversion Goal Details

Adding The Code

Log in to Shopify and go to Settings > Checkout

Shopify Settings Checkout

Scroll down till you see Order Processing and in this section Additional Scripts

Shopify 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.

   window.uetq = window.uetq || []; 
   window.uetq.push({ 'gv': {{ total_price | money_without_currency | remove:',' }}, 'gc': '{{ shop.currency }}' }); 

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>
   window.uetq = window.uetq || []; 
   window.uetq.push({ 'gv': {{ total_price | money_without_currency | remove:',' }}, 'gc': '{{ shop.currency }}' }); 
{% endif %}

You can now click on save.

Need Help?

Recent Posts

Google Merchant Center Surfaces Across Google Out of Stock Products Disapproved
Google Merchant Center Shows Extra Countries I Don't Want
Google Merchant Center Store ID Error Local Inventory Feed
Facebook A product is missing a field: variant_label or variant_value
Install Google Tag Manager in Squarespace