Since every Google Ads account you add to ClickGUARD gets its own tracking code, our goal is to utilize GTM to inject the appropriate code into your website based on the Google Ads account that generated the ad click.
After successfully linking your Google Ads accounts with ClickGUARD and activating them, follow these steps to install the tracking code on your website:
(1) Identify Google Ads accounts using the Final URL suffix
Here we're instructing Google Ads to add an additional parameter to the final URLs generated for ads. We will use this parameter in GTM to identify different Google Ads accounts.
For each Google Ads account you are using:
- visit Settings > Account Settings
- expand the “Tracking” section
- add acc=1 to your Final URL suffix (if you already have parameters in your suffix, add the new one like this: &acc=1)
Important: replace 1 with a number or other identifier that will represent its respective Google Ads account. The end goal is to have each account with a different identifier in the final URL suffix: acc=1, acc=2...
(2) Setup tracking code in GTM
Here we're instructing GTM to inject the correct tracking code based on which Google Ads account directed the user to the website. We're doing this by adding a tag for each Google Ads account that will be triggered when a click comes from that account.
Login to your Google Tag Manager for the website in question and follow these steps for each individual Google Ads account:
Create tags
- Create a new “Custom HTML Tag” naming it “ClickGUARD Tracking Code Acc1”
- From the given account's Settings in ClickGUARD copy the code from the “Tracking Code” section
- Paste the code into the “HTML” section of the newly created tag
- Under “Advanced Settings” set “Tag Firing Options” to “Fire Once Per Page”
Create trigger
- Under “Triggering” create a new trigger and name it “Acc 1 Trigger”
- Set “Trigger Type” to “Page View DOM Ready”
- Under “This trigger fires on” select “Some DOM Ready Events” and set the trigger to fire when “Page URL” + “contains” + acc=1
- Save the trigger and then save the tag
(3) Test
After configuring all Google Ads accounts, publishing all GTM tags for the website, and resuming campaigns in Google Ads ClickGUARD should start logging clicks for all accounts and you should start seeing the data in your Click Reports.
Comments
0 comments
Please sign in to leave a comment.