LinkedIn Insight Tag Destination Config Reference
- free
- growth
- enterprise
6 minute read
LinkedIn Insight Tag is a web device mode advertising destination. RudderStack’s JavaScript SDK loads the Insight Tag in the browser, where it tracks page loads on its own, and fires a LinkedIn conversion for each track event you map to a conversion ID.
In a LinkedIn Insight Tag destination spec:
type: linkedin_insight_tagdefinition_version: 1
Sample configuration
version: rudder/v1
kind: destination
metadata:
name: linkedin-insight-tag-prod
spec:
id: linkedin-insight-tag-prod
display_name: LinkedIn Insight Tag Production
type: linkedin_insight_tag
definition_version: 1
enabled: true
config:
partner_id: "{{ .LINKEDIN_PARTNER_ID }}"
event_to_conversion_id_map:
- from: Order Completed
to: "12345678"
- from: Signed Up
to: "23456789"
connection_mode:
web: device
consent_management:
web:
- provider: oneTrust
consents:
- marketingThe above example sends LinkedIn a conversion for Order Completed and Signed Up events, and nothing for any other track event — see Conversion tracking. The conversion IDs and the reference that supplies the partner ID are quoted, because each value is a string of digits.
Config keys
config accepts only the keys listed below. The shared config key rules cover unknown keys, defaults, and immutability.
LinkedIn Insight Tag runs only in web device mode, and acts only ontrackcalls from the SDK. Every key on this page configures what the Insight Tag does in the browser.
Connection
partner_id
RequiredSecretType:
string
Description:
Your LinkedIn partner ID — the _linkedin_partner_id value in LinkedIn’s Insight Tag code. Each Insight Tag has its own partner ID; if it doesn’t match the one in your ad account, the tag collects neither page loads nor conversions.
Notes:
- Written as a string, so quote its reference:
"{{ .LINKEDIN_PARTNER_ID }}". Rudder CLI substitutes the value before it parses the YAML, so an unquoted reference to a numeric ID becomes a number and fails validation. - Not validated locally beyond being present.
Supply it as a {{ .VAR }} reference rather than a literal — see Secrets.
Conversion tracking
event_to_conversion_id_map
Type:
array of objects
Description:
Maps track event names to LinkedIn conversion IDs. When a mapped event fires, the SDK sends LinkedIn one conversion for each ID mapped to that event. track events with no mapping aren’t sent to LinkedIn at all.
Notes:
from— RudderStack event name. Matched case-sensitively, ignoring leading and trailing spaces:Order Completedandorder completedare different events.to— ID of an event-specific conversion, from the conversion’s setup in LinkedIn Campaign Manager. Write it in quotes — an unquoted number fails validation.- Map one
fromto severaltovalues to fire several conversions for one event. - Each field is at most 100 characters, or a
{{ path || fallback }}template. - Rudder CLI doesn’t require either field, but an entry fires a conversion only with both.
event_to_conversion_id_map:
- from: Order Completed
to: "12345678"
- from: Order Completed
to: "87654321"See Tracking event-specific conversions to create a conversion and find its ID.
Event filtering
event_filtering
Type:
object
Description:
Restricts which track events the SDK passes to the Insight Tag, by event name. See Client-side Events Filtering.
Notes:
whitelist— array of event names to allow; every othertrackevent is dropped.blacklist— array of event names to drop; every othertrackevent is allowed.- The two are mutually exclusive, and Rudder CLI enforces it — setting both fails validation.
- Each name is at most 100 characters, or a
{{ path || fallback }}template. - Omit the block entirely to filter nothing.
Filtering runs before the conversion mapping. An event it drops fires no conversion, even when mapped, and an event it allows fires one only when mapped — so a blacklist entry pauses a mapped conversion without removing its mapping.
event_filtering:
blacklist:
- Signed UpPer-source keys
Both keys are objects keyed by the local source type — the tokens listed under Source types. A key naming a source type this destination doesn’t support fails validation.
connection_mode
Type:
object
Description:
Maps each source type you connect to the mode its events reach LinkedIn in. LinkedIn Insight Tag accepts only web: device.
Notes:
- An entry is required for each source type you connect — see Connect a source.
connection_mode:
web: deviceconsent_management
Type:
object
Description:
Consent provider configuration per source type. The entry shape, accepted providers, and the rules on resolution_strategy and consents are shared across all destination types — see Consent management.
Source types
LinkedIn Insight Tag accepts events from these source types in the mentioned connection modes:
| Source type | Connection mode |
|---|---|
web | device |
LinkedIn Insight Tag accepts only web sources, and only in device mode — the SDK loads the Insight Tag in the browser, and no events pass through RudderStack’s servers.
Connect a source
An event stream connection to this destination is checked against two rules at validate time.
The source’s type must be supported. LinkedIn Insight Tag accepts only web, the type a JavaScript source resolves to. Every other source resolves to a type it doesn’t accept — an iOS source to ios, an Android source to android, and webhook and server-side SDK sources to cloud — and reports, for example:
destination 'linkedin-insight-tag-prod' (type 'linkedin_insight_tag') does not support source 'my-ios-app':
source type 'ios' is not among supported source types: webThe destination config must carry a connection_mode entry for that source type. This lives on the destination spec, not on the connection spec. Without it:
destination 'linkedin-insight-tag-prod' config has no 'connection_mode' entry for source type 'web'LinkedIn Insight Tag needs no additional config keys to connect a web source.
Secrets
partner_id is the only secret key. Write it as a {{ .VAR }} reference and supply the value at apply time:
config:
partner_id: "{{ .LINKEDIN_PARTNER_ID }}"export RUDDER_LINKEDIN_PARTNER_ID="..."
rudder-cli apply
# or
rudder-cli apply --var-file secrets.vars.yamlNote that:
rudder-cli importwrites only the secrets the API returns, as{{ .VAR }}references, and leaves the others out. Add any secret key it leaves out, then supply the variables before you apply — see Secrets.- The partner ID is embedded in the page’s JavaScript, so masking it protects your YAML, not the value itself.
See How to Use Variable Substitution in Rudder CLI.
Changes by release
No changes since this type became available.
For changes across every destination type, see Destination Type Changes by Release.
See more
- LinkedIn Insight Tag Destination for the partner ID, page load tracking, and setting up event-specific conversions
- Destination Type Reference for Rudder CLI for the rules shared across destination types
- Destination YAML Reference for the spec envelope