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 IDRequired

Found in X Ads Manager > Tools > Events Manager.

X Ads Account IDOptional

Found in the top-right account dropdown of your X Ads dashboard.

Conversions API (CAPI) Bearer TokenOptional

Generated in your X Developer Portal / Ads API access. Needed for direct server-to-server sending.

Step-by-step setup

  1. In X Ads Manager, open Tools > Events Manager and copy your Pixel ID.
  2. For server-side purchases, copy your Ads Account ID and generate a CAPI bearer token in the X Developer Portal.
  3. In TrakIt, open Integrations > X Ads, enter the values and save.
  4. 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.