{"id":5118,"date":"2022-06-30T18:19:10","date_gmt":"2022-06-30T15:19:10","guid":{"rendered":"https:\/\/trackingchef.com\/?p=5118"},"modified":"2022-06-30T18:19:12","modified_gmt":"2022-06-30T15:19:12","slug":"setting-up-tracking-for-your-google-ads-account","status":"publish","type":"post","link":"https:\/\/trackingchef.com\/google-ads\/setting-up-tracking-for-your-google-ads-account\/","title":{"rendered":"Setting up tracking for your Google Ads account"},"content":{"rendered":"\n

In this post I’ll try to walk through the various ways of effectively implementing Google Ads (formerly Google AdWords) tracking on your site.<\/p>\n\n\n\n

The Basics<\/h2>\n\n\n\n

The basis for running effective advertising campaigns on Google Ads is having the proper pixels in place. Generally speaking you should have two types of tags on your site: A sitewide event (aka Pageview) and a conversion event.<\/p>\n\n\n\n

Global Site Tag<\/h3>\n\n\n\n

Google Ads in it’s modern form uses the GTAG library which is shared across all of Google’s advertising and analytics products. Similar to any other pixel<\/a>, this tag is also made of a base tag which loads the JS library and sets the associated tag ID. In GTAG’s case, it will also trigger the basic pageview<\/em> event too.<\/p>\n\n\n\n

<!-- Global site tag (gtag.js) - Google Ads: 1234567980-->\r\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=AW-1234567980\"><\/script>\r\n<script>\r\n  window.dataLayer = window.dataLayer || [];\r\n  function gtag(){dataLayer.push(arguments);}\r\n  gtag('js', new Date());\r\n\r\n  gtag('config', 'AW-1234567980');\r\n<\/script>\r<\/code><\/pre>\n\n\n\n

To create a new Global Site Tag, follow the instructions on this post<\/a>.<\/p><\/blockquote>\n\n\n\n

In the example above the tag ID that’s loaded is 1234567890<\/em>. This ID is different from the account ID that’s visible in your Google Ads account.<\/p>\n\n\n\n

Once this tag has been placed on all pages (preferably within the HTML’s head section) it tracks all users visiting the site.<\/p>\n\n\n\n

This is important for two reasons:<\/p>\n\n\n\n

#1 Tracking landing page visits<\/h4>\n\n\n\n

Not all users that click a certain ad will land on your page. Many times ads are clicked by accident and users click back to the search results page before your site has loaded.<\/p>\n\n\n\n

In fact, Google Ads doesn’t send users immediately to your landing page after they click, but rather first sends the click event back to their servers and only then routes the user. This delay varies based on the speed of your internet connection, but leaves enough room for the user to stop the loading.<\/p>\n\n\n\n

This is why tracking users that actually have landed on the page is important. This is such a common issue that even Facebook makes the distinction on its ad reporting between Link Clicks and Landing Page Views.<\/p>\n\n\n

\n
\"\"<\/figure><\/div>\n\n\n

#2 Creating audiences<\/h4>\n\n\n\n

Once we have the Google Ads tags on all pages we create audiences with custom combination based on the pages visited in multiple custom combinations. This is extremely useful for creating powerful remarketing audiences.<\/p>\n\n\n

\n
\"\"<\/figure><\/div>\n\n\n

Conversion event<\/h3>\n\n\n\n

The second, and probably more important part of the tracking is the conversion tracking. This will report back to Google Ads if a certain user has completed a meaningful action on your website – left a lead, completed a purchase or any other meaningful interaction. Based on these conversions, you can decide which ads or keywords perform better, but more importantly, Google’s algorithms will also self optimize towards it.<\/p>\n\n\n\n

<!-- Event snippet for Demo Request conversion page -->\r\n<script>\r\n  gtag('event', 'conversion', {'send_to': 'AW-1234567980\/abcdefghijklmnopqrst'});\r\n<\/script>\r<\/code><\/pre>\n\n\n\n

To create a new Conversion Event, follow the instructions on this post<\/a>.<\/p><\/blockquote>\n\n\n\n

The event snippet is shorter than the Global Site Tag as it already assumes that it was loaded on that page. This means that the conversion event won’t trigger without Global Site Tag loaded, so be careful to trigger these in the right order.<\/p>\n\n\n\n

In the event snippet you can find two IDs. The first is the tag ID which is identical to the one used on the Global Site Tag. The second, referred to as the Conversion Label, is used to identify the specific conversion action. For example, your site might have both a Demo form and a Sign Up form, and you will likely want to measure these separately.<\/p>\n\n\n\n

The conversion label is automatically generated when creating the conversion event in Google Ads.<\/p>\n\n\n\n

Google Tag Manager Setup<\/h2>\n\n\n\n

As with most tags, my recommendation is to implement it using GTM.<\/p>\n\n\n\n

This leaves little room for error, keeps the scripts used up to date and gives you full flexibility in adding and removing tags.<\/p>\n\n\n\n

When setting up the tags via GTM, the order of triggering them doesn’t matter either, so no need to fuss about that too.<\/p>\n\n\n\n

To set it up in GTM, first grab the Global Site Tag’s ID (see here where to get it<\/a>).<\/p>\n\n\n\n

In GTM, create a new tag of the type Google Ads Remarketing and paste the ID copied into the Conversion ID field. Set this tag to trigger on all pages.<\/p>\n\n\n

\n
\"\"
Google Ads Global Site Tag in GTM<\/figcaption><\/figure><\/div>\n\n\n

To set up the conversion event, create a new tag in GTM of the type Google Ads Conversion Tracking. This tag has two slots for the Conversion ID and Conversion Label that you need to paste in accordingly from the Google Ads admin.<\/p>\n\n\n

\n
\"\"
Google Ads Conversion Tracking in GTM<\/figcaption><\/figure><\/div>\n\n\n

Manual setup<\/h2>\n\n\n\n

If you’re setting up Google Ads manually you probably have also implemented Google Analytics<\/a> similarly.<\/p>\n\n\n\n

With the modern versions of Google Analytics and Google Ads using a joint library, you can combine the various tags to a single snippet.<\/p>\n\n\n\n

This effectively reduces the HTTP calls to Google and saves ~20KB.<\/p>\n\n\n\n

For example, the snippet below will load both the Global Site Tag for Google Ads (AW-1234567980) and a Pageview event for Google Analytics (UA-98765432-1).<\/p>\n\n\n\n

<!-- Global site tag (gtag.js) - Google Ads: 1234567980-->\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=AW-1234567980\"><\/script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'AW-1234567980');\n  gtag('config', 'UA-98765432-1');\n<\/script><\/code><\/pre>\n\n\n\n

To properly install the Google Ads Global Tag, add the snippet on all pages of your website, preferably as high up as possible on the <head> tag. Adding the pixel to the <body> tag will also work, but might result in discrepancies in tracking, as some users might leave the page\u00a0before<\/strong>\u00a0the pixel snippet has fully loaded.<\/p>\n\n\n\n

Once the global tag is loaded on all pages, you can proceed to adding the conversion tracking to specific user actions you want to track.<\/p>\n\n\n\n

For example, you might want to trigger a conversion whenever a user submit a lead form.<\/p>\n\n\n\n

This will require triggering an event such as this:<\/p>\n\n\n\n

<!-- Event snippet for Demo Request conversion page -->\n<script>\n  gtag('event', 'conversion', {'send_to': 'AW-1234567980\/abcdefghijklmnopqrst'});\n<\/script><\/code><\/pre>\n\n\n\n

You can further customize this conversion event by adding the conversion value and custom variables as explained on this post<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

In this post I’ll try to walk through the various ways of effectively implementing Google Ads (formerly Google AdWords) tracking on your site. The Basics The basis for running effective advertising campaigns on Google Ads is having the proper pixels in place. Generally speaking you should have two types of tags on your site: A […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,39],"tags":[],"_links":{"self":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/5118"}],"collection":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/comments?post=5118"}],"version-history":[{"count":7,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/5118\/revisions"}],"predecessor-version":[{"id":5158,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/posts\/5118\/revisions\/5158"}],"wp:attachment":[{"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/media?parent=5118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/categories?post=5118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackingchef.com\/wp-json\/wp\/v2\/tags?post=5118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}