Skip to content

LMG Consent 1.2.1 — block marketing pixels (Meta, LinkedIn, TikTok, Bing, Pinterest, X)

Choose a tag to compare

@ericisaksen ericisaksen released this 30 Jun 15:22
· 1 commit to main since this release

Marketing-pixel blocking

Extends v1.2.0's CIPA prior-blocking beyond Google. The plugin now also neutralizes the common advertising-pixel loaders until the visitor grants Marketing consent — same mechanism (rewrite the external loader to type="text/plain", reactivate after opt-in), so no per-site changes are needed.

Pixels now blocked (all → Marketing)

  • Meta / Facebookconnect.facebook.net/…/fbevents.js
  • LinkedIn Insightsnap.licdn.com/li.lms-analytics/insight.min.js
  • TikTokanalytics.tiktok.com/i18n/pixel/events.js
  • Microsoft / Bing UETbat.bing.com/bat.js
  • Pinterest Tags.pinimg.com/ct/core.js
  • X / Twitterstatic.ads-twitter.com/uwt.js

Inline init calls (fbq(…), lintrk(…), ttq.track(…), etc.) are left in place but stay inert without their loader — no transmission until consent.

Notes

  • Pixels fired through a GTM container are already covered by the existing gtm.js block (the whole container is held until Marketing consent).
  • A site running a non-standard loader can still add it via LMG_CONSENT_EXTRA_PATTERNS.
  • No back-compat changes.