All networks
Google Ads

Google Ads tracking tokens & macros

Google Ads tracking runs on its ValueTrack macros: you drop placeholders like {campaignid} and {keyword} into your final URLs, and Google swaps in the real values on every click. Appending these macros lets ValidVisit attribute each arriving click to its exact sub-source and score it 0-100 for traffic quality, so you can see which campaigns, ad groups, and search terms actually send clean traffic.

Verified 2026-06-24Confirmed against the network's official documentation. Google Ads official docs

On Google Ads, attribution leans on a few ValueTrack tokens. {campaignid} is required and ties every click back to the campaign it came from, while {adgroupid}, {creative}, and {keyword} narrow it down to the exact ad group, creative, and search term the buyer cares about. The notable quirk here is the click ID: Google's gclid isn't a macro you type at all, it's appended automatically through auto-tagging once that setting is on, so ValidVisit can stitch each click to its parameters without a funnel hop or a separate click-id placeholder.

Once each click is tied to its campaign, ad group, and keyword, that granularity is what makes the data actionable. ValidVisit only reports and scores the traffic after it arrives, it never blocks anything; the levers stay in your own Google Ads account. Because core Search doesn't let you blacklist an individual publisher, you use the scoring as evidence to opt out of Search Partners, apply IP exclusions, and file invalid-click credits, then shift budget away from the segments that consistently score dirty.

Campaign ID *campaign
Google Ads macro
{campaignid}
ValidVisit param
vv_campaign_id
Example
112233
Ad Group IDadset
Google Ads macro
{adgroupid}
ValidVisit param
vv_adset_id
Example
445566
Creative IDcreative
Google Ads macro
{creative}
ValidVisit param
vv_creative_id
Example
778899
Keywordkeyword
Google Ads macro
{keyword}
ValidVisit param
vv_keyword
Example
running shoes
Click ID (gclid) *click
Google Ads macro
(auto-tagging)
ValidVisit param
gclid
Example
EAIaIQ…

* required for Google Ads attribution.

Ready-to-use tracking URL
https://yoursite.com/landing?utm_source=google-ads&utm_medium=search&vv_campaign_id={campaignid}&vv_adset_id={adgroupid}&vv_creative_id={creative}&vv_keyword={keyword}&gclid=(auto-tagging)
Acting on Google Ads invalid traffic

On core Search you can't exclude a publisher. Use ValidVisit's evidence to opt out of Search Partners, apply IP exclusions, and file invalid-click credits — then shift budget off the segments that score dirty.

Search Partners opt-out · IP exclusions · refund claims

Google Ads tracking token FAQs

Which token identifies the sub-source on Google Ads?

There's a small stack of them. {campaignid} is the required one and pins each click to its campaign, and {adgroupid}, {creative}, and {keyword} drill down to the specific ad group, creative, and search term so you can tell which segment a noisy click came from.

Do I need a funnel hop or tracking link to use these macros?

No. These are plain URL parameters appended to your final URL, and Google's ValueTrack fills in the real values on click. The gclid is added automatically by auto-tagging, so there's no extra hop and no separate click-id macro to add.

Where do I add these macros in Google Ads?

You add them as ValueTrack parameters on your final URL or in the tracking template at the account, campaign, or ad-group level, and make sure auto-tagging is enabled so the gclid is appended. ValidVisit then reads the parameters off each click; the exclusion and credit actions all happen manually inside your own Google Ads account.

Track Google Ads clicks — and catch the fake ones.

See which Google Ads publishers and placements send real, converting traffic vs. bots.

Just your email · no card · unsubscribe anytime · privacy policy

Free trial at launch · lock in early-access pricing

One script · raw IP never stored · GDPR legitimate-interest basis