To track ad performance in your analytics or Customer Relationship Management (CRM) platform, you must know which campaign drove a click. LinkedIn Ads helps by letting you add dynamic URL parameters.
These special codes automatically add campaign and ad data (like Campaign ID and Creative ID) to your ad's website link. This guide shows you how to set them up.
Quick Start
- Go to Account Settings > URL Parameters in Campaign Manager.
- Paste this template into the text box:
utm_source=linkedin&utm_medium=cpc&utm_campaign={{CAMPAIGN_ID}}&utm_content={{CREATIVE_ID}}
- Click Save.
Understand Dynamic URL Parameters --- how placeholders work
Dynamic parameters are small placeholders, like {{CAMPAIGN_ID}}, that you add to your ad's website link.
When someone clicks your ad, LinkedIn automatically replaces these placeholders with the real data from that ad. This lets you see exactly which campaign or ad creative led to the click.
Key Parameters
This guide focuses on CAMPAIGN_ID and CREATIVE_ID, but other parameters are available.
| Parameter | What It Does |
|---|---|
{{CAMPAIGN_ID}} |
Inserts the unique number for the ad campaign. |
{{CREATIVE_ID}} |
Inserts the unique number for the specific ad creative. |
{{CAMPAIGN_NAME}} |
Inserts the text name of your campaign. |
{{CAMPAIGN_GROUP_ID}} |
Inserts the ID of the campaign group. |
Copy a URL Tracking Template --- copy-paste examples
We recommend using a standard UTM (Urchin Tracking Module) structure. These are the default codes used by tools like Google Analytics.
Here is a template you can copy and paste directly into LinkedIn. The cpc tag stands for "Cost-Per-Click."
Recommended Template (Using Campaign ID)
utm_source=linkedin&utm_medium=cpc&utm_campaign={{CAMPAIGN_ID}}&utm_content={{CREATIVE_ID}}
Alternative Template (Using Campaign Name)
utm_source=linkedin&utm_medium=cpc&utm_campaign={{CAMPAIGN_NAME}}&utm_content={{CREATIVE_ID}}
Custom Template (Advanced)
If you prefer not to use utm_campaign, you can use your own custom parameter names.
utm_source=linkedin&utm_medium=cpc&li_campaign_id={{CAMPAIGN_ID}}&li_creative_id={{CREATIVE_ID}}
Apply the Template to Your Account --- step-by-step setup
The easiest method is to apply this tracking at the account level. This automatically adds the parameters to all ads in your account.
![]()
- Log in to LinkedIn Campaign Manager.
- Select the correct Ad Account from the list.
- Click the Account Settings (gear icon) in the top menu.
- Select URL Parameters from the dropdown menu.
- Paste your chosen URL template into the text box under Account tracking parameters.
- Important: Your template should not start with a question mark (
?) or ampersand (&). LinkedIn will add the correct punctuation for you.
- Important: Your template should not start with a question mark (
- Click the Save button.
That's it. From now on, any ad in this account will have its website URL updated with these parameters.
When a user clicks an ad, the URL they land on will look like this:
Answer Common Questions --- FAQs
Will this apply to my existing ads?
Yes. Setting this at the account level applies it to all existing and new ads.
Can I set this at the campaign level instead?
Yes. When you create or edit a campaign, you will find the same URL tracking parameters box at the bottom of the "Campaign setup" page. Parameters set at the campaign level will override any parameters set at the account level.
What if my ad's destination URL already has a ? in it?
LinkedIn's system is smart enough to handle this. It will correctly use an ampersand (&) to add your new parameters instead of a second question mark.
