Skip to main content

How do I manually update my Google Ads tracking template?

Written by TrafficGuard Support
Updated this week

TrafficGuard can update your Google Ads tracking template automatically via the API during the connection flow. If you prefer to do this manually, or if the automatic update didn't complete, follow the steps below.

What is a tracking template?

A tracking template is a URL added to your Google Ads account that runs in parallel when someone clicks your ad. The user is sent to your landing page as normal, while Google simultaneously notifies TrafficGuard via the tracking URL. This is how TrafficGuard receives click data in real-time to detect and prevent invalid traffic. It is a standard Google Ads method and does not affect your ad delivery or landing page experience.

Before you begin

You need your TrafficGuard Property ID to build the tracking template URL. Your Property ID is a unique identifier in the format tg-000XXX-00X.

ℹ️ Where to find your Property ID

Go to Properties → your property → Settings and copy the Property ID.

Screenshot 2020-04-20 at 4.38.48 pm

If you haven't created a property yet, you'll need to do that first. See how to create a property.

Step 1: Build your tracking template URL

Copy the template below and replace tg-000XXX-00X with your actual Property ID.

https://track.trafficguard.ai/google-ads/v1/click/?property_id=tg-000XXX-00X&source_id={network}&creative_id={creative}&campaign_id={campaignid}&creative_set_id={adgroupid}&placement_id={placement}&keyword={keyword}&session_id={gclid}&feeditemid={feeditemid}&targetid={targetid}&loc_interest_ms={loc_interest_ms}&loc_physical_ms={loc_physical_ms}&matchtype={matchtype}&device={device}&devicemodel={devicemodel}&ifmobile={ifmobile:1}&ifnotmobile={ifnotmobile:1}&ifsearch={ifsearch:1}&ifcontent={ifcontent:1}&target={target}param1={param1}param2={param2}&random={random}&adposition={adposition}&destination_url={lpurl}

Example: If your Property ID is tg-000123-004, your URL starts with: https://track.trafficguard.ai/google-ads/v1/click/?property_id=tg-000123-004&...

Keep the rest of the URL exactly as shown — only replace the Property ID portion.

ezgif.com-gif-maker-1

Step 2: Add the tracking template in Google Ads

The tracking template needs to be applied at the account level in Google Ads so it applies to all campaigns automatically.

  1. Log in to your Google Ads account.

  2. Click All campaigns in the left navigation to go to the account level view.

  3. In the left menu, go to Settings → Account settings.

  4. Click on the Tracking section to expand it.

  5. In the Tracking template field, paste the full URL you built in Step 1.

  6. In the Final URL suffix field, paste the following: gclid={gclid}

  7. Click Save.

Google Ads Screenshot-1

ℹ️ Auto-tagging note: If you have auto-tagging enabled in Google Ads, you do not need to add gclid={gclid} to the Final URL suffix. Skip that field if auto-tagging is on.

If you need help, contact [email protected] with your TrafficGuard account name or URL.

Did this answer your question?