X (Twitter) conversion tracking for performance campaigns
Generate X Pixel setup and conversion event code for website conversions, app installs, and lead generation campaigns.
- ✓X Pixel base tag via GTM
- ✓Purchase and Lead conversion event code
- ✓Audience pixel for retargeting setup
No developer needed · Works with X Ads campaigns · Free to start
Why X conversion tracking is often misconfigured
Pixel fires on wrong events
Many X Pixel setups only fire on page load. Without event-level tracking (Purchase, Lead), X's algorithm can't optimize for actual conversions.
Attribution window mismatch
X's default attribution is 1-day view, 7-day click. Most setups don't account for this, leading to over-reported or under-reported conversions.
No deduplication
Without order_id-based deduplication, the same conversion can be counted multiple times if users visit the confirmation page more than once.
What Sytrics generates for X (Twitter)
X Pixel base tag
Complete Custom HTML tag for GTM with your Pixel ID — fires on all pages to build retargeting audiences.
Purchase conversion code
tw-purchase event code with value, currency, order_id, and email for conversion matching.
Lead conversion code
Event code for form submissions, sign-ups, and contact events — with proper event naming.
Validation guide
Step-by-step guide to verify in X Pixel Helper Chrome extension before going live.
From URL to live X tracking in 5 steps
Enter your site URL in Sytrics
Go to sytrics.io, paste your website URL, and select your business sector.
Select X (Twitter) as platform
Choose X from the platform list. Sytrics generates the base Pixel tag and conversion event code.
Copy the base Pixel tag
Copy the GTM Custom HTML tag with the X Pixel base code. Set the trigger to All Pages.
Get your Pixel ID from X Ads
In X Ads Manager → Tools → Conversion Tracking → Pixels — copy your Pixel ID and replace the placeholder in the code.
Verify with X Pixel Helper
Install the X Pixel Helper Chrome extension and trigger a conversion on your site to confirm the pixel fires correctly.
X (Twitter) events Sytrics supports
PurchaseBOFUCompleteRegistrationBOFUViewContentTOFUPageViewTOFUFrequently asked questions
Where do I find my X Pixel ID?
In X Ads Manager → Tools → Conversion Tracking → Pixels. Your Pixel ID is shown in the pixel list — it's an alphanumeric string. Replace YOUR_PIXEL_ID in the Sytrics-generated code with this value.
What's the difference between X Pixel event ID and Pixel ID?
The Pixel ID is your base tracker that identifies your ad account — it goes in the twq('init') call and fires on all pages. The Event ID is specific to each conversion type (e.g., purchase, lead). It appears in the tw-PIXEL_ID-EVENT_ID format in conversion event calls.
Does X have a server-side API?
Yes, X (Twitter) has a Conversions API that allows server-side event matching, similar to Meta CAPI. It helps recover conversions blocked by browser restrictions. A dedicated Sytrics guide for X CAPI is coming soon.
How do I verify my X Pixel is working?
Install the X Pixel Helper Chrome extension from the Chrome Web Store. Navigate to your site and trigger the events you've set up. The extension will show which pixels fired and flag any issues with the event data.
Related guides
Generate your X Pixel tracking code in 3 minutes
- ✓ No developer needed
- ✓ Base tag + conversion events
- ✓ Free plan — no credit card