Google Ads conversion trackers use the Google tag and event snippet to report conversions on your site. Search Ads 360 generates a Google tag and event snippet when you create a conversion tracker. The steps you take to install the tag and snippet depend on whether your site already uses the Google tag, or if you use Google Tag Manager to manage tags on your site.
Before you start: copy the tags from Search Ads 360
When you create a conversion tracker, Search Ads 360 generates a Google tag and event snippet. Follow these steps to copy the tag and event snippet:
-
Navigate to a Google Ads engine account.Steps for navigating to an engine account
-
In the left navigation panel, click All accounts.
What if the left navigation pane isn't visible? -
Click the navigation bar to display navigation options.
-
In the "Agency" list, click on the agency that contains the advertiser. You can search for an agency by name or scroll through the list.
-
In the "Advertiser" list, click on the advertiser that contains the engine account.
-
In the "Account" list, click on the engine account.
-
Click Apply or press the Enter key.
Search Ads 360 displays the engine account page.
-
- Sync the account:
- Above the reporting table, click the sync from engine icon .
- Click Start sync.
Search Ads 360 starts synchronizing and displays its progress above the report table. For example: Sync progress: 80% complete.
- After sync completes, click the More▼ tab, then click Google Ads conversion trackers.
- Find the conversion tracker in the Google Ads conversion trackers reporting table.
In the Google event snippet column, click Get snippet and copy the event snippet.
In the Google tag column, click Get snippet and copy the Google tag.
Install tags on a site that already uses the Google tag
If your site already uses the Google tag, do the following:
- In the Google tag Search Ads 360 generated for your conversion tracker, view the
'config'
command. Note the conversion-tracker ID that appears in the command ("AW-345678901" in the example below).<!-- Google tag (gtag.js) - Google Ads: 345678901 -->
<script async src="https://googletagmanager.com/gtag/js?id=AW-345678901"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());gtag('config', 'AW-345678901');
</script> - If the global snippet that's already installed on your site doesn't contain a
'config'
command with the same conversion-tracking ID as your conversion tracker's Google tag, add your conversion tracker's'config'
command to every page of your site.Here's an example of a global snippet that contains
'config'
commands for other Google products, plus the command for your conversion tracker.
<!--
Start of global snippet: Please do not remove
Place this snippet between the <head> and </head> tags on every page of your site.
-->
<!-- Google tag (gtag.js) - DoubleClick -->
<script async src="https://googletagmanager.com/gtag/js?id=DC-1234567"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'DC-1234567');
gtag('config', 'AW-234567890');
gtag('config', 'AW-345678901');
</script>
<!-- End of global snippet: Please do not remove -->Note that the
<script async>
tag only needs one ID in thesrc
attribute. Don't update thesrc
attribute with IDs from the config command you copied. - On the page with the event you're tracking, install the conversion tracker's event snippet right after the Google tag. Here's an example of the Google tag and event snippet that would appear on the page with the event you're tracking:
<!--
Start of global snippet: Please do not remove
Place this snippet between the <head> and </head> tags on every page of your site.
-->
<!-- Google tag (gtag.js) - DoubleClick -->
<script async src="https://googletagmanager.com/gtag/js?id=DC-1234567"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'DC-1234567');
gtag('config', 'AW-234567890');
gtag('config', 'AW-345678901');
</script>
<!-- End of global snippet: Please do not remove -->
<!-- Event snippet for example conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-345678901/_RObCJ_QoogBEL-bup8D',
'transaction_id': ''
});
</script>
If you're tracking conversions when a user clicks a button, Search Ads 360 generates a JavaScript function that triggers the event snippet. Make sure that the button's "onclick" event invokes this JavaScript function.
Install tags on a site that doesn't use the Google tag yet
If your site isn't already using the Google tag, do the following:
- On every page of your site, paste the Google tag Search Ads 360 generated for your conversion tracker between the
<head>
and</head>
tags.<head>
<!-- Google tag (gtag.js) - Google Ads: 345678901 -->
<script async src="https://googletagmanager.com/gtag/js?id=AW-345678901"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());gtag('config', 'AW-345678901');
</script></head>
- On the page with the event you're tracking, install the conversion tracker's event snippet right after the Google tag. Here's an example of the Google tag and event snippet that would appear on the page with the event you're tracking:
<head>
<!-- Google tag (gtag.js) - Google Ads: 345678901 -->
<script async src="https://googletagmanager.com/gtag/js?id=AW-345678901"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());gtag('config', 'AW-345678901');
</script><!-- Event snippet for example conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-345678901/_RObCJ_QoogBEL-bup8D',
'transaction_id': ''
});
</script></head>
If you're tracking conversions when a user clicks a button, Search Ads 360 generates a JavaScript function that triggers the event snippet. Make sure that the button's "onclick" event invokes this JavaScript function.
Learn more about installing conversion tracker tags to your site.
Use Google Tag Manager to install tags for conversion trackers
Google Tag Manager is a tag management system that allows you to update tags and code snippets on your website. You can use Google Tag Manager to install your conversion tracking tag.
- From the Google tag that Search Ads 360 generated, copy the Conversion ID, which appears in the
'config'
command ("AW-345678901" in the example below).<!-- Google tag (gtag.js) - Google Ads: 345678901 -->
<script async src="https://googletagmanager.com/gtag/js?id=AW-345678901"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());gtag('config', 'AW-345678901');
</script> - From the event snippet that Search Ads 360 generated, copy the Conversion label, which appears in the
'send_to'
command ("AW-345678901/_RObCJ_QoogBEL-bup8D" in the example below).<!-- Event snippet for example conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-345678901/_RObCJ_QoogBEL-bup8D',
'transaction_id': ''
});
</script> - Follow the instructions to set up Google Ads conversion tracking in Google Tag Manager. Important: To ensure proper tracking in all browsers, make sure you add a Conversion Linker tag and configure it to fire on all of your webpages.
- Click Next.
- Click Done.
- If you’re tracking clicks on your website as conversions, you’ll need to complete additional setup steps in Google Tag Manager. This is required for conversion tracking to work. Choose one of the 2 options below:
- Basic: Set up a click trigger so the conversion tracking tag fires when the relevant click occurs.
- Advanced: Add a function call to the code for the link, button, or button image. Then, set up a custom event trigger so the conversion tracking tag fires when the event (in this case, a click) occurs.