X Ads conversion tracking: setting up the X Pixel and events
Without conversion tracking, X Ads can only optimise for clicks. Set up the pixel base code, event code or the Conversion API, then verify.
Without conversion tracking, ads on X (formerly Twitter) can only optimise for clicks and engagement, and you cannot see how many purchases or sign-ups the spend produced. X Ad Acc (xadacc.top) explains the setup.
Decide which conversions you want to count before installing anything.
The X Pixel has two parts
The base code goes on every page and records visits. Event code goes where key actions happen, such as the order confirmation or sign-up complete page, and records the conversion.
Create events in Events Manager

In Events Manager, create a website tag, then add an event for each conversion, choose its type (purchase, sign-up, add to cart and so on) and set the attribution window. Each event gives you its code.
Installing
Paste the code into your site template or deploy it with a tag manager such as Google Tag Manager. E-commerce platforms often have ready-made plugins.
Conversion API
When browsers block scripts, the pixel can miss conversions. X's Conversion API sends conversions from your server; used together with the pixel it fills gaps. It needs development work and suits higher-volume sites.
Verifying

Check each event's status and last activity in Events Manager, run a test conversion yourself and confirm it shows up within minutes to hours. Campaigns must use the event as their optimisation goal for it to matter.
Checklist
- Define the conversions
- Base code on every page
- Event code on key pages
- Conversion API for higher volume
- Test and verify
FAQ
Can one page fire several events?
Yes, but do not count the same conversion twice.
How long should the attribution window be?
Match the buying cycle: shorter for impulse buys, longer for expensive items.
Do I need to tell users?
Yes. Mention ad tracking in your privacy policy and handle consent as local law requires.
Need live stock confirmation?
Send use-case + QA points — we match shelf before lock.


