What is a Google Ads tracking template?
A Google Ads tracking template is a URL pattern Google Ads applies when someone clicks your ad. It starts with {lpurl}, which inserts your final URL, then adds ValueTrack parameters such as {campaignid}, {adgroupid} and {keyword}, joined by ampersands. Templates can be set at account, campaign, ad group, ad or keyword level.
The template to copy
{lpurl}?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_content={adgroupid}&utm_term={keyword}&matchtype={matchtype}&device={device}
Every value in braces is filled in by Google Ads at click time. The parameter list comes from Google's ValueTrack parameters guide.
- Search adGoogle Ads
Step 1: Start with {lpurl}
It inserts your final URL. Without it the landing page breaks.
- keyword
- lead tracking software
- Tracking linkGoogle Ads
Step 2: Add the ValueTrack parameters you need
Campaign, ad group and keyword IDs, joined with ampersands.
example.com/demo?utm_source=google&utm_medium=cpc&utm_campaign={campaignid}&utm_term={keyword}
- Landing pageYour site
Step 3: Test it and check the landing page
Use Test in Google Ads, then load the page and read the address bar.
- Form leadTrakt
Step 4: Make sure the values reach the lead
The parameters only help if the form submission keeps them.
- utm_term
- lead tracking software
The keyword shown is an illustrative example. Google Ads fills in the real values when someone clicks.
Step 1: start with {lpurl}
Google says templates at account, campaign or ad group level must include a parameter that inserts the final URL, such as {lpurl}. Leave it out and the landing page breaks. Put {lpurl} first and follow it with ?.
If your final URL already has a question mark, Google Ads swaps the template's ? for an ampersand, so the same template works on both kinds of URL.
Step 2: add the ValueTrack parameters you need
Only add what you'll read. These are the ones most lead-gen teams use:
| Parameter | What Google Ads fills in |
|---|---|
{campaignid} | The campaign ID |
{adgroupid} | The ad group ID |
{keyword} | The keyword that matched (blank when the ad matched without a keyword) |
{matchtype} | e exact, p phrase, b broad |
{device} | m mobile, t tablet, c computer |
{gclid} | The Google click identifier |
Campaign IDs aren't readable names. If you want readable names in utm_campaign, set it per campaign with a custom parameter or a campaign-level template instead. Keep spaces out of the URL; Google warns that spaces break tracking.
Worked example: one template, one click
Illustrative example. Final URL https://example.com/demo, keyword lead tracking software, match type phrase, clicked on mobile. With the template above, the landing page URL would look like:
https://example.com/demo?utm_source=google&utm_medium=cpc&utm_campaign=<campaign id>&utm_content=<ad group id>&utm_term=lead%20tracking%20software&matchtype=p&device=m
The %20 is how a space in a keyword is written inside a URL.
Step 3: test it in Google Ads
At campaign level: Campaigns, Settings, add the Tracking template column, hover the cell, click the pencil, paste, then click Test before Save. Then click a live ad or a preview and read the address bar on your landing page. If a redirect strips the query string, fix that first. For the wider setup, see the Google Ads tracking playbook.
Step 4: make sure the values reach the lead
A template only puts values in the URL. They're gone the moment the visitor clicks to a second page, unless something stores them and puts them on the form. Our guide to UTM data lost on form submission covers why, and keyword revenue tracking covers reporting keywords against closed deals.
To skip the hand-built fields, sign up for Trakt free and every lead keeps the campaign and keyword it came from.
Why templates stop at the landing page (and how Trakt helps)
Google Ads knows the click. Your CRM knows the deal. The template carries the campaign as far as the first page view and no further.
How Trakt closes the gap
Trakt captures the UTMs and gclid when the visitor lands, keeps them in a first-party cookie, and adds auto-injected hidden UTM fields to your forms. It syncs source and revenue into your CRM and sends new-lead alerts by email and Slack.
Template alone vs. Trakt, by requirement
| Requirement | Tracking template alone | Trakt |
|---|---|---|
| Campaign and keyword in the click URL | Yes | Uses the same template |
| Values kept across pages | No | First-party cookie |
| Values on the form submission | Only with hand-built hidden fields | Auto-injected hidden UTM fields |
| Choosing which parameters to track | Same either way | Same either way |
FAQ
Is there a Google Ads tracking template generator?
Google Ads doesn't have a separate generator; you type the template into the Tracking template field and use its Test button. Copy the template on this page, swap in the parameters you need, and test it before saving.
Do I need {lpurl} in my tracking template?
Yes, at account, campaign and ad group level. {lpurl} inserts your final URL. Google says templates without a final-URL parameter break the landing page.
Tracking template or final URL suffix?
Both can add parameters. The final URL suffix appends parameters to the final URL. A tracking template can also send the click through a third-party tracker. If you don't use a click tracker, either works; check Google's current docs for your setup.
Why is {keyword} blank in my URLs?
Google returns a blank keyword when the ad matched without one, such as in Performance Max, Dynamic Search Ads or AI Max keywordless matching. Use {targetid} or campaign reports for those clicks.
Does auto-tagging replace a tracking template?
No. Auto-tagging adds gclid for Google's own reporting. A template adds readable parameters that other tools and your forms can store. Most teams use both.
What to do first
Paste the template above into one campaign, click Test, then click your own ad and check the address bar. If the parameters are there, roll it out to the account.


