Skip to main content

Ad tracking on LinkedIn

Auto-installed per-campaign — this page documents exactly which parameters Kleerr sets and how to do it yourself.

Overview

Per-campaign fan-out

LinkedIn has no account-level URL Tracking Parameters API. Kleerr fans out across every campaign in your ad account, setting the same parameter set on each. From your perspective it's one click; under the hood it's one PUT per campaign.

Why this matters

Without campaign and ad set IDs on every click, Kleerr sees LinkedIn-attributed conversions but can't break them by campaign or tell you which ad set is actually driving pipeline — which is the thing you need to optimize. LinkedIn only runs on LinkedIn inventory, so there's no klr_n needed; klr_p=linkedin already tells us the surface.

What each parameter captures

Each {{macro}} is a LinkedIn-native placeholder that resolves to a real value at click time.

ParamMacroResolves to
klr_phardcodedplatform identifier — always "linkedin"
klr_c{{CAMPAIGN_ID}}top-level campaign ID (LinkedIn renamed Campaign Group → Campaign in Oct 2025)
klr_ag{{AD_SET_ID}}ad set ID — LinkedIn’s middle hierarchy level
klr_a{{AD_ID}}ad / creative ID

Install it yourself

Campaign Manager has an Account-level parameters textbox that applies to every ad set and ad in the account — paste once, done. Copy this into Account assets → URL parameters → Account-level parameters:

Account tracking parameters

klr_p=linkedin&klr_c={{CAMPAIGN_ID}}&klr_ag={{AD_SET_ID}}&klr_a={{AD_ID}}

This is the UI-syntax version (with {{...}} macros). It mirrors what Kleerr’s API install writes per-campaign — same fields, same resolved values at click time.

  1. 1

    Open Campaign Manager → Account assets

    In Campaign Manager, select the ad account, then go to Account assets → URL parameters.

  2. 2

    Open Account-level parameters

    In the Account-level parameters card, click Edit. The textbox under "Account tracking parameters" accepts a single inline string with {{...}} macros — apply once, covers every ad set and ad in the account.

  3. 3

    Paste the Kleerr snippet

    Paste the snippet above as-is. The {{CAMPAIGN_ID}} / {{AD_SET_ID}} / {{AD_ID}} placeholders are LinkedIn-native — they resolve to numeric IDs at click time.

  4. 4

    Save

    Click Save. LinkedIn applies the snippet to every campaign and creative under this ad account on the next refresh.

  5. 5

    Verify in Kleerr

    Open Kleerr → Advertising → Ad Tracking → click Verify on the LinkedIn row. The tracked / total counter updates within a few minutes.

Watch the walkthrough

The full flow in Campaign Manager — open Account assets → URL parameters, paste the snippet into Account-level parameters, Save.

Verify your installation

Open Kleerr → Advertising → Ad Tracking. The LinkedIn row shows the percentage of active campaigns carrying Kleerr params. The first read on a large account can take up to a minute since we have to enumerate every campaign — the result caches for five minutes after.