Advertising
X (Twitter) Ads Setup
Track Shopify conversions from your X (Twitter) campaigns with the X Pixel, and send purchases and refunds server-side through the X Conversions API.
What you'll need
X Pixel ID / Website Tag IDRequiredFound in X Ads Manager > Tools > Events Manager.
X Ads Account IDOptionalFound in the top-right account dropdown of your X Ads dashboard.
Conversions API (CAPI) Bearer TokenOptionalGenerated in your X Developer Portal / Ads API access. Needed for direct server-to-server sending.
Step-by-step setup
- In X Ads Manager, open Tools > Events Manager and copy your Pixel ID.
- For server-side purchases, copy your Ads Account ID and generate a CAPI bearer token in the X Developer Portal.
- In TrakIt, open Integrations > X Ads, enter the values and save.
- Choose your events and save.
Events sent by default
These are pre-selected when you connect X (Twitter) Ads. You can change them on the platform's page in TrakIt.
From TrakIt's server
PurchaseRefund
Unaffected by ad blockers and browser limits.
From the browser tag
Page viewProduct viewAdd to cartCheckout startedPurchase
Sent with the visitor's consent when Respect User Consent is on.
Without the optional CAPI token, X receives events from the browser tag only.