Skip to content
FunnelGuard

Fix guide by FunnelsGuard

TikTok and LinkedIn pixels ignoring consent: how to fix it

TRK-308High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A consent banner records whether a visitor accepts or rejects tracking. For this to matter, every ad tag on the page must obey that choice. This issue means the TikTok Pixel, the LinkedIn Insight Tag, or both, still load and send hits after the visitor has rejected marketing cookies.

Why it costs you leads or sales

Where the consent choice gets ignored
  1. Visitor landsBanner appears
  2. Clicks RejectCMP stores 'marketing denied'
  3. Tag manager loads tagsTikTok and LinkedIn tags have no consent check
  4. Pixel hits sentData goes to TikTok and LinkedIn anyway

The visitor rejects, but the pixel never checks the choice.

How to check if your site has it

Test the rejected case by hand
  1. Open a clean session

    Use a private window, or clear cookies for your site, so the banner shows again. If you are in the EU or UK or use a VPN there, you see the EU banner.

  2. Open DevTools

    Press F12, go to the Network tab and tick 'Preserve log'.

  3. Click Reject all

    Do not accept anything. Then reload and browse to a key page, such as a form or product page.

  4. Filter the requests

    Look for requests to analytics.tiktok.com (TikTok) and px.ads.linkedin.com or snap.licdn.com (LinkedIn). Any request after Reject means the tag ignores consent.

  5. Check cookies too

    In Application > Cookies, look for _ttp (TikTok) and li_sugr or bcookie (LinkedIn). If they appear after rejecting, the tags ran.

How to fix it

Gate the pixels behind marketing consent
  1. Turn on consent overview

    In your container go to Admin > Container Settings and tick 'Enable consent overview'. This shows which tags have consent checks.

  2. Open the TikTok tag

    Open the tag, go to Advanced Settings > Consent Settings and choose 'Require additional consent for tag to fire'.

  3. Add the consent type

    Add ad_storage. Many CMP templates use this as the marketing signal. Use the type your CMP maps to marketing.

  4. Repeat for the LinkedIn tag

    Do the same for the LinkedIn Insight Tag and any LinkedIn conversion tags.

  5. Check the CMP sets the signal

    Make sure your CMP template sets consent defaults to denied and updates on Accept. Then use Preview mode to confirm the tags are blocked until you accept.

Load a pixel only after marketing consent (pattern)javascript
var pixelsLoaded = false;

function loadMarketingPixels() {
  if (pixelsLoaded) return;
  pixelsLoaded = true;
  // Paste the TikTok base code here
  // Paste the LinkedIn Insight Tag code here
}

// Replace with your CMP's real API and event names
function onConsentChange(choice) {
  if (choice.marketing === true) {
    loadMarketingPixels();
  }
}

// Also run on page load if a saved choice already allows marketing
Pixels before and after the fix

Ignoring consent

  • TikTok and LinkedIn tags fire on All Pages
  • Requests are sent after Reject all
  • _ttp and LinkedIn cookies set without a choice

Following consent

  • Tags wait for marketing consent
  • No TikTok or LinkedIn requests after Reject all
  • Tags fire normally after Accept all
What fires when the visitor rejectsInteractive
TikTok and LinkedIn tags have no consent check

Consent: blocked / denied

  • GA4no hit
  • Google Adsno hit
  • Meta Pixelno hit

Visitor rejects marketing, yet the TikTok and LinkedIn tags still fire and send data.

Toggle the cause to see how a missing consent check changes which tags fire after a rejection.

How to confirm it's fixed

Confirm the fix
  • Clear cookies and open the site in a private window
  • Click Reject all and browse a few pages
  • No requests to analytics.tiktok.com or LinkedIn domains appear in the Network tab
  • No _ttp or LinkedIn cookies are set
  • Clear cookies again, click Accept all and confirm both tags now fire
  • Submit a test lead after accepting and check the conversion event is sent
  • Check Google Tag Manager Preview shows the tags as blocked, then fired

How to prevent it happening again

Prevention habits
  • Add consent settings to every new marketing tag before publishing
  • Never paste ad pixels into theme files if you use a tag manager
  • Re-test the Reject path after CMP updates, theme changes and container publishes
  • Keep a list of every ad tag and which consent category it belongs to
  • Schedule an automated check of the rejected case
How the problem usually appears
  1. Week 1

    A marketer adds the TikTok pixel with an All Pages trigger and no consent settings.

  2. Week 2

    The LinkedIn Insight Tag is pasted into the theme header.

  3. Week 6

    The CMP is set up and Google tags respect it, so everyone assumes all tags do.

  4. Later

    A test with Reject all shows both pixels still firing. Consent checks are added.

How FunnelGuard handles this

Questions people ask

Why is my TikTok pixel firing when the visitor rejects cookies?

The pixel is probably hard-coded or set to fire on All Pages with no consent check. TikTok does not read Google Consent Mode automatically, so your CMP or tag manager must block it until marketing consent is granted.

Does Google Consent Mode control the LinkedIn Insight Tag?

No. Consent Mode signals are read by Google tags. The LinkedIn Insight Tag needs its own control, such as a consent requirement in Google Tag Manager or script blocking in your cookie banner.

How do I block the TikTok pixel until consent is given?

In Google Tag Manager, open the TikTok tag, go to Advanced Settings > Consent Settings and require the marketing consent type your CMP sets. Alternatively, mark the script as marketing in your CMP so it is blocked until accepted.

How do I test whether tags fire after I click Reject all?

Open a private window, open DevTools and the Network tab, click Reject all, then browse. Look for requests to analytics.tiktok.com and LinkedIn domains such as px.ads.linkedin.com. Any request after rejecting means the tag ignores consent.

Why did my TikTok and LinkedIn conversions stop after I added consent checks?

The tags may now be blocked for everyone, or your CMP may not be sending the granted signal after Accept. Test with Accept all and check the consent update reaches your tag manager.

Can a tag still fire if I have both a gated and an ungated copy?

Yes. The ungated copy, often pasted in the theme header, ignores consent and keeps sending hits. Search your page source for both pixel domains and keep only the gated copy.

Can FunnelGuard detect pixels that ignore consent?

Yes. FunnelGuard runs a denied variant that rejects consent and checks whether tracking hits, including TikTok and LinkedIn, are still sent. It alerts you with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: denied variant.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.