Skip to content

Add UTM Parameters to YouTube Ads with Tracking Templates

Manually editing every ad URL is slow and easy to get wrong as campaigns multiply. A single tracking template in Google Ads can append consistent UTM parameters automatically, while custom parameters let each campaign, ad group, and ad supply its own values.

Why use a template instead of editing every URL

Appending UTM parameters by hand to each ad URL works for a single ad, but it becomes repetitive and inconsistent across a larger account. A tracking template centralises the pattern: you define it once, Google Ads applies it on click, and placeholders are filled with live values. That keeps naming consistent and makes later reporting easier to trust.

How the template and its placeholders work

Think of the template as a formula. It starts with {lpurl}, which expands to the destination URL stored behind the ad. After a question mark, fixed values such as utm_medium=paid and utm_source=youtube stay the same, while {_campaign}, {_adgroup}, and {_ad} are custom parameters you define per campaign or ad group. On click, Google Ads swaps those placeholders for the values you supplied, producing a complete URL with campaign, ad-group, and ad identifiers already filled in.

Five steps to set it up

First, decide the values you want to report: medium, source, campaign, ad group, and ad. Draft the template in a text editor so you can adjust it before pasting. Next, choose the level where it belongs. Account level applies everywhere, campaign level applies within one campaign, and ad group level applies within one ad group, with lower levels overriding higher ones. If Search or other campaign types share the account, scope the YouTube template to the YouTube campaigns rather than the whole account. Then open the chosen campaign, go to Campaign Settings, open Campaign URL options, and paste the template into the Tracking Template field. Finally, define each custom parameter: open the relevant campaign or ad group, open Settings, expand Campaign URL options, and enter the name and value for every placeholder, repeating this wherever the template is used.

Test before you trust the data

Use the Test link at the level where you added the template to preview the click URLs for the ads in that campaign. Review each generated URL and check that the UTM values reflect the correct campaign, ad group, and ad. Fix any missing or mismatched custom-parameter values before judging performance from the data.

Carry UTM values through to leads and customers

Analytics can show how many visits a YouTube campaign generated, but connecting those visits to leads and customers requires carrying the UTM values forward. A typical attribution setup stores the landing-page UTM values in the visitor's browser, writes them into hidden form fields when the visitor submits a form, and captures them alongside the details the visitor entered. That submission record can then be reviewed in the form tool or passed to a CRM for reporting by campaign. The specific tool, hidden fields, and destination depend on your own stack, so treat this as a workflow to adapt rather than a fixed configuration.

Summary checklist

A template with custom parameters gives you one consistent pattern, automatic application on click, and structured values for reporting. Scope it to the right level, define every placeholder, and test the generated URLs. If you also want to capture UTM data in a CRM, plan how the values will be stored and passed through your forms before you rely on the reports.

Tracking template field map
Template partWhat it doesExample value
{lpurl}Expands to the landing-page URL behind the adDestination URL stored on the ad
utm_mediumFixed medium value in the templatepaid
utm_sourceFixed source value in the templateyoutube
{_campaign}Custom parameter replaced with the campaign value you defineCampaign name you supply
{_adgroup}Custom parameter replaced with the ad-group value you defineAd group name you supply
{_ad}Custom parameter replaced with the ad value you defineAd name you supply

Illustrative structure based on the supplied template; values are examples, not account-specific settings.

Where to apply the tracking template
LevelScopeBest fit
AccountAll campaigns and ad groups in the accountAccounts running only YouTube Ads with one shared pattern
CampaignAll ad groups within that campaignYouTube campaigns inside a mixed Google Ads account
Ad groupAll ads within that ad groupDifferent patterns for specific ad groups

Lower levels override higher levels when templates are set at more than one level.

Frequently asked questions

What is a tracking template for YouTube Ads?

A tracking template is a reusable pattern that tells Google Ads how to append UTM values to the landing-page URL behind each ad. Placeholders such as {lpurl} and custom parameters beginning with an underscore are replaced with the destination URL and the values you define for that campaign or ad group.

Where should I add the tracking template?

You can apply it at account, campaign, or ad group level. Lower levels take precedence, so an ad-group template overrides a campaign or account template. If the same account also runs Search campaigns, applying a YouTube-specific template only to the relevant YouTube campaigns avoids mislabelling other traffic.

How can I check that UTM parameters are being added correctly?

Open the level where the template was added, use the Test option, and inspect the resulting click URLs. Confirm that medium, source, campaign, term, and content values match the intended campaign, ad group, and ad before relying on the data.

How do UTM parameters help track leads and customers, not just visits?

UTM parameters alone show visits in analytics. To connect a lead or customer to the originating campaign, preserve the UTM values through the visit and write them into hidden form fields, then capture them with the form submission in your form tool or CRM.