virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / linkedin ads utm builder

LinkedIn ads dynamic UTM parameters builder

Enter your landing page, source and medium, then tick the dynamic parameters you want. You get the string for the URL tracking parameters field in Campaign Manager, in the new ad set naming or the old campaign group naming, and a preview of where a click lands. Nothing you type leaves this page.

Dynamic parameters to include

URL tracking parameters for Campaign Manager
Landing URL preview, with example values

How it is built: Source and medium go in lowercase with hyphens for spaces, like the first example on LinkedIn’s help page. A campaign or ad set token fills utm_campaign, an ad token fills utm_content, and anything left over keeps a LinkedIn-style key such as account_id. The preview uses a fictional company and IDs.

A B2B deal from LinkedIn often closes weeks after the first click. With a lookback window of up to 365 days, Virling can still credit the payment to the campaign that brought the buyer. 14 days free.

Start free trial

Read next: LinkedIn Ads revenue tracking, LinkedIn revenue tracking, B2B SaaS attribution, UTM naming convention template.

Static and dynamic parameters

LinkedIn calls them static and dynamic URL tracking parameters. Each one is written as key=value, with an ampersand between two of them:

Static parameterDynamic parameter
What it holdsA value you type, the same on every clickA value LinkedIn fills in, such as a campaign name or ID
How it looksutm_source=linkedinutm_campaign={{CAMPAIGN_NAME}}
Where it can be setAccount, campaign and ad levelAccount or campaign level
Use it forutm_source and utm_mediumutm_campaign and utm_content

A dynamic value must be in capital letters with double curly brackets before and after it. LinkedIn lists letters, numbers and underscores as supported in keys, and the plus sign and hyphen as well in values. This builder is stricter with the source and medium: it leaves out the plus sign, because a plus in a query string is read as a space.

The parameters do not replace the ones already in the destination URL. LinkedIn says the full set is a combination of the account, campaign and ad level parameters, so keep each tag in one place. The builder warns you when the landing page already carries a tag it is about to add.

LinkedIn pages this section relies on, checked on 2026-11-28: LinkedIn Help, URL tracking parameters in Campaign Manager, Changes to campaign hierarchy in Campaign Manager and Create an ad set in Campaign Manager; LinkedIn API docs, Dynamic UTM Tracking.

The CAMPAIGN_NAME change

Starting in October 2025, LinkedIn renames two of the four levels in Campaign Manager: a campaign group becomes a campaign, and a campaign becomes an ad set. Creative parameters become ad parameters. The change is gradual, so you might not see the new terms yet.

This matters because two names are used on both sides. {{CAMPAIGN_NAME}} and {{CAMPAIGN_ID}} used to mean what is now the ad set, and now mean what was the campaign group. LinkedIn says existing ad sets are updated to the new values by themselves while the key stays the same, and that new or edited ad sets must use the new ones.

So a key such as utm_campaign={{CAMPAIGN_NAME}} saved last year may now carry a different level than it did, and your reports can show a break on the day the account switched. If your account shows ad sets, leave the last box empty. If it still shows campaign groups, tick it. Your choices stay on the same level and only the names in the string change.

The API reference still lists only the old names, CAMPAIGN_GROUP_ID, CAMPAIGN_GROUP_NAME, CREATIVE_ID and CREATIVE_NAME among them. If a script or a partner tool writes your tracking parameters through the API, check which naming it sends.

Account and campaign group IDs

{{ACCOUNT_ID}} and {{ACCOUNT_NAME}} kept their names through the rename. They help when one landing page gets clicks from several ad accounts, such as an agency running ads for a client next to the client’s own team. The builder sends them as account_id and account_name, since no UTM tag is meant for an account.

A campaign group ID, {{CAMPAIGN_GROUP_ID}}, is what LinkedIn now calls {{CAMPAIGN_ID}}. Tick the old names box to get the old token. LinkedIn’s API docs say dynamic parameters can be set on a campaign or, from API version 202608, on the ad account. Account level tokens then apply to every ad in the account, which makes the account the place for the source, medium and account ID that never change.

Which UTM tag each LinkedIn parameter fits

The token names come from the two LinkedIn Help pages above. The right column is how this builder maps them; LinkedIn does not prescribe one.

New parameterOld parameterUTM tag
{{CAMPAIGN_NAME}}{{CAMPAIGN_GROUP_NAME}}utm_campaign
{{CAMPAIGN_ID}}{{CAMPAIGN_GROUP_ID}}utm_campaign, if the campaign name is off
{{AD_SET_NAME}}{{CAMPAIGN_NAME}}utm_campaign if both campaign boxes are off, or utm_content if both ad boxes are off
{{AD_SET_ID}}{{CAMPAIGN_ID}}The same as the ad set name, if that is off
{{AD_NAME}}{{CREATIVE_NAME}}utm_content
{{AD_ID}}{{CREATIVE_ID}}utm_content, if the ad name is off
{{ACCOUNT_NAME}}{{ACCOUNT_NAME}}None, sent as account_name
{{ACCOUNT_ID}}{{ACCOUNT_ID}}None, sent as account_id

There is no keyword in LinkedIn’s list, so the builder leaves utm_term out. Ticking a level’s name and its ID together puts the name in the UTM tag and the number under a key like ad_set_id.

B2B naming in utm_content

LinkedIn ads are bought by audience: job function, seniority, company size, a matched list of target accounts. That targeting lives on the ad set, so {{AD_SET_NAME}} is only useful if the ad set name says who it reaches. A pattern such as finance-director-200plus or abm-tier1-it reads well in a revenue report months later.

If you want the audience in utm_content, clear both ad boxes and the builder moves the ad set name there, next to the campaign in utm_campaign. If you want the ad there instead, keep the ad ID and put the audience in the campaign name. Either way, a renamed ad set starts a new row in reports while its ID does not, and LinkedIn’s pages do not say how spaces or symbols in a name are written into the URL, so lowercase names with hyphens are the safe choice.

Where to paste it in Campaign Manager

  1. Copy the parameter string, with no question mark in front.
  2. Create an ad set. Adding URL tracking parameters for the ads in it is one of the optional steps. If your account still has the old names, this is a campaign.
  3. Paste the string into the URL tracking parameters and save.
  4. Keep the landing page URL in the ad itself free of the same tags.
  5. Click through from a live ad and look at the address bar after the page loads. If the tags are gone, a redirect on your site, such as one to a login page or another domain, removed them.

LinkedIn’s help page shows a dynamic value under the key campaign_id, and has no example with a UTM key. Its API docs do show utm_campaign filled with CAMPAIGN_NAME, though still with the old level names. So test one ad before you roll the string out. If Campaign Manager does not accept it, type the campaign name in place of the part in curly brackets.

The API docs also say dynamic tracking does not support Conversation Ads and Message Ads. For those, put a fully tagged link in the message. The UTM builder makes one.

A worked example

With the defaults above, the string is utm_source=linkedin&utm_medium=paid_social&utm_campaign={{CAMPAIGN_NAME}}&utm_content={{AD_ID}}.

Say a landing page https://example.com/pricing is promoted in a campaign named demo-cfo-q4, through an ad with the ID 123456789. A click then lands on https://example.com/pricing?utm_source=linkedin&utm_medium=paid_social&utm_campaign=demo-cfo-q4&utm_content=123456789. The company, campaign and ID are fictional. With first-party cookies on, LinkedIn also adds a li_fat_id (LinkedIn Help, Troubleshoot implementing first-party cookies on your website, read on 2026-11-25), which the preview cannot show since LinkedIn creates it per click.

What Virling reads from a LinkedIn click

From a LinkedIn ad, Virling keeps the five UTM tags and the landing page. The li_fat_id is not stored, and neither are account_id or other keys this builder adds; they are for LinkedIn and your other tools.

The medium decides the channel. With paid_social the visit is Paid. With LinkedIn’s own example medium, social, or none at all, a click from linkedin.com or from the LinkedIn app’s browser lands in Social with your company page posts. When a forwarded link arrives with no referrer and no UTM tags, the li_fat_id still on it is how Virling labels that Direct visit a shared link.

LinkedIn deals are often paid weeks after the click. Virling can look back up to 365 days, and its first touch model credits the payment to the visit that introduced the buyer, as long as your checkout carries the visitor ID; link checkout to visits shows how. For the rest, see LinkedIn Ads revenue tracking and B2B SaaS attribution.

questions

LinkedIn dynamic UTM parameters FAQ

Can LinkedIn fill in utm_campaign with the campaign name?

LinkedIn's API docs show utm_campaign filled with CAMPAIGN_NAME. The Campaign Manager help page shows dynamic values under keys such as campaign_id and has no utm_campaign example, so save it and test one ad. If it is not accepted, type the campaign name as a fixed value.

Which dynamic parameters does LinkedIn support?

The new list is ACCOUNT_ID, ACCOUNT_NAME, CAMPAIGN_ID, CAMPAIGN_NAME, AD_SET_ID, AD_SET_NAME, AD_ID and AD_NAME. Each one goes in capital letters between double curly brackets, such as {{CAMPAIGN_ID}}. An account that has not switched yet still shows campaign group and creative names.

Why did CAMPAIGN_NAME change meaning?

Starting in October 2025, LinkedIn renamed campaign groups to campaigns and campaigns to ad sets. In the new naming CAMPAIGN_NAME is the name of what was a campaign group, and AD_SET_NAME is the name of what was a campaign.

Where do I add URL parameters in Campaign Manager?

LinkedIn lists an optional step to add URL tracking parameters while you create an ad set, and says dynamic parameters can be added at the account or campaign level. Paste the string without a question mark in front.

Is social or paid_social the right utm_medium for LinkedIn ads?

LinkedIn's API example uses social, but that puts ad clicks in Social next to your company page posts. Virling counts paid_social as Paid, along with paidsocial, paid, cpc, ppc and paidsearch, so this builder starts with paid_social.

Do dynamic UTM parameters work in Conversation Ads and Message Ads?

No. LinkedIn's API docs list Conversation Ads and Message Ads as unsupported for dynamic tracking. Put a link with every tag typed out in the message itself.

Does Virling read the li_fat_id?

No, Virling takes the channel and campaign from the UTM tags. It only looks for a li_fat_id on a visit with no referrer and no tags, to label it a shared link instead of typed. Leave it on the URL for LinkedIn.

See which LinkedIn campaign brings paying customers

Campaign Manager reports leads and clicks. Virling reports the invoices: each payment is joined to the LinkedIn visit that started it, so you can compare campaigns and audiences by revenue. 14 days free.

Start free trial See the demo