All integrations

Advertising integration

Twitter / X Pixel on Shopify, made compliant

X (formerly Twitter) conversion tracking pixel — used for X Ads campaign attribution.

Why consent applies to Twitter / X Pixel

The X Pixel sets cross-site advertising identifiers used for retargeting and conversion attribution. GDPR consent required for EU/UK/EEA visitors; CCPA opt-out required for California.

Cookies / scripts Twitter / X Pixel sets

  • muc_ads
  • personalization_id
  • guest_id_ads

Step-by-step compliance setup

  1. 1

    Block the X pixel until marketing consent

    Pixel loads via `<script src="https://static.ads-twitter.com/uwt.js">`. Block this script until the visitor accepts the marketing category.

  2. 2

    Signal consent via the X Pixel API

    Call `twq('config', 'consent', { consent_status: 'granted' | 'denied' })` after any `twq('config', …)` init call. X gates downstream event processing on this signal.

How Consentico handles Twitter / X Pixel

Consentico blocks the X pixel script and calls `twq('config', 'consent', …)` on the visitor's choice.

  • Default-deny before any tag fires
  • Three-layer script blocking (createElement + MutationObserver + content-type)
  • Audit-ready consent log

Related concepts

Related integrations

Block Twitter / X Pixel until consent — in five minutes.

Free for stores under 5,000 banner views per month. No code, no theme edits.