• Home
  • Blog Categories
    • AdWords
    • Facebook
    • Amazon
    • eCommerce
    • Lead Generation
    • Google Exams
  • Blog Archive

PPC Wins

Tips & strategies for getting the most from your PPC campaigns

How to setup Bing Revenue and Conversion Tracking in Shopify (Updated for 2018)

May 30, 2015 By John King 32 Comments

Recently I setup Bing Product ads for a client and was blown away by the performance. Conversions at 1/6 cost of Google Shopping! If you use Google Shopping in the US, and you’re not currently running Bing product ads, I recommend you test them out. Naturally your performance will vary based upon the niche, but you don’t know until you try.

Setting up product ads using Shopify is another post for another day.

One issue I did run into was setting up Bing revenue tracking.

In order to measure performance for eCommerce I highly recommend using the Conv. value / cost metric. This gives you a ratio for return on ad spend (e.g. $5 return for every $1 spent). For stores selling products with disparate price tags, this trumps CPA data. A $20 CPA may sound great, until you realise that many of your conversions are for $20 items!

To use this metric, you of course need to be tracking conv. value, or as they call it on the Bing platform, revenue.

Setup

Previously on Bing you would track conversions using Campaign Analytics (nested under the Tools link):

Bing Campaign Analytics

However, since they’ve removed this functionality in favour of Universal Event Tracking (UET), that’s where we’ll be heading. You can find the option under the Shared Library link on the left. Then select UET tags:

Then choose to create your UET Tag:

At this point Bing will provide the code you want to add to your Shopify checkout page:

Copy your version of the above code, and then we’ll place it into Shopify. The checkout code page can be found under Settings > Checkout

Then scroll down to:

Then paste your tag:

Next we need to add for revenue tracking. This is in fact the same for everyone (assuming you have a Shopify store!).

In the same box we just pasted the above tag code, below it, use either of the following codes (not both!):

To exclude taxes and shipping:

<!-- Bing - Passing Sales Value -->
<script>
   window.uetq = window.uetq || []; 
   window.uetq.push({ 'revenue_value': {{ subtotal_price | money_without_currency }}, 'currency': '{{ shop.currency }}' }); 
</script>

To include taxes and shipping:

<!-- Bing - Passing Sales Value -->
<script>
   window.uetq = window.uetq || []; 
   window.uetq.push({ 'revenue_value': {{ total_price | money_without_currency }}, 'currency': '{{ shop.currency }}' }); 
</script>

Specifically what this snippet of code does is to insert the checkout total, and then pass that to Bing, who link it up with the conversion tracking tag.

Now that’s done, we want to setup a goal. Go to the Conversion Goals Page:

Then choose to create a new conversion goal:

Here you want to select the Destination URL option:

On the next page you want to use the following options:

By using regular expressions, we can tell the goal to fire when someone reaches our checkout page.

Use the regular expression:

.*thank_you

Also, I should re-iterate to choose Count = Unique if you’re using Shopify. I ran into a lot of duplicate Bing conversions for my Shopify store, and decided to switch to unique to minimalise this. If you really want to keep the Count = All setting, then definitely make sure to surround your checkout code with “run once” code.

So, we’ve setup the UET tag, then setup a goal (for our checkout page), and linked the UET tag to that goal.

At this point you will have all the necessary Bing tracking code on your Shopify checkout page. And you can expect conversions and revenue figures to start appearing in your Bing dashboard.

One last step is to make sure you surround the code we’ve just created with Shopify’s “Run Once” command. This is because the order confirmation page doubles in utility as a place where people can check their order status. And thus, if they refresh it, it could trigger our code to run multiple times. Shopify’s snippet looks like:

{% if first_time_accessed %}
  <!-- Conversion scripts you want to run only once -->
{% endif %}

<!-- Scripts you want to run on every visit -->

More details on how that works at Shopify’s help page on the subject.

I hope that helps with the setup process. If you have any questions do leave a comment and I’ll get back to you.

PSA: Since writing this – Bing have an updated guide for how to track conversions with Shopify – link.

Filed Under: eCommerce

Comments

  1. Chetan Munnolli says

    July 3, 2017 at 4:58 am

    This article is a Great help!

    Reply
    • John King says

      July 3, 2017 at 10:50 am

      Thanks Chetan!

      Reply
  2. Davina Prasad says

    June 29, 2017 at 2:03 pm

    thanks, clear and easy to follow!

    Reply
    • John King says

      June 29, 2017 at 2:05 pm

      Thanks for the Feedback Davina, glad it helped! :)

      Reply
  3. Nelio Dos Reis says

    May 5, 2017 at 8:59 pm

    Thanks for sharing!!

    Reply
    • John King says

      June 29, 2017 at 2:05 pm

      You’re welcome Nelio.

      Reply
  4. Amy @ German Pearls says

    April 5, 2017 at 2:36 pm

    Thank you for an easy to follow quick setup!

    Reply
    • John King says

      June 29, 2017 at 2:05 pm

      Welcome Amy, glad it helped!

      Reply
  5. Alberto Guidotti says

    March 23, 2017 at 5:30 pm

    Thanks for this article!

    Reply
    • John King says

      March 23, 2017 at 7:18 pm

      Thanks Alberto :)

      Reply
  6. Seller's Bay says

    March 2, 2017 at 5:58 pm

    Hi, what is the UETQ Variable ID

    I see this in Google Tag Manager and it’s default value is: uetq
    What is this used for? I have several stores in the same bing account, do I need to make the UETQ Variable ID unique for each goal/store?

    Reply
  7. Scott Buehler says

    November 3, 2016 at 7:52 pm

    Hey John, over a year later, just letting you know that this was extremely helpful. Appreciated.

    Reply
    • John King says

      June 29, 2017 at 2:06 pm

      Thanks Scott! Appreciate the message.

      Reply
  8. Dave W. says

    February 12, 2016 at 8:33 pm

    This is awesome, thanks! Just implemented and crossing fingers :)
    I wanted to follow up on some of the comments below. The method you describe is how a conversion tracking pixel would be added. I believe Bing intends UET to be implemented on all pages, like G Analytics. Unfortunately, while Shopify has a dedicated box to enter GA code (which ensures its presence on all pages, including checkout ones), Shopify does not provide the same option for Bing. I originally added the Bing UET code to the theme liquid file, thinking that covered all pages, but apparently it does not apply to the checkout pages, which must be why my Bing conversion goals never triggered. I have now added it to the conversion tracking box, as you advised. I’m thinking this will still leave a gap between any previous checkout pages and the TY page, in case I wanted to analyze funnel dropoff, etc. I suppose I could add the UET code to the cart liquid file, the perhaps just the revenue capturing script to the checkout box? Also wanted to mention that it seems like “contains” thank_you should also theoretically work for conversion tracking goal.

    Reply
  9. Judy says

    January 22, 2016 at 5:02 pm

    Thanks for making the directions very straight forward. I was wondering if you have ever added the Bing/Shopify tags to Google Tag Manager? If so, would you put both the UET tag and the Revenue code in the same container?

    Reply
  10. Anna Van Tuinen says

    January 4, 2016 at 10:38 pm

    Thanks John! I’ve read alot of conflicting info on the web about Bing conversion tracking for Shopify. Do we have to add the UET tag to *both* the header on all pages, *and* to the Checkout additional contents & scripts? I’ve tried both ways, and set up the conversion goal as you instructed, and none of my conversions are being tracked. Thanks again for any tips!

    Reply
    • John King says

      January 8, 2016 at 5:12 am

      Hi.

      So the short answer to this, is that for tracking conversions you just need the UET tag added to your checkout page.

      But if you wanted to do something like remarketing, you could use the same UET tag and add it to all pages (minus the snippet of script used for tracking conversions).

      Reply
  11. upbility.net says

    December 10, 2015 at 11:20 am

    Thanks a lot John! Great help!

    Reply
    • John King says

      June 29, 2017 at 2:06 pm

      Thanks!

      Reply
  12. Bill Aug says

    November 12, 2015 at 3:28 am

    Hey John,

    Curious if you still have to paste the UET tag in the theme.liquid file as well as the checkout? Also, do you use the same UET tag for the theme.liquid and for the checkout if so? Thanks for the great post man, this is the second one I have used today…did our facebook pixel thanks to your other post earlier :)

    Reply
    • Anna Van Tuinen says

      January 4, 2016 at 10:38 pm

      Hoping for the answer for your same question, Bill! Did you get it resolved? Do we have to add the Bing UET tag to theme.liquid file as well as checkout? Thanks!

      Reply
    • John King says

      January 8, 2016 at 5:13 am

      Hi. You don’t need to add the UET tag to the template for conversion tracking. But it could be added for something else, such as remarketing.

      Reply
  13. The Black Art Depot says

    November 1, 2015 at 3:34 pm

    You the man! Thanks for the great post and info. The part I was missing was setting up the URL as a regular expression. Had everything else. This should explain why it wasn’t working properly for me. Thanks again!

    Reply
    • John King says

      June 29, 2017 at 2:06 pm

      Thanks! Glad it helped.

      Reply
  14. Tikes Bikes says

    October 30, 2015 at 11:37 pm

    Thank you, this made it so easy to implement. Much appreciated!

    Reply
    • John King says

      October 31, 2015 at 12:05 am

      You’re welcome, glad it helped!

      Reply
  15. The Black Art Depot says

    October 4, 2015 at 3:12 pm

    Great info! I think I implemented it right but Bing has changed the UI now so it doesn’t matchup with these instructions 100% but you provided enough information for me to put 2 and 2 together I believe. Thanks for sharing!

    Reply
    • John King says

      October 4, 2015 at 3:57 pm

      Hey man, thanks for the heads up on Bings new interface. I’ve updated the post to try and take this into account. The bit they don’t cover really is the code snippet for revenue tracking in Shopify. Once you’ve got that you should be fine. Let me know if you’ve any queries.

      Reply
  16. PoshRug says

    September 7, 2015 at 5:26 am

    This sounds great!, I was having trouble with modifying theme.liquid & product.liquid.

    May contact you in future to leverage your knowledge on the Bing/Shopify

    Thanks,
    Abi

    Reply
    • John King says

      October 4, 2015 at 2:58 am

      Hi Abi, apologies – didn’t see your comment until now.
      Hopefully you got your Shopify issues sorted – but if not feel free to get in touch.

      Reply
  17. Jon says

    June 14, 2015 at 10:15 pm

    Hi John, the Managing Analytics with Universal Event Tracking (UET) link above in red is not a complete url, but I think this might be what you intended. https://msdn.microsoft.com/en-us/library/bing-ads-universal-event-tracking-uet-tags-analytics-scripts.aspx

    Reply
    • John King says

      October 4, 2015 at 3:00 am

      Thanks Jon! Appreciate you correcting the broken URL :)

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

PPC Wins is not currently accepting new clients. Instead, we recommend Top Ranked Chiropractor, an advertising agency.

First Time Here?

Hey and welcome to the site.

PPC Wins is a site dedicated to sharing with you useful tips and advice for getting the most out of PPC campaigns.

If there is a topic you would like to see covered please get in contact.

Categories

  • AdWords
  • Amazon
  • eCommerce
  • Facebook
  • Google Analytics
  • Google Exams
  • Lead Generation
  • Uncategorized
google-adwords-certified-partner2
BingAds_Accredited_Badge (1)

Copyright © 2025 ppcwins.com