Skip to content

X (Twitter) Pixel

Send page views, purchases and leads from your WooCommerce store to X (Twitter) through Cloudflare Zaraz.

The X Recipe sets up Cloudflare Zaraz’s X (Twitter) Pixel tool for you. It reports page views, and purchases and leads for the X events you create.


  • X Pixel ID (Required): In X Ads Manager, open Tools > Events Manager. It’s the ID in your base pixel code, twq('config','o1abc').
  • Purchase event ID (Optional): Create a Purchase event in Events Manager and copy its event ID, which looks like tw-o1abc-o1abd.
  • Lead event ID (Optional): The same for a Lead event.

Purchases and leads are only sent for the event IDs you enter.


  1. Go to WP Zbridge > Zaraz Recipes in your WordPress admin.
  2. Enter your X Pixel ID and the event IDs you want under X (Twitter) Pixel.
  3. Click Sync to Zaraz, or download the container and import it in Cloudflare.

Customer ActionX eventDetails sent
Browsing any pagePage view
Completing a purchaseYour Purchase eventOrder value
Submitting a formYour Lead event

  • Zaraz’s X component sends its requests from the visitor’s browser, so ad blockers can still block them, and purchases sent by the server fallback don’t reach X.
  • The component keeps the twclid click ID for a month, so purchases can be matched to ad clicks.
  • Your pages don’t load X’s own pixel script.