UTM convention
How to add UTM parameters to LinkedIn ads
The UTM template for LinkedIn ads, where it goes in Campaign Manager, and what every parameter records.
Paste the template into the URL parameters LinkedIn adds to your ads’ links. LinkedIn fills in the campaign, ad set and ad on each click.
The template#
Paste this into the URL parameters LinkedIn adds to your ads’ links. The parts in double braces are LinkedIn’s dynamic parameters: LinkedIn replaces them with the real campaign, ad set and ad on every click.
utm_source=linkedin&utm_medium=paid_social&utm_campaign={{CAMPAIGN_NAME}}&utm_content={{AD_SET_NAME}}&utm_term={{AD_NAME}}&utm_mc_id=cm-{{CAMPAIGN_ID}}-ag-{{AD_SET_ID}}-ad-{{AD_ID}}Where to paste it in Campaign Manager#
- In Campaign Manager, open what you want to track and choose to edit it.
- Find the setting that adds URL parameters to the link of every ad in it.
- Paste the template, replacing any parameters already there, and apply it to every ad.
- Save, then repeat for everything else you run.
LinkedIn’s dynamic parameters are case-sensitive. Keep them in capitals, exactly as they are in the template.
Parameters set there reach every ad under it, so there’s no need to edit each ad.
What each parameter records#
| Parameter | Value in the template | What it records |
|---|---|---|
utm_source | linkedin | The platform the click came from. Always linkedin. |
utm_medium | paid_social | The kind of ad: a paid ad on a social platform. |
utm_campaign | {{CAMPAIGN_NAME}} | The campaign name, filled in by LinkedIn on each click. |
utm_content | {{AD_SET_NAME}} | The ad set name, filled in by LinkedIn on each click. |
utm_term | {{AD_NAME}} | The ad name, filled in by LinkedIn on each click. |
utm_mc_id | cm-{{CAMPAIGN_ID}}-ag-{{AD_SET_ID}}-ad-{{AD_ID}} | Maven’s tracking ID: the campaign, ad set and ad IDs, in one value, so a visit ties to the exact ad even after you rename it. |
The parts of utm_mc_id#
utm_mc_id carries the IDs Maven needs to tie a visit to the exact LinkedIn Ads ad, in one value, so it survives link shorteners and redirects. Each part starts with a short prefix.
| Prefix | LinkedIn Ads dynamic parameter | Meaning |
|---|---|---|
cm- | {{CAMPAIGN_ID}} | Campaign ID |
ag- | {{AD_SET_ID}} | Ad set ID |
ad- | {{AD_ID}} | Ad ID |
Check it’s working#
Click through from the ad to your site. The address should carry utm_source=linkedin and a utm_mc_id that starts cm- followed by the real IDs, not the parameter names in double braces. Maven reads your ads each morning, and Attribution settings shows LinkedIn Ads as following the convention once LinkedIn reports the new parameters.
If your ads use a different convention#
Keep it. In Maven, open Attribution settings and add an exception for the parameter that differs, for example “On LinkedIn Ads, utm_medium is paid”. Maven then reads your ads the way you tag them. When Maven sees ads that don’t match the convention, it asks you there whether to keep them that way.
utm_mc_id is the one parameter every ad needs. Without it, Maven can’t tie a visit to the exact ad.
For the whole convention and the other platforms, see Maven’s UTM convention.