Integrations
X Pixel (Twitter Pixel)
Last updated September 24, 2025
X Pixel (formerly Twitter Pixel) is X's conversion tracking and audience building tool. It helps you measure ad performance, retarget website visitors, and optimize campaigns on the X platform.
Official X documentation
Integrate with c15t
How c15t loads it
- Category:
marketing(Ads & Pixels) - Loads when: marketing consent is granted
- On revocation: unloaded — c15t removes the script element from the DOM
Configure the integration
You can use the xPixelEvent function to track events. This is a wrapper around the twq function that the X Pixel script uses.
Tracking events in your app
c15t gates the X Pixel script from loading until marketing consent is granted. Your application code that calls twq or the xPixelEvent helper is not automatically gated — window.twq does not exist before consent is granted, and is removed again if consent is revoked. Unguarded calls throw.
Guard event calls by checking consent state:
Types
XPixelOptions
Loading…
Script
Loading…
XPixelEvent
Loading…
XPixelContent
Loading…