Skip to content
Menu
Skip to Content
CookieROAS

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.

The Connections page with the ad platforms

Fill in the details

In the Conversions API (pilot) card, fill in:

FieldWhere to find it
X event idX Events Manager: your purchase event's id, such as tw-abc12-def34.
API keyX Developer Console › your Ads API app › Keys and tokens: API key (consumer key).
API key secretShown with the API key.
Access tokenKeys and tokens › Access token, for an account with Ad Manager access to the ad account.
Access token secretShown with the access token.

Click Connect X. CookieROAS checks the details with X before they are saved. Tokens and keys are stored encrypted.

The Conversions API (pilot) card with the fields filled in (TikTok)

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.

All settings, Other platforms, with a switch per platform

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.

A platform at Sending, with the counts under Delivery (TikTok)

If it doesn't work

Read more