Setting up Google Analytics to measure Yahoo and Bing Pay-Per-Click (PPC) Campaigns

If you run PPC campaigns on Yahoo and Bing then it is essential you change your PPC campaign destination URLs in Yahoo and Bing to properly track visitors from paid search engines and non-paid organic visitors from your SEO campaign.

Fortunately, Google Analytics already tracks visitors from Google correctly, so one-third of your job is already done for you.

It’s a bit roundabout, but this is the way to track CPC traffic from non-Google sources (e.g. Yahoo and Bing).

In 2010 Yahoo integrated their campaign management tool into Bing’s Adcenter which really speeds up the process of managing your campaigns across these sites. Using the method detailed below you’ll be able to see all of this data within Google Analytics, making it the one stop shop for all your analytics needs.

Bing and Yahoo PPC Campaign Ad Tracking In Google Analytics

1. Create a custom tracking URL using Google’s URL Builder

Follow the instructions on screen and you should produce something like this URL string or similar:

The "Bing+CPC+Campaign" can be anything you like which described this CPC campaign; it can be the name of the campaign e.g. spring flowers, and is just for your own reference.

2. Replace the parameter “keyword" with a placeholder which Bing will populate when they generate an ad to display. In Step 2 of Google’s instructions, in the box labelled “Campaign Term” enter {QueryString}. The {QueryString} should result in Bing presenting the words that were searched for that resulted in your ad being shown. This should produce a revised URL something like this:{QueryString}&utm_campaign=Bing+CPC+Campaign

Or for a deep URL, something like this:{QueryString}&utm_campaign=Campaign1

You can use the term {KeyWord} rather than {QueryString} if you want Bing to tell you which of the keywords you’ve bid on resulted in your ad being shown.

3. In the Bing Adcenter campaign manager, enter this URL as the tracking URL for the campaign.

Clearly you do not want to add this URL for every keyword – so the best way to do this to change the “Destination URL” at the Ad Group Level.

Select “Ad Group”, then go to the “Ads Tab”.  Now click on “Ad Title” from your list of adverts.  You then get a screen which lists; “Ad Title”, “Ad Text”, “Display URL” and “Destination URL” – paste the long URL into the “Destination URL” box and click save.

Now repeat this for every Ad Group. If someone knows an even quicker way of doing this please feel free to post it here.

4. As things stand you will see the combined data for Bing and Yahoo and there is no quick way to change this. If you do want to see these as separate metrics you should first set up a new profile in GA, this is because it will change the way the data is presented and you probably want a clear, unfiltered view of all your data first and foremost!

You can then set up a new filter by visiting the ‘Admin’ section of GA. You’ll then be presented with the following screen which you should fill in as shown below (click on the image to view it full size).

The expression that you need to insert in the Field B -> Extract B case is: https?://([^/]+)

This should result in the referring domain appearing after the campaign source, making it easy to differentiate between traffic from Bing and Yahoo by analysing your traffic by source.

Wait for a day or so; and then check your Google Analytics reports to see whether you are now seeing paid search engine traffic from Bing and Yahoo.

You should be able to clearly distinguish and drill down into paid vs no-paid traffic from all search engines and have a list of sources something like this:

yahoo / cpc

yahoo / organic

Bing / CPC

Bing / organic

google / cpc

google / organic

Search engines change the ways they handle reporting and tracking from time to time; please do add a post if this process has changed or no longer works for you.

By: Laurie OToole

23 Comments. Leave new

  • millermax10
    23/08/2010 22:57

    This is some really solid advice to ensure your PPC campaigns are optimized in Google Analytics.

  • Thanks for pointing this out, I’ll get that changed! It’s great to hear that you found this helpful.

  • Anonymous
    23/04/2013 12:53

    Really really helpful thank you!

  • Anonymous
    18/06/2013 16:03


    Thank you so much for your article. I have set it up exactly the way you have described and named my campaign source Yahoo/Bing PPC. But for some reason in analytics I am getting some clicks from Yahoo/Bing PPC and some also show up as , / CPC and , / CPC (including commas). Any idea what am I doing wrong?

    Thank you so much.

    • Hi, I’m glad you found the article useful.
      Sorry that you’re having this problem, I’m not actually sure what could be happening there! I’ll have a look into it and see if I can find an answer for you.

  • abcubed3
    06/07/2013 19:49

    Thanks for this. I created a google doc spreadsheet, called URL builder that concatenate the parameters, and its easy to copy & paste. My question is that; how can I see other metrics like clicks and impression from GA, for Yahoo traffic

  • Anonymous
    08/07/2013 19:59

    I thought I was doing pretty well following this, for a naif that is, then I encountered this, “3. In the Bing Adcenter campaign manager, enter this URL as the tracking URL for the campaign.”

    Nothing I can bring up identifies itself as the “Bing Adcenter” and the only thing I can find fhat asks me for a Destination URL is “Create an Ad Group”.


  • Anonymous
    12/07/2013 00:22

    Hi All,

    We launched a tool to auto-tag Bing Ads with Google Analytics UTM parameters to save the headache of doing this manually.

    Andy Turman
    Bizible Marketing Analytics

    • mattjotoole
      12/07/2013 08:46

      That looks pretty useful, Andy. Well done, you just earned yourself a backlink! 🙂


  • Anonymous
    31/07/2013 09:54

    Just tried Bizible and it inserted the code with no trouble.
    Just waiting to see if the reporting is correct.

  • William Foody
    10/10/2013 22:04

    “show up as , / CPC and , / CPC (including commas)”

    I have the same problem i used the query string:

    For the filter (Field A -> Extract A) just put “bing”.

    Am I doing somehting wrong?

  • Thanks for the lovely post. I have 34 different landing pages in my site and I am doing PPC campaign for all of my landing pages. It will be helpful to know If I want to get the accurate result do I need to customize 34 URL’s with this Google URL builder. Also, I have Google Adwords conversion tracking code setup in my ‘Thank you’ page if I now setup Bing Conversion tracking code in my ‘Thank you’ is there any chance of collisions?

  • Thanks for this! When I enter {QueryString} in Campaign Term, the URL generator displays the following: …cpc&utm_term=%7BQueryString%7D&utm_campaign=nps

    Is this correct or does {QueryString} have to be displayed as per the url you have stated?


    If you could help that would be great!

  • I am not seeing where to make a new profile in GA Admin. Am I missing something??

  • I can see my Bing_Yahoo/cpc in Analytics, but I am not able to see which campaign generated the clicks. Did I enter something wrong when setting up the parameters??

  • Can the campaign name be dynamic and pull in automatically or is it hard coded?

  • Elisabetta
    27/05/2014 15:28

    Hi! Thanks for posting your article; it’s very very useful and I have done exactly what you wrote. Unfortunately I keep seeing a discrepancy between Yahoo / Bing and GA. I’ve been in touch with Bing for a while now and it doesn’t look they can solve it. Have you ever hear of anything similar? Many thanks

    • Elisabetta, I’m seeing the same discrepancy between what GA is reporting and what Bing is reporting, and it’s a wide gulf between the two sets of numbers. I need to use GA to verify that I’m actually getting the traffic that Bing says they’re giving me, but when I call them, all they can do is give me reports from their end. They can’t even recommend a third-party tool that will verify the authenticity of the clicks they’re charging me for.

  • One figure, GA, is last click attribution, the other, Bing Conversion, will use a 30 day cookie attribution. This is why you are getting discrepancies, because of different attribution models. Google “understand attribution modelling”.

  • This is really helpful! However, I wish it was a little more detail about how to set up the filter. What are you suppose to set the fields to and what do you suppose to put in for field A and field C???


  • Great post. I would like to see GA filter setting example image. Since its noted ” (click on the image to view it full size)” But I can not find any..

  • I have never really liked google analytics it show the spam data which make it harder to track real traffic. Also the traffic is pretty less these days analytics are not helping at all.


Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.