If you're integrating Salesforce or Zoho CRM, this article may not apply because you're most likely using GA Connector 2.0.

Why Tagging Google Ads Links is Necessary

GA Connector will automatically recognize leads coming from Google Ads, but by default – only source and medium parameters.

In order to track campaigns and keywords too, you need to configure Google Ads to add UTM tags to ad links. GA Connector will pick up information from these tags and save it to the CRM.

Solution Overview

The most straightforward way to tag links it to add them to destination URLs for each ad. But it can be very time-consuming, plus editing ads will lose you the previous stats (as Google Ads will consider them as new adverts).

The easiest way is to add a final URL suffix to your Google Ads account. It will append the UTM tags on the fly. We have created a script that will do it for you automatically.

Here is how you can run this script in your Google Ads account:

  1. Sign in to your account at http://ads.google.com.
  2. Click on Tools&Settings > Bulk Actions > Scripts
  3. Click the “Add script” button.
  4. In the “Script name” field at the top, name your script “GA Connector UTM tagging”.
  5. In the script editor box, delete everything and make it completely empty.
  6. Paste the provided script instead:

  7. Click “Run” above the editor.
  8. Authorize the script by clicking “Authorize” and then “Grant Access”.
  9. Click “Run” to run the script. If you get no errors, the script has been set up correctly.
  10. Finally, set the frequency to daily (so that when new ad groups are created, they are automatically tagged).

FAQ

Will it change anything in the campaign?

No, it won’t. It will only change the final URL suffix, which can be deleted at any time.

Actual links won’t be changed, but they will be modified on the fly.
But this is completely reversible (you just need to remove the final URL suffix).

Can this script be applied at the MCC level, or just the account level?

This script can be applied to account level only.

I don’t see “URL Options” inside Google Ads – Shared Library menu. What do I do?

I can happen because Google Ads is testing a new version where there is no “URL Options” inside that menu. To fix this, you can temporarily return to the old version of Adwords (clicking the three dots button).

I’ve added the final URL suffix, but I still don’t see the UTM parameters being added to the links. What do I do?

If you encounter this problem, firstly check in the Google Ads interface that the UTM parameters have in fact been added.

If they were and you’re still not seeing UTM parameters in the URLs when you click your ads, you can try adding a forward slash “/” at the end of your destination URLs (if it’s not there already). Some of our customers reported that Google Ads didn’t add the UTM parameters until they started ending their URLs with “/”.

What if I already use Google Ads auto-tagging? Do final URL suffixes interfere with it?

No, it does not. By default, Google Analytics uses auto-tagging data over manual UTM tags (which our final URL suffixes set).But GA also allows to set manual UTM tags to override auto-tagging:

In case of GDN (Google Display Network) campaigns, how do we track the placement where the click originated from?

For GDN campaigns, we suggest manually replacing the current final URL suffixes with this one:
utm_source=google&utm_medium=display&utm_campaign=GDN_campaign&utm_content={placement}
As a result, leads that come from GDN campaigns will have the following differences from the ones that come from search ads:
  1. Their utm_medium will be “display” instead of “cpc” – will help distinguish them.
  2. Their utm_content will contain the domain of the placement, and so will “Last Click Content” and “First Click Content”.

How to prevent Google from indexing versions of the page with and without UTM parameters?

  1. Specify a canonical URL on your pages.
  2. Instruct Google not to index the UTM parameters in Search Console
  3. Disallow the URL parameters in your robots.txt

More details in this StackExchange answer.

How long after implementing this instruction does it start working?

Immediately after applying the instruction, new Google Ads visitors should be tagged with UTM parameters.

 

Does this script work with Google Shopping campaigns?
Unfortunately, Google Ads scripts are currently unable to process shopping adgroups. Targeting template is not available to shopping adgroups, however it can be applied to the shopping campaign as a whole:

How to add final URL suffix to your Shopping campaign?

  1. Click the Campaigns tab and select the campaign for which you’d like to change the final URL suffix.
  2. Click the Settings tab and scroll to the “Campaign URL options (Advanced)” section. Click the link.
  3. Click Edit and change your final URL suffix in the box.
  4. Click Save.

At the bottom of the campaign settings page you will see “Campaign URL options (advanced)“, select this and click “Edit” to the right of  final URL suffix

Add “utm_campaign={campaignid}&utm_source=google&utm_medium=cpc” to the text box that appears and hit “Save“.

Does this script work with Smart Campaigns?
Since the functionalities and features of Google Smart Campaigns are limited, the script will not work with Google Smart Campaign, however, you can manually set your ad link to include the UTM information.
  1. Click the Campaigns tab and select the smart campaign for which you’d like to add the UTM information
  2. On the ad preview section, click on Edit Ad
  3. Add ‘?utm_campaign={campaignid}&utm_source=google&utm_medium=cpc&utm_term={keyword}‘ at the end of your ad URL at the bottom of the screen.
    (e.g ‘https://mydomain.com?utm_campaign={campaignid}&utm_source=google&utm_medium=cpc&utm_term={keyword}‘)
  4. Click Save
I’ve implemented this guide but it’s not working. What do I do?
Please try our troubleshooting guide for Google Ads UTM tagging.