X Ads

X Ads

X Ads (formerly Twitter Ads) pixel records conversions and builds audiences for advertising campaigns on X. Scripts deploy on advertiser sites to track user actions attributed to X ad clicks or views. Collected events support campaign measurement, bid optimization, and website custom audience creation.

Overview

X Ads (formerly Twitter Ads) is the advertising conversion tracking and audience building pixel for ad campaigns running on the X platform (formerly Twitter). Advertisers embed the pixel to measure the effectiveness of X ad campaigns by attributing website actions — purchases, signups, page views — back to ad clicks or impressions. The pixel also enables the construction of custom retargeting audiences and lookalike audiences from site visitors.

What This Script Does

The X Ads pixel loads the Universal Website Tag (UWT) from static.ads-twitter.com or analytics.twitter.com. It executes the following tracking operations:

Conversion tracking

  • Fires a base pixel event on every page load, logging a page view attributed to X ad traffic where applicable
  • Fires discrete conversion events when users complete defined actions: purchases, account registrations, newsletter signups, content downloads, app installs, or custom events defined by the advertiser
  • Attributes conversions to X ad clicks (click-through) or ad impressions (view-through) within configurable attribution windows (typically 1-day view, 7-day click)

Audience building

  • Sets the muc third-party cookie (cross-site, persistent, up to 2 years) to identify browsers across sites within the X advertising network
  • Sets first-party cookies on the advertiser's domain for attribution and deduplication
  • Builds website custom audiences: lists of users who have visited specific pages, completed specific events, or taken no action (for exclusion audiences)
  • Shares hashed user data (hashed email addresses) with X for deterministic audience matching when the advertiser implements the Advanced Matching feature

Lookalike and behavioral targeting

  • Audience data is used to create lookalike audiences on X modeled on converter or visitor characteristics
  • Data feeds into X's ad targeting system for interest and behavioral targeting of X users

Consent & Compliance

  • Category: Marketing
  • GDPR: Requires consent under GDPR Article 6. The pixel sets persistent cross-site tracking cookies and builds behavioral profiles for advertising purposes, which are not covered by legitimate interests. IAB TCF purposes involved: Purpose 1 (Store/access information), Purpose 3 (Create personalised ads profile), Purpose 4 (Select personalised ads), Purpose 7 (Measure ad performance).
  • IAB TCF: X (Twitter) is a registered IAB TCF vendor (Vendor ID 21). Consent for X Ads should be captured via an IAB TCF-compliant CMP.
  • Data transfers: X Corp is a US company. Data is processed in the US. X participates in the EU-US Data Privacy Framework for EU-to-US data transfers.
  • DPA enforcement: X (Twitter) has faced regulatory scrutiny in Europe over data practices. The Irish Data Protection Commission has investigated Twitter/X under GDPR, resulting in fines related to data breach notification and transparency obligations.
  • Cookies set: muc (3rd party, up to 2 years), personalization_id (3rd party, 2 years), advertiser-domain first-party cookies for attribution

Should You Block This Without Consent?

Yes — with marketing consent only. The X Ads pixel requires explicit marketing consent before loading. It must not fire for visitors who have declined advertising cookies. Block the pixel entirely until marketing consent is granted. For IAB TCF deployments, X (Twitter) Vendor ID 21 must have valid consent signals before the pixel activates.

Is X Ads GDPR compliant?

X Ads typically loads marketing trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So X Ads can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads X Ads, not on X Ads itself.

Visit website

Consent Categories

Also Known As

X Ads pixelTwitter Ads pixelX advertising consentX custom audiencesformerly Twitter ads

Industries

Computers Electronics and TechnologyTelecommunications

Tracked Domains (3)

X Ads's trackers are occasionally seen, seen on about 3% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.

t.coMarketing

t.co is a marketing domain operated by X Ads, used to serve ads, build audiences, and measure ad conversions. Seen on about 3% of scanned sites.

static.ads-twitter.comMarketing

static.ads-twitter.com is a marketing domain operated by X Ads, used to serve ads, build audiences, and measure ad conversions.

analytics.twitter.comMarketing

analytics.twitter.com is a marketing domain operated by X Ads, used to serve ads, build audiences, and measure ad conversions.

Cookies X Ads Sets (1)

muc_ads

X Ads (formerly Twitter) browser identifier set on the customer apex for ad-click attribution and event deduplication.

Frequently Asked Questions

Other Twitter Products

Related Vendors

So-net Media Networks
So-net Media Networks
Programmatic advertising data platform for Japanese and Asian markets. So-net Media Networks scripts collect behavioral data on publisher sites and participate in programmatic auctions for display and video advertising.
Twitter
Twitter
Twitter's (X's) advertising pixel tracks site visitor behavior and fires conversion events for campaigns running on the platform. The Universal Website Tag logs page views, custom events (purchases, signups), and audience membership. The embedded Tweet button also loads tracking scripts even when not clicked.
Adyoulike
Adyoulike
Adyoulike is a native advertising SSP that connects publishers with programmatic demand for in-feed and in-article native ad placements. Scripts participate in header bidding auctions and deliver contextually relevant sponsored content.
Throtle
Throtle
Throtle is an identity resolution platform for digital marketers. Scripts match online behavioral signals to offline consumer records using email-based identity resolution, enabling personalized advertising across channels.
Mediaocean
Mediaocean
Mediaocean is an advertising workflow and omnichannel campaign management platform for enterprise media operations. Scripts may appear as part of media planning, buying, and verification infrastructure, tracking ad delivery and campaign performance across digital advertising channels.
Merkle
Merkle
Global performance marketing company. Merkle (now Dentsu) scripts may appear as part of tag management or pixel management deployments for enterprise marketers, firing attribution and behavioral tracking tags across advertiser sites.

Manage consent for X Ads

ConsentStack automatically detects and manages X Ads trackers so your site stays compliant with global privacy regulations.