Twitter/X

This work is licensed under CC BY-SA 4.0

Configuration Guide

X (formerly Twitter) is a US-based microblogging and social networking platform owned and operated by X Corp., a company headquartered in Bastrop, Texas, United States, and a subsidiary of xAI. Website operators may embed public X posts using X's official oEmbed mechanism, which delivers a <blockquote> placeholder alongside a JavaScript tag loading widgets.js from platform.twitter.com. This script transforms the blockquote into a fully rendered, interactive post embed. Unlike purely content-delivery embeds, the X widget script actively sets persistent third-party tracking cookies in the visitor's browser and collects behavioural data used to build advertising profiles β€” regardless of whether the visitor has an X account or interacts with the embedded post. For EU/EEA users, the data controller is Twitter International Unlimited Company (Dublin, Ireland); however, data is processed in the US and other countries, and X Corp. as a US enterprise is subject to the CLOUD Act, which enables potential access by US government authorities to data held by US-based companies regardless of where that data is processed.


Step 1 β€” X Embed Configuration

#Configuration AreaWhere in X / Website CodeConfiguration A β€” Standard Embed
1Embed methodX post β†’ share icon β†’ Embed Post; or use https://publish.x.com/oembed?url=; paste resulting HTML into websiteStandard oEmbed: <blockquote class="twitter-tweet"> with post text plus <script async src="https://platform.twitter.com/widgets.js"> which renders the blockquote into a fully interactive post embed
2Tracking cookies set on page loadNo configuration option for the embedding website operator; set automatically by widgets.js on page render, prior to any visitor interactionmuc (third-party, up to 2 years) and personalization_id (third-party, up to 2 years) are set in the visitor's browser to identify the browser cross-site and match visitors to X user profiles for advertising purposes
3Authenticated user identificationNo configuration option for the embedding website operator; handled automatically by widgets.jsIf the visitor is logged in to X, the widget script links their authenticated X identity to the website visit, enriching X's user profile with off-platform browsing behaviour
4Advertising and behavioural profilingNo configuration option for the embedding website operatorX uses data collected via embedded widgets to build behavioural advertising profiles, select personalised advertisements, and enable cross-site retargeting; X is registered as IAB TCF Vendor ID 21
5Data retentionDetermined by X Corp.; no configuration option for the embedding website operatormuc and personalization_id cookies: up to 2 years; cookie-based data: up to 13 months per X's cookie policy; other log data: up to 18 months per X's privacy policy
6Processing locationFixed; determined by X Corp. and Twitter International Unlimited Company infrastructurePrimary processing in the US (X Corp.); EU/EEA data controller: Twitter International Unlimited Company (Dublin, Ireland); data transferred to the US and other countries; US government access via CLOUD Act applies regardless of storage location

Configuration A β€” Standard Embed

Use this configuration whenever a public X post is embedded on a website using X's official oEmbed method.

The embed is implemented by copying the HTML snippet generated via the X web interface (Post β†’ share icon β†’ Embed Post) or by using the oEmbed API endpoint at https://publish.x.com/oembed. The resulting snippet consists of a <blockquote> element containing a plain-text version of the post and a <script> tag loading widgets.js from platform.twitter.com. When the script executes in the visitor's browser, it renders the full post including media, interactive engagement buttons (like, repost, reply), and live engagement counts.

Critically, widgets.js performs active tracking beyond mere content rendering. It sets two persistent third-party cookies β€” muc and personalization_id β€” with a lifetime of up to 2 years, in the visitor's browser as a side effect of loading on page render, prior to any visitor interaction with the embed. These cookies identify the visitor's browser cross-site and are used by X to match website visitors to X user profiles and to build behavioural advertising profiles for cross-site retargeting. This tracking occurs regardless of whether the visitor has an X account.

If the visitor is logged in to X, the widget script additionally associates their authenticated X identity with the website visit, linking their off-platform browsing behaviour to their known X user profile.

X operates a large-scale advertising platform and explicitly uses data collected via embedded widgets for personalised advertising, real-time bidding, and cross-device tracking. X is a registered vendor under the IAB Transparency and Consent Framework (TCF Vendor ID 21), and the processing carried out via embedded widgets falls under TCF Purposes 1, 3, 4, and 7.

For EU/EEA visitors, the data controller is Twitter International Unlimited Company (Dublin, Ireland), which is supervised by the Irish Data Protection Commission as lead supervisory authority. Despite the EU-based data controller, data is processed in the US and other countries. X Corp., as a US enterprise, is subject to the CLOUD Act, meaning US government authorities may compel access to data held by X regardless of where that data is stored. This US government access risk applies in addition to and independently of any other transfer safeguard.

Because widgets.js sets tracking cookies and transmits data to X's servers on page render β€” before any visitor interaction β€” the embed code must be blocked by the consent management solution until the visitor has given consent. A consent-based lazy-loading or click-to-activate wrapper should be used to ensure the script does not fire prior to consent.

X Corp. and Twitter International Unlimited Company act as Independent Controllers under their own privacy policy for all data collected via the embed.


Step 2 β€” Mapping in the Consenter Manager

Using the X embed configuration defined in Step 1, apply the following mapping in the Consenter Manager to ensure the consent banner correctly reflects the data processing activity.

2.1 Configuration A β€” Standard Embed

Consenter Manager SettingValue to Select
Tracking methodThird party tracking (cross-session, cross-website)
IdentifierDevice identifiers, Probabilistic identifiers, Authentication-derived identifiers
Data categoriesBrowsing and interaction data, Device characteristics, Device identifiers, IP address, Non-precise location data, Probabilistic identifiers, Users' profiles
Legal role of data recipientIndividual Controller
Personalisation modelProfile based
Maximum storage duration24 months (muc and personalization_id cookies)
Processing locationEU/Ireland (Twitter International Unlimited Company, lead supervisory authority: Irish DPC) / US (X Corp.); US government access via CLOUD Act applies in all cases

Note on tracking method: Unlike single-session embeds that only transmit data during the current page visit, X's widgets.js sets persistent cross-session cookies (muc, personalization_id) that enable X to track the visitor across multiple sessions and across all websites that embed X widgets. This constitutes cross-session, cross-website tracking and must be mapped accordingly.

Note on authenticated users: Where a visitor is logged in to X, their browsing activity on the embedding website is linked to their authenticated X account. This results in authentication-derived identifier processing and should be reflected in the identifier selection above.

Shape Consenter Together

Consenter is built on an open and participatory process that grows through community collaboration. Whether you share feedback, improve the documentation, or contribute to the Risk Configuration Guides or Technical Integration Guides, your expertise helps make Consenter more privacy-friendly, interoperable, and useful for everyoneβ€”including your own users and services: Get finally your benefits and control the risks when sharing personal data.

Last updated on

On this page