Before you start
X’s Conversion API takes website events only. DATALYR doesn’t import X spend or ad stats.
Connect X
1
Open the form
Open Sources. Select Connect on the X Ads row.
2
Paste the credentials
Fill Pixel ID and Conversion API access token.
3
Save
Select Connect. The X events step opens.
Add your X events
1
Copy an Event ID
Select Open X Events Manager. Copy the event’s ID.
2
Paste it
Paste the ID into the matching row. Leave a row blank to skip it.
3
Save
Select Save. DATALYR creates one rule per trigger, such as each Stripe payment event under Purchase Tracker.
Renewals are never created here. To build a rule by hand, pick X as target platform in Conversions. Paste the ID into X Event ID.
Tag your ads
X adds its click ID,twclid, to every website click. Keep it on the landing URL through every redirect.
- Open Track. Create a link.
- Under paste into your ads, find X Ads. Select copy parameters.
- In X Ads Manager, paste them into the ad’s Add URL tracking.
Reference
Events
The X Event ID decides what X counts. The type only picks the value rules below.
Matching fields in identifiers
X needs
twclid, hashed_email, or hashed_phone_number. twpid, IP, and user agent only add to one of them.
Deduplication
The pixel copy and the server copy carry the same Event ID andconversion_id: a purchase’s order ID, else the DATALYR event ID. X keeps one when both arrive within 48 hours. Retries reuse the conversion_id.
If your own code fires X events, remove those calls. They carry other IDs, so X counts them again.
The X Pixel
DATALYR loads X’s pixel through your tracking script as soon as X is connected. It sends no email or phone.Consent and age
Why X shows different numbers
DATALYR credits clicks. X also settles its reports 24–48 hours after the impression, so recent days move.
Verify
- Open Conversions. Select manage rules. Open an X rule.
- Select send test event. X has no test mode, so DATALYR checks the event and sends nothing.
- Trigger one real event.
- Confirm the rule’s
sentcount went up by 1. - In X Ads Manager, open Tools → Events Manager.
- Open the event. Confirm X recorded your conversion.
When it does not work
Next
- Conversion delivery: retry, dedup, and status rules for every platform.
- Health: read the delivery and match-quality tabs.
- Tracking links: build the link your ads point to.