Connecting X
Send purchases from your Shopify store to a purchase event in X Ads.
CookieROAS sends every purchase to one purchase event in X (a Single Event Tag). It includes the X click id (twclid) if there was one, the hashed email address or phone number, the visitor's IP address and browser, the value and the currency. Purchases older than 7 days are not sent. A purchase with a refusal never goes to X. Purchases with unknown consent or Global Privacy Control only go along if you allow that at Consent delivery in All settings.
Only orders from the Shopify app
X is still a pilot. CookieROAS only sends purchases that the CookieROAS Shopify app reports. Orders from other store systems don't go to X (yet).
What you need
- An X Ads account with a purchase event in Events Manager
- An app in the X Developer Console with access to the Ads API
- The CookieROAS Shopify app on your store
Steps
Open the X page
Open your site in the dashboard. In the left menu, under Connections, click Add channel (or All connections) and choose X.

Fill in the details
In the Conversions API (pilot) card, fill in:
| Field | Where to find it |
|---|---|
| X event id | X Events Manager: your purchase event's id, such as tw-abc12-def34. |
| API key | X Developer Console › your Ads API app › Keys and tokens: API key (consumer key). |
| API key secret | Shown with the API key. |
| Access token | Keys and tokens › Access token, for an account with Ad Manager access to the ad account. |
| Access token secret | Shown with the access token. |
Click Connect X. CookieROAS checks the details with X before they are saved. Tokens and keys are stored encrypted.

Switch on sending
After connecting, sending is still paused. Click Switch on in All settings. You then land in Tracking › Setup › All settings, at Other platforms. Switch on X there.
From that moment, only new purchases go to X. Earlier orders are never sent afterwards.

Check the event in X Events Manager before you switch on sending.
Check that it works
- The X page says Sending, with the time at Sending since.
- After the first new purchase, Purchases sent goes up and Last validation shows a time.
- Rejected by X stays at 0.
