X (Twitter) Pixel
Send page views, purchases and leads from your WooCommerce store to X (Twitter) through Cloudflare Zaraz.
X (Twitter) Pixel PRO
Section titled “X (Twitter) Pixel ”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.
What You Need
Section titled “What You Need”- 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.
- Go to WP Zbridge > Zaraz Recipes in your WordPress admin.
- Enter your X Pixel ID and the event IDs you want under X (Twitter) Pixel.
- Click Sync to Zaraz, or download the container and import it in Cloudflare.
Events Tracked Automatically
Section titled “Events Tracked Automatically”| Customer Action | X event | Details sent |
|---|---|---|
| Browsing any page | Page view | |
| Completing a purchase | Your Purchase event | Order value |
| Submitting a form | Your 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
twclidclick ID for a month, so purchases can be matched to ad clicks. - Your pages don’t load X’s own pixel script.