One template, every ad
Kleerr sets a single tracking template at the Google Ads customer level. ValueTrack macros resolve at click time, so every click on every ad — Search, Shopping, Display, PMax, YouTube — flows through with the right campaign / ad-group / creative IDs attached. One template, account-wide, no per-campaign work.
Without these IDs flowing through every click, your attribution can't tell PMax from Search, or which asset group actually converted. The template is plumbing. Getting it right is the difference between PMax being a black box and being dissectible.
What each parameter captures
This is the exact string Kleerr installs at the account-level Tracking template field. Each {macro} is a Google ValueTrack placeholder that resolves server-side at click time.
| Param | Source | Captures | Example |
|---|---|---|---|
| klr_p | hardcoded | platform identifier — always "google" | |
| klr_n | {network} | network surface code — Search vs Search Partners vs Display vs YouTube Video vs YouTube Search vs Gmail vs Discover. | g, s, d, ytv, ytsr, gmail, dsc |
| klr_c | {campaignid} | numeric campaign ID — joins to campaign name and spend via the Google Ads API | 1234567890 |
| klr_ag | {adgroupid} | numeric ad-group ID — empty on Performance Max (use klr_asg there) | 9876543210 |
| klr_asg | {assetgroupid} | Performance Max asset-group ID — the PMax equivalent of an ad group. Empty on Search/Shopping/Display. | 6543210987 |
| klr_a | {creative} | numeric ad / creative ID — joins to creative metadata via the API | 5551234567 |
| klr_t | {targetid} | targeting criterion ID with prefix — kwd- (keyword), aud- (audience), dsa- (Dynamic Search Ad), pla- (Shopping). Empty on PMax. | kwd-123, aud-456 |
Install it yourself
When you connect via Kleerr, this is one click — we write the account-level template via the Google Ads API and Google cascades it to every campaign and ad. If you’d rather configure it manually — for an audit, or because you have a custom flow — paste the template at the account level in Google Ads.
Tracking template
{lpurl}?klr_p=google&klr_n={network}&klr_c={campaignid}&klr_ag={adgroupid}&klr_asg={assetgroupid}&klr_a={creative}&klr_t={targetid}- 1
Open Account settings
In Google Ads, click the gear icon in the top right, then Setup → Account settings.
- 2
Find Tracking template
Scroll to the Tracking section. The Tracking template field sits at the top of that block.
- 3
Paste the Kleerr template
Paste the template above into Tracking template. Leave any campaign-level overrides untouched for now.
- 4
Save the setting
Save. Google cascades the template to every campaign, ad-group, and ad that doesn't already have its own override.
- 5
Verify in Kleerr
Open Kleerr → Advertising → Ad Tracking. Within five minutes the Google Ads row flips to Match.
Watch the walkthrough
The full flow in Google Ads — open Account settings, paste the template into Tracking template, Save.
Verify your installation
Open Kleerr → Advertising → Ad Tracking. Your Google Ads row shows the template state (Match / Conflict / Missing) and a coverage breakdown of active ads carrying the Kleerr macros. Click Verify to force a fresh read.
Handling existing templates
Before installing, Kleerr reads your current account-level template and any campaign- or ad-group-level overrides. If conflicts exist, you choose one of three actions — no silent overwrites.
Append — add Kleerr paramsDefault
Kleerr merges its klr_* keys into the existing template, preserving every non-Kleerr param exactly as-is. Stale klr_* keys from a previous install are updated in place rather than duplicated.
Replace with Kleerr
Overwrites the existing template with the Kleerr template. Use when the existing template is from an older Kleerr install, a system you no longer use, or you want a clean slate. Any non-Kleerr params in the old template will be lost.
Do not add tracking
Dismisses the conflict and leaves the existing template unchanged. Attribution won’t work until the Kleerr params are added. Choose this only if you have a hard dependency on the current template that you can’t modify yet.
Auto-heal: if another tool rewrites the account-level template, Kleerr's auto-heal toggle detects the change on the next sync and appends our params back without overwriting their other params. Auto-heal is opt-in per-account from the dashboard.
Override caveat
Google’s most-specific-wins rule means any campaign or ad-group with its own Tracking template override will block the account-level template. Kleerr’s status check enumerates these and surfaces them in the Ad Tracking tab so you can clear or update them. The dashboard install action only writes the customer-level template by default — it doesn’t flatten campaign-level overrides automatically.
What you lose without this template
If you skip install or choose “Do not add tracking”, clicks arrive in Kleerr without campaign or network context. Here’s what that means in practice:
- No network breakdown. Without
klr_n, PMax, Search, Shopping, Display, and YouTube all arrive as a single undivided channel. PMax is a black box — you can’t see where inside it your spend is actually going. - No PMax asset-group resolution. Without
klr_asg, every Performance Max click rolls up to the campaign with no way to tell which asset group drove it. You lose the only API surface that breaks PMax open. - Attribution falls back to UTMs. Without
klr_candklr_ag, Kleerr can’t join clicks to the Google Ads API for spend and naming data. Ifutm_campaignis set, that’s the fallback. If not, the click is unattributed. - No keyword / audience targeting. Without
klr_t, you can’t see which keyword, audience, or DSA target the click came from. Search-campaign optimization loses its sharpest signal.