LinkedIn Insight Tag — consent fix
The LinkedIn Insight Tag (snap.licdn.com/li.lms-analytics/insight.min.js) loads before consent and sets tracking cookies (bcookie 2 years, bscookie 1 year). LinkedIn uses this data for conversion tracking and retargeting of LinkedIn ads.
Domains
snap.licdn.comlicdn.comlinkedin.com
Cookies
The LinkedIn Insight Tag sets the bcookie (valid for 2 years) and bscookie (valid for 1 year) to track visitor behaviour. When this script loads before a visitor has accepted your cookie banner, you are sharing personal data and website activity with LinkedIn without permission. Because this script is used for retargeting and ad measurement, it falls into the strictest GDPR category (marketing).
Why the LinkedIn tag loads too early
The LinkedIn Insight Tag is usually implemented via Google Tag Manager (GTM). The problem often arises because marketers blindly rely on Google Consent Mode v2.
Unlike Google Ads tags, LinkedIn does not fully support automatic Consent Mode v2. If you simply leave the trigger in GTM set to All Pages, LinkedIn will load immediately — regardless of your cookie banner's status.
The Fix: Hard blocking via GTM
Because LinkedIn does not have a cookieless "ping mode" like Google does, the only correct solution is to block the entire tag until explicit consent is given.
Add an Exception Trigger in GTM
Follow these exact steps in your GTM workspace:
- Open your LinkedIn Insight Tag.
- Go to the Triggering section.
- Click Add Exception.
- Click the + icon to create a new trigger.
- Choose the trigger type Custom Event.
- For Event name, enter
.*and check the box for Use regex matching. - Select Some Custom Events.
- Set the condition:
Consent State — marketing_storagedoes not equalgranted(orad_storage, depending on your CMP configuration). - Save the trigger and publish your GTM container.
Alternative: You can also use GTM's built-in Consent Settings (Advanced Settings > Consent Settings > Require additional consent for tag to fire > marketing_storage), but an exception trigger is often more robust in practice as it acts as a hard block.
How to Verify the Fix
Rely on your browser's Network tab to see if the script is truly being blocked.
- Open your website in an incognito window.
- Ignore the cookie banner (do not click anything).
- Open Developer Tools (F12) and navigate to the Network tab.
- Search for
snap.licdn.com. There must be absolutely no scripts loading from this domain.
Not sure if the fix worked, or want to verify that no other scripts are leaking data? Run a free scan with ConsentChecker.eu for instant confirmation.
Sources
No CMP yet?
A Cookie Management Platform (CMP) handles consent automatically for LinkedIn Insight Tag and other trackers — including the correct GTM integration.
Check your own site
Scan your website for free to see if LinkedIn Insight Tag (or other trackers) loads before consent.
Start free scan →