Check your conversion tracking tag

30/11/2019
This page goes over issues and troubleshooting for Google Ads tags. If you are looking for Google Tag Manager, go to Troubleshoot issues for Google tags.

If you've set up Google Ads conversion tracking to see when your ads lead to valuable actions such as website purchases or calls to a phone number on your website, there are several ways for you to check that conversions are being recorded correctly. You can troubleshoot any problems with your conversion tracking tag (the snippet of code you or your webmaster installed on your website) if they aren't.

  • You can verify that Google Ads can "see" your tag and is recording conversions within your account.
  • You can use other tools and methods to check that the tag is installed in the right place and uses the right code parameters.
  • There are a few common problems to check for if conversions aren't being recorded properly.

Instructions

 

The new Google Ads experience is now the exclusive way for most users to manage their accounts. If you’re still using the previous AdWords experience, choose “previous” below. Learn more

Checking your conversion tracking status

Whether you just created a new conversion action and installed the conversion tracking tag (for website and certain phone call conversions requiring a tag), or want to confirm or troubleshoot an existing conversion action, you can check its tracking status from the Conversions page in your AdWords account.

  1. Log in to your AdWords account.
  2. Click Tools, then choose Conversions from the drop-down menu.
  3. In the conversions table, find the conversion action you want to check in the "Conversion" column, then look at the "Tracking status" column in that same row.

Here are the different tracking statuses you might see:

  • Unverified: We haven't verified that your tag has been put on your website yet. This takes a few hours. To make sure we see your tag, you can visit your conversion page (for example, the page confirming a purchase or mailing list sign-up). If it's been more than 24 hours and you still see this status, skip to "Confirming and verifying your conversion tracking tag" below.
  • No recent conversions: We've seen your conversion tracking tag, but haven't recorded any conversions in the last 7 days. This is most likely because you don't have any ads sending people to the page where you installed your tag. Make sure your campaigns are all running, and that people clicking on your ads are taken to the right webpage.
  • Recording conversions: We've seen your conversion tag and recorded conversions within the last 7 days.
  • Tag inactive: We no longer see your tag, and haven't recorded any conversions in the last 7 days. For more information, place your cursor over the speech bubble (more information) next to the tracking status. You'll get the date we last saw your conversion tracking tag, as well as the last date we recorded any conversions, if ever.
    • If we never recorded any conversions, it's possible that the the tag is on the wrong web page, or you never received any traffic to this page from your ads.
    • If we recorded conversions before, but they stopped, something may have changed with your website or ad campaigns.
    • In either case, there could be something wrong with the way your conversion tag is installed on your site. If you have ads pointing to the right page and you're sure there's traffic on that page, see the troubleshooting section below.

Keep in mind: If you switch to cross-account conversion tracking, any conversion actions set up in your managed accounts will stop tracking conversions for new clicks, regardless of the status of your tag. The conversion action will, within its own window, continue to track conversions for those clicks that happened before you made the switch. When you opt into cross-account conversion tracking, you can only track conversions in the manager account.

  • Removed: This conversion action has been removed. You can add it back to your account by clicking the red "X" next to the conversion action name, then selecting Enabled.

Confirming and verifying your conversion tracking tag

After you (or your website manager) install the conversion tracking tag on your site, you can confirm that it's on the correct page and verify your tag by following the instructions below.

Confirm that the tag is on the correct page

  1. Go to the website on which you're tracking conversions and visit the conversion confirmation page. That's the page customers see after they've completed a conversion, like a "thank you" page after they make a purchase or sign up for a newsletter.
  2. Check the source code for the page. In Google Chrome, click View, then click Developer, then View Source. You can also right-click to choose View Page Source. Steps will be different in other browsers.
  3. Now look for the conversion tag code. If the tag was successfully placed, you'll see a comment tag that looks like this: . The {Action name} should be the one you entered earlier in the field "Action name."
  4. If the tag isn't on the page, you or whoever maintains your website will need to go through the conversion tracking setup process and add the tag.

Verify tag

Here are some options for verifying that conversion tracking and your tag are set up correctly. It’s best to use one of the first two options, since the other option requires you to click on your ad, and you’ll be charged for the click. (If you're very familiar with website code, see the "Using debugging tools" section below. It'll show you another way to verify conversion tracking without costing you a click.)

Validate your AdWords conversion tracking tag with Google Tag Assistant

 

  • Wait for a conversion to show up in 24 hours
    If you know that a click on your AdWords ad resulted in a conversion, and you know the click occurred after you activated conversion tracking, wait for the conversion to appear in your AdWords account.
  • Complete a test conversion on your site and wait for the conversion to appear on AdWords
    Run a search for one of your active keywords on Google and click on your AdWords ad. You can then complete a test conversion on your site. After completing the conversion, it'll appear in your AdWords account within the next 24 hours.

After following the steps for one of these options, you can see conversions in your AdWords account by clicking the Campaigns tab, or by going to the Tools tab and selecting "Conversions."

Example of a correct tag

Here's what a correct conversion tracking tag should look like (except for the conversion ID and label, both highlighted, which will look different in your tag):
  
   
   
   
		

Missing CDATA comments

Some content management systems or WYSIWYG ("what you see is what you get") editors remove the asterisk from the /* */ sections of your conversion tracking script.

If you use any form of visual editor to insert JavaScript into your pages, check to make sure it hasn't incorrectly changed the script by eliminating the asterisks in the CDATA code. If it has, add in asterisks in the second and sixth line of your tracking script so that it matches the correct version of the code.

Incorrect

		
  
   
   
		

Incorrect script attribute

The language="JavaScript" attribute is an old script tag attribute. In some browsers, and under certain circumstances, this can cause issues with the way the script is executed. To fix this, you’ll want to delete this section of code.

Incorrect

		
  
  
  
		

Dynamic conversion in wrong format

The sale value in your tag shouldn't contain a currency prefix ($) or commas (,). If you insert "$20.00," for example, JavaScript will recognize this as a text string instead of a number. This would cause an error, which would mean no conversion or conversion value would be recorded. See these articles for more information about providing conversion value and currency in your tag and tracking transaction-specific conversion values.

Incorrect

  
  
  
		

Correct

  
  
  
		

Using debugging tools to see how your tag is communicating with our servers

Each time a conversion tag runs, it makes a request to the following URL, where the “XXXXXX” will be your conversion ID (this number length varies):

http://www.googleadservices.com/pagead/conversion/XXXXXXXX/

The request that's sent here includes a number of parameters—or values. You can review the requests that your tag sends to make sure it's working properly. When you do, look for these elements to confirm they match the conversion tag generated for the conversion action:

  • Conversion ID: The unique number that's specific to your AdWords account.
  • Conversion label: The unique label that matches the name of the conversion in your AdWords account.

Using a debugging tool, you can see the information sent between your web browser (also know as a client) and the server. This will help you examine the conversion tracking request sent by your browser and identify whether or not the correct conversion ID and label are included.

Available debugging tools

Browser Tool
All Firebug Lite
All Charles
Chrome Built-in Developer Tools (e.g. Resources)
Firefox Live HTTP Headers
Firefox Firebug
Internet Explorer Fiddler
Safari Built-in Activity window

Debugging with Chrome Developer Tools

  1. Open in a new tab in Chrome.
  2. Click the Chrome menu icon on the browser toolbar, select View, then Developer, and then Developer Tools. Developer Tools
    If you don't see the Chrome menu, you can open Developer Tools by pressing Control - Shift - I keys (in Windows) or Command - Option - I (on a Mac).
  3. Click on the Network tab. Chrome inspector
  4. Leave the developer tools window open.
  5. Navigate to the page that contains the conversion tracking tag.
  6. Look for the request: www.googleadservices.com.
  7. Examine the components of the conversion tracking request to verify it matches your account and conversion name.

Checking the conversion request

All conversion tracking requests begin with the same URL structure:

www.googleadservices.com/pagead/conversion/

The full request will look something like this:

      http://www.googleadservices.com/pagead/conversion/123456789/
       
        ?

        random=1309518235472
        
        &cv=6        
        &fst=1309518235472
        &num=1
        &fmt=2
        &value=0        
        &label=AAAAAAAAAAAAAAAAAAA        
        &bg=ffffff
        &hl=it
        &guid=ON        
        &u_
        h=1200
        &u_w=1920
        &u_ah=1174&
        u_aw=1920
        &u_cd=24
        &u_his=2
		&u_tz=60
        &u_
		java=true
        &u_nplug=19
        &u_nmime=97
        &
		url=http%3A//www.example.com/conversion-page.html
		

The number after www.googleadservices.com/pagead/conversion/ should match your conversion ID, and the characters after &label= should match your conversion label. If they don't, this tag is most likely tied to a different conversion action.

To fix this, you may need to generate new conversion tag for this conversion action and place it on your site, or check with anyone else who has access to your website code to see if they've installed a conversion tracking tag for a different conversion action.

Keep in mind: If you switch to cross-account conversion tracking, any conversion actions set up in your managed accounts will stop tracking conversions for new clicks, regardless of the status of your tag. The conversion action will, within its own window, continue to track conversions for those clicks that happened before you made the switch. When you opt into cross-account conversion tracking, you can only track conversions in the manager account.

* Nguồn: Google