UTM Parameters for LinkedIn Ads, Using LinkedIn's Dynamic URL Tracking Parameters
LinkedIn now lets you add UTM parameters once and have campaign and ad details filled in for you. This guide explains static and dynamic parameters, the dynamic values LinkedIn documents, the character rules that silently break links, and how to check the result in GA4.
In short
LinkedIn Campaign Manager has URL tracking parameters that append UTMs to your ads. Static parameters, such as utm_source=linkedin, can be set at account, campaign or ad level. Dynamic parameters, written like {{CAMPAIGN_NAME}}, can be set at account or campaign level and fill in names and IDs automatically. LinkedIn restricts which characters keys and values may contain.
LinkedIn is often the most expensive click in a B2B budget, which makes it the one you most need to measure, and yet LinkedIn traffic regularly shows up in GA4 as a vague linkedin.com referral or, from the mobile app, as direct. Tagging every ad by hand used to be the only fix. Campaign Manager now has URL tracking parameters that append UTMs for you, including dynamic values that fill in names and IDs. This guide explains how they work, the rules that are easy to miss, and a template you can use.
Static and dynamic parameters
LinkedIn separates the two. A static parameter is a fixed key and value you type, such as utm_source=linkedin or utm_medium=paid_social. A dynamic parameter is a key whose value LinkedIn fills in at click time, such as utm_campaign={{CAMPAIGN_NAME}}. According to LinkedIn's help centre, static parameters can be added at account, campaign and ad level, while dynamic parameters can be added at account or campaign level. The final URL combines the parameters from every level.
Account level is the natural home for a standard template, because every campaign then inherits it. Use campaign or ad level only for exceptions, such as a test you want to label separately. If you manage several ad accounts, for example as an agency, set the same template in each account and consider adding the account name as a custom key, so traffic from different clients' accounts can never be mixed up in a shared report. Write the template down somewhere the whole team can find it, because new accounts are the place a missing template usually goes unnoticed for weeks.
The dynamic values LinkedIn documents
LinkedIn has been moving Campaign Manager to a campaign, ad set and ad structure, and its help page lists a new set of dynamic values for it, introduced from October 2025, next to the older set. At the time of writing the page says existing ad sets update to the new parameters automatically, and new or edited ad sets must use them.
| Current dynamic value | What it fills in | Typical UTM use |
|---|---|---|
| {{ACCOUNT_ID}} / {{ACCOUNT_NAME}} | Ad account ID or name | Custom key, useful for agencies |
| {{CAMPAIGN_ID}} / {{CAMPAIGN_NAME}} | Campaign ID or name | utm_id / utm_campaign |
| {{AD_SET_ID}} / {{AD_SET_NAME}} | Ad set ID or name | Custom key / utm_term |
| {{AD_ID}} / {{AD_NAME}} | Ad ID or name | Custom key / utm_content |
The older set listed on the same page uses CAMPAIGN_GROUP_ID, CAMPAIGN_GROUP_NAME, CAMPAIGN_ID, CAMPAIGN_NAME, CREATIVE_ID and CREATIVE_NAME, plus the account values. LinkedIn does not publish a one-to-one mapping between the two sets on that page, so do not assume that CAMPAIGN_NAME means the same level in both. Values must be in capital letters inside double curly brackets, exactly as shown. Because LinkedIn is mid-way through this change, open the URL tracking parameter panel in your own account and check which keys it offers before you copy anyone's template, including ours.
Character rules that break links quietly
LinkedIn is stricter than most platforms about what a parameter may contain. Its help page lists letters, numbers and underscores as the only supported characters for keys, and letters, numbers, underscores, plus signs and hyphens for values. Characters such as ?, !, #, %, &, brackets and @ are not supported. Two practical consequences:
- Write static values with hyphens or underscores, never spaces or full stops: paid_social, not paid social or paid.social.
- Name campaigns, ad sets and ads without special characters if you plan to pass names dynamically, because the name becomes the value.
- Keep everything lower case. GA4 treats LinkedIn and linkedin as two different sources.
A template you can adapt
Using the current dynamic values, an account-level template that mirrors the structure we recommend for other paid social platforms looks like this:
utm_source=linkedin&utm_medium=paid_social&utm_campaign={{CAMPAIGN_NAME}}&utm_term={{AD_SET_NAME}}&utm_content={{AD_NAME}}&utm_id={{CAMPAIGN_ID}}
Source and medium are static because they never change for LinkedIn ads. paid_social matches GA4's paid pattern, and linkedin is the source GA4 needs to recognise a social platform; together they should place the traffic in Paid Social. The reasoning behind that split is in our guide to utm_source vs utm_medium. Keep the campaign ID in utm_id as a stable key in case names change.
Avoid double tagging
LinkedIn says campaign URL parameters do not replace or remove parameters already in the destination URL. If your team has historically pasted tagged URLs into ads, switching on tracking parameters as well can produce a URL with two utm_source keys. Analytics tools generally read only one of them, and which one is not something to leave to chance. When you adopt tracking parameters, strip the manual tags from destination URLs, or keep manual tags and leave tracking parameters off.
Checking the result
- 1Preview the ad and open the destination; confirm the URL shows real names and IDs rather than the literal {{...}} text.
- 2Check that no key appears twice in the URL.
- 3Confirm your site's redirects keep the parameters, especially on landing pages built in a separate tool.
- 4Watch GA4 Realtime for linkedin / paid_social, then check after a day that sessions land in Paid Social.
Reading LinkedIn results in GA4
With the template in place, open Reports, Acquisition, Traffic acquisition and filter Session source to linkedin. Session campaign compares campaigns, and adding Session manual term or Session manual ad content as a secondary dimension breaks them down by ad set or ad. LinkedIn audiences are usually small, so give each ad set enough time to collect sessions before judging it, and compare engagement and key events per session rather than raw visits. Expect LinkedIn's click count and GA4's session count to differ: visitors who leave before the page loads, who decline analytics consent, or who click twice within a session all widen the gap. What matters is that the gap is stable, and that sessions you can see carry the right campaign.
Organic LinkedIn posts need their own tags
Campaign Manager's tracking parameters only apply to ads. Links in company page posts, employee posts and newsletters on LinkedIn are not touched, so tag them by hand with a different medium, such as social, so organic and paid stay separate in reports. Our guide to UTM parameters for organic social posts covers the scheme for those links.
Lead Gen Forms and long sales cycles
UTMs only work for clicks that reach your website. LinkedIn Lead Gen Forms keep the visitor on LinkedIn, so those leads need to be synced from LinkedIn rather than tracked through your site. For website leads, the UTM values need to be saved with the form submission, not just seen by GA4, because a B2B deal may close months after the click. Our guide to capturing UTM parameters in hidden form fields shows how, and B2B attribution for long sales cycles covers what to do with the data afterwards.
LinkedIn's own conversion reporting is separate from your UTMs and relies on its Insight Tag or its Conversions API, explained in our LinkedIn Conversions API guide. EndFrame has no native LinkedIn destination, but its first-party tracker captures LinkedIn UTMs on arrival, keeps them on the lead record, and can forward conversions to your CRM or any endpoint through a webhook.
Frequently asked questions
Which dynamic parameters does LinkedIn support?
At the time of writing, LinkedIn's help page lists ACCOUNT_ID, ACCOUNT_NAME, CAMPAIGN_ID, CAMPAIGN_NAME, AD_SET_ID, AD_SET_NAME, AD_ID and AD_NAME as the current set, alongside an older set that used campaign group, campaign and creative names. Each value is written in capitals inside double curly brackets.
Do LinkedIn URL tracking parameters replace the UTMs in my destination URL?
No. LinkedIn says campaign URL parameters do not replace or remove parameters already in the ad's destination URL. If you tag the destination URL by hand and also set tracking parameters, you can end up with duplicate keys, so use one method.
Can I use spaces or full stops in LinkedIn UTM values?
No. LinkedIn lists letters, numbers, underscores, plus signs and hyphens as the supported characters for values, and fewer for keys. Use hyphens or underscores instead of spaces and keep values in lower case.
Do UTM parameters track LinkedIn Lead Gen Form submissions?
No. A Lead Gen Form is completed inside LinkedIn, so the person never reaches your website and no UTM is recorded. Those leads come through LinkedIn's own reporting or an integration that syncs form data to your CRM.
Sources
Try EndFrame
Add a server-side path for your conversions.
EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.
No credit card required