c15t
/
C15T Logo
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
C15T Logo
HomeFrontendIntegrationsSelf HostChangelog
xbskydiscordgithub1.4k
c15t
/
C15T Logo
Frameworks
Welcome to c15t Docs
Introduction to Consent Management (c15t)
AI Tools Integrations
OSS
Contributing to c15t.com
License
Building Privacy Tools in the Open
Legal
Cookie Policy
Privacy Policy
home-2Docs
chevron-rightIntegrations
chevron-rightX-pixel

X Pixel (Twitter Pixel)

Track conversions and build audiences for advertising campaigns on X (formerly Twitter).

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. By default, c15t loads this script based on marketing consent.

Implementation

import { configureConsentManager } from 'c15t';
import { xPixel } from '@c15t/scripts/x-pixel';

configureConsentManager({
  // ... 
  scripts: [
    xPixel({
      id: '123456789012345',
    }),
  ],
});

xPixelEvent

You can use the xPixelEvent function to track events. This is a wrapper around the twq function that the X Pixel script uses.

import { xPixelEvent } from '@c15t/scripts/x-pixel';

xPixelEvent('tw-xxxx-xxxx', { value: 10.00, currency: 'USD' });

Types

XPixelOptions

Property
Types

Script

Property
Types

XPixelEvent

Property
Types

XPixelContent

Property
Types
C15T Logo
Leverage native React components for seamless integration and high performance in a robust Consent Management solution that empowers your development team while prioritizing privacy and compliance.
Product
  • Documentation
  • Components
Company
  • GitHub
  • Contact
Legal
  • Privacy Policy
  • Cookie Policy
c15t