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.

Visit website

Consent Categories

Marketing

Also Known As

X Ads pixelTwitter Ads pixelX advertising consentX custom audiencesformerly Twitter ads

Industries

Computers Electronics and TechnologyTelecommunications

Tracked Domains (3)

t.coMarketing
static.ads-twitter.comMarketing
analytics.twitter.comMarketing

Frequently Asked Questions

Does X Ads require consent?

Yes. X Ads sets the muc third-party cookie (up to 2 years), builds custom retargeting audiences, and shares conversion data with X's advertising platform. GDPR requires explicit marketing consent before the pixel loads or any tracking events fire.

What does X Ads track on a website?

X Ads fires base page view events on every load, records discrete conversions (purchases, signups, downloads), builds website custom audiences from visitor segments, and supports hashed email matching for deterministic attribution to X user accounts.

How does ConsentStack manage X Ads?

ConsentStack classifies X Ads as a marketing vendor and blocks the Universal Website Tag until marketing consent is confirmed. For IAB TCF deployments, ConsentStack passes consent signals for X (Vendor ID 21) before allowing the pixel to activate.

Related Vendors

Google Ads
Google Ads
Google Ads is Google's advertising platform for search, display, and remarketing campaigns. Conversion tracking scripts fire on advertiser landing pages to measure actions taken after ad clicks. The remarketing tag builds audience lists for retargeting users across Google's ad network.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
LinkedIn Ads
LinkedIn Ads
LinkedIn Ads is LinkedIn's advertising platform for B2B marketing and professional audience targeting. Conversion tracking scripts and pixels fire on advertiser websites to measure sign-ups, downloads, and purchases driven by LinkedIn ad campaigns. Sets cookies for audience matching, retargeting list building, and cross-device attribution reporting.

Manage consent for X Ads

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