All networks
Google Ads
Tracking reference · Search

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 visit 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 valid traffic.

Cross-check any macro against the network’s official documentation. Google Ads official docs →

5
Google Ads macros mapped to attribution
2
required for attribution
no-hop
one script, no link rewriting
0–100
quality score on every visit

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.

MACRO MAP

Google Ads macro → ValidVisit param

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.

TRACKING URL

Ready-to-use Google Ads tracking URL

google-ads 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}

Append these params to your landing-page URL — Google Ads fills the macros at click time, so every visit arrives attributed and ready to score. No funnel hop.

Found a bad placement? Exclude it in Google Ads

The buyer pastes/uploads the list of bad placements (site URLs, app IDs, YouTube channel/video IDs) as placement exclusions — per campaign, account-wide, or into a shared placement exclusion list applied across accounts (up to 20,000 entries per paste, 65,000 exclusions per account).

Campaigns > Content (or Insights & reports > "Where ads showed") > Exclusions > placement exclusions at campaign or account level; Tools > Shared library > Placement exclusion lists; IP exclusions under Campaign settings
FAQ

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.

Is Google Ads traffic real? See how ValidVisit scores every Google Ads click for bots and invalid traffic.
auto-surf.example22
zone 661760
market-daily.example83

Score every Google Ads click — and find the fake ones.

See which Google Ads publishers and placements send real buyers vs. bots.

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

Free trial at launch · just your email

One script · no cookies · no fingerprinting · raw IP never stored