Chord CDP
...
CDP Destination Catalog
Twitter Ads
10 min
introduction the twitter ads pixel (also called the x pixel) is a small piece of javascript code that you embed on your website to help measure, optimize, and target your advertising on the twitter (x) platform getting started this is a device mode destination you will need the twitter ads pixel id to connect this destination you can locate the twitter ads pixel id from the snippet created on the https //business x com/en/help/campaign measurement and analytics/conversion tracking for websites connecting to the twitter ads cdp destination before connecting destinations in the chord cdp, please verify with all destination owners that all non chord cdp configured destinations are disabled running external destinations alongside configured chord cdp destinations can result in duplicate events downstream log into the chord data platform navigate to the cdp click the "add" button next to destinations select twitter ads from the destination catalog enter in the destination name and the pixel id click "create" to connect events page page events are not forwarded to twitter ads track only track events with an explicit entry in eventmapping are forwarded all unmapped events are silently skipped this gives full control over which chord events fire which twitter conversion events twitter sdk call twq("event", twittereventid, eventpayload) every mapped track event sends the same payload structure, built from user data, order data, and product contents user parameters twitter attribute chord source (in priority order) notes email address properties email / properties emailaddress > context traits email > traits email automatically hashed by twitter sdk phone number properties phone / properties phonenumber > context traits phone > traits phone automatically hashed by twitter sdk order parameters twitter attribute chord source (in priority order) notes value properties revenue > properties total > properties value currency properties currency > properties meta i18n currency > "usd" (default) iso 4217 code conversion id properties cart id / properties cartid / properties order id / properties orderid / properties id for deduplication product contents each product in properties products is mapped to a twitter content item twitter attribute chord source (in priority order) notes content id configured identifier field from properties products\[] > properties products\[] product id > properties products\[] id > properties products\[] sku content name properties products\[] name content price properties products\[] price num items properties products\[] quantity content type properties products\[] category content group id properties products\[] variant id all undefined values are filtered out before sending identify events are not forwarded to twitter ads initialization the plugin sets up the twq function queue, then loads https //static ads twitter com/uwt js after the script loads, it calls twq("config", pixelid) to initialize the pixel the plugin manages sdk loading state ( fresh → loading → loaded / failed ) to prevent duplicate script loads if the script fails to load, subsequent events are silently dropped csp requirements if your site uses a content security policy, allow the following domains directive domain script src https //static ads twitter com connect src https //static ads twitter com