What Is a Tracking Template in Google Ads and How Does It Work?

Alexandre Airvault
January 30, 2025

A tracking template in Google Ads is a setup tool that helps you manage how you track the performance of your ads. This tool is essential for digital marketers because it allows for detailed tracking of where clicks on ads come from. By using tracking templates, marketers can see which elements of their campaigns are working well, helping to improve overall ad performance. Understanding what a tracking template is and how it functions can significantly enhance your advertising efforts on Google Ads.

Set Up Basic Tracking Template

Step 1: Access Template Settings

  • Sign in to Google Ads account.
  • Choose level for template:
  • Account: Settings > Account Settings
  • Campaign: Select campaign > Settings
  • Ad Group: Select ad group > Settings
  • Click "Additional settings."Select "URL options."

Step 2: Enter Template

Find "Tracking template" field.

Enter basic template structure: {lpurl}?parameter1=value1&parameter2=value2

Step 3: Save and Test

Click "Save" button.

Test URL using preview tool.

Verify parameters pass correctly.

Hierarchy and Override Rules

Account Level

  • Affects all campaigns
  • Overridden by lower levelsExample: {lpurl}?source=account

Campaign Level

  • Affects specific campaign
  • Overrides account levelExample: {lpurl}?source=campaign

Ad Group Level

  • Most specific
  • Overrides all higher levelsExample: {lpurl}?source=adgroup

Troubleshooting Guide

  1. URL ProblemsError: Parameters not showingFix: Check parameter formatExample: Use %20 for spaces
  2. Tracking IssuesError: Data not in analyticsFix: Verify UTM formatExample: Check case sensitivity
  3. Parameter ErrorsError: Missing valuesFix: Test parameter syntaxExample: Check curly braces

Best Practices

  1. Template StructureUse consistent naming.Keep parameters organized.Test before launching.Document all parameters.
  2. Parameter UsageInclude essential metrics.Avoid duplicate parameters.Use clear naming conventions.Keep URLs under 2,048 characters.
  3. Testing ProtocolTest on multiple browsers.Verify analytics tracking.Check mobile rendering.Monitor load times.

Performance Monitoring

  1. Daily ChecksVerify data passing.Check parameter values.Monitor URL function.Review analytics data.
  2. Weekly ReviewCompare source/medium data.Check campaign tracking.Verify conversion paths.Update as needed.

Optimize your Google Ads spending with AI

Get started free

ValueTrack Parameters in Google Ads

Basic URL Structure

Standard Format:{lpurl}?parameter1={value1}&parameter2={value2}

Example:{lpurl}?campaign={campaignid}&adgroup={adgroupid}&keyword={keyword}

Campaign and Ad Group Parameters

  1. Campaign Identifiers
  • {campaignid} = Unique campaign ID numberExample: "123456789"
  • {campaignname} = Name of your campaignExample: "Spring_Sale_2024"
  • {campaign} = Campaign name with '_' for spacesExample: "Spring_Sale_2024"
  1. Ad Group Identifiers
  • {adgroupid} = Unique ad group ID numberExample: "987654321"
  • {adgroupname} = Name of your ad groupExample: "Mens_Running_Shoes"
  • {adgroup} = Ad group name with '_' for spacesExample: "Mens_Running_Shoes"

Keyword and Match Type Parameters

  1. Keyword Parameters
  • {keyword} = The actual keyword triggering the adExample: "blue running shoes"
  • {keywordid} = Unique keyword ID numberExample: "45678912"
  • {matchtype} = Type of keyword matchExample: "e" (exact), "p" (phrase), "b" (broad)
  • {placement} = Website URL where ad appeared (Display Network)Example: "example.com"
  1. Search Parameters
  • {searchterm} = Actual search queryExample: "buy blue running shoes"
  • {querymatchtype} = How search matched keywordExample: "e" (exact), "p" (phrase), "b" (broad)

Ad Parameters

  1. Ad Identifiers
  • {creative} = Unique ad ID numberExample: "321654987"
  • {adposition} = Position where ad appearedExample: "1t2" (top of page, position 2)
  • {rank} = Numerical position of adExample: "1", "2", "3"
  1. Ad Network Parameters
  • {network} = Ad network typeExample: "g" (Google Search), "s" (Search Partner), "d" (Display Network)
  • {targetid} = ID of targeting criterionExample: "456789123"

Device and Location Parameters

  1. Device Information
  • {device} = Type of deviceExample: "c" (computer), "m" (mobile), "t" (tablet)
  • {devicemodel} = Specific device modelExample: "iPhone" or "Android"
  • {devicebrand} = Brand of deviceExample: "Apple", "Samsung"
  • {osversion} = Operating system versionExample: "14.5" (iOS)
  1. Location Data
  • {loc_physical_ms} = User's physical locationExample: "1234567"
  • {loc_interest_ms} = Location of interestExample: "7654321"
  • {countrycode} = Two-letter country codeExample: "US", "UK", "CA"
  • {regioncode} = Region codeExample: "CA-ON" (Ontario, Canada)
  • {citycode} = City codeExample: "1023191"

Custom Parameters

  1. Custom Parameter Format
  • {_custom1} = First custom parameter
  • {_custom2} = Second custom parameterExample Usage:{lpurl}?product={_custom1}&category={_custom2}
  1. Feed Parameters
  • {feeditemid} = ID of feed item
  • {feedtype} = Type of feed
  • {feeditemtext} = Text from feed item

Advanced Parameters

  1. Timing Parameters
  • {hour} = Hour ad was clicked (00-23)
  • {day} = Day of week (0-6, Sunday = 0)
  • {week} = Week of year (01-53)
  • {month} = Month (01-12)
  • {year} = Year (YYYY)
  1. Price Parameters
  • {totalads} = Total number of ads in group
  • {google_cpc} = Actual CPC paid
  • {param1} = Custom parameter 1
  • {param2} = Custom parameter 2

Template Examples

1 - Full Campaign Tracking

{lpurl}?utm_source=google&utm_medium=cpc
&utm_campaign={campaignname}
&utm_content={adgroupname}
&utm_term={keyword}
&device={device}
&position={adposition}
&matchtype={matchtype}
&network={network}

2 - E-commerce Tracking

{lpurl}?source=google
&campaign={campaignid}
&adgroup={adgroupid}
&keyword={keyword}
&product={_custom1}
&category={_custom2}
&device={device}
&location={loc_physical_ms}

3 - Local Business Tracking

{lpurl}?source=google
&campaign={campaign}
&location={loc_interest_ms}
&device={devicemodel}
&query={searchterm}
&position={rank}
&region={regioncode}

Optimize your Google Ads spending with AI

Get started free

On the same topic...

How to Set Up UTM Parameters in Google Ads?

Learn step-by-step how to set up UTM parameters in Google Ads for accurate tracking and improved campaign performance. Boost your marketing strategy today!

How to Add UTM Parameters to Google Ads?

Learn how to effectively add UTM parameters to your Google Ads campaigns for precise tracking and optimization. Boost your marketing strategy now!

What Is a Good CPC for Google Ads?

Learn what constitutes a good CPC for Google Ads and strategies to optimize your advertising budget effectively. Find expert insights here.

What Is the Ideal Bounce Rate for Google Ads?

Learn the ideal bounce rate for Google Ads campaigns and strategies to improve user engagement and ad performance. Find expert insights here.

What Is the Ideal Click-Through Rate (CTR) for Google Ads?

Uncover the ideal Click-Through Rate (CTR) benchmarks for Google Ads campaigns to optimize performance and drive conversions. Learn what constitutes a good CTR.

What Is Considered a Good Conversion Rate for Google Ads?

Uncover the ideal conversion rate benchmarks for Google Ads campaigns. Learn how to optimize and achieve success in your advertising efforts.