DATALYR

Shopify to X Conversion API.

Send every Shopify order to X so campaigns optimize on real sales. Each paid order reaches your X pixel with the ad click attached.

What gets sent.

What DATALYR sends from Shopify to X Conversion API
DATALYR eventWhen it firesSent to X asWhat it carries
purchaseShopify marks an order paidPURCHASEThe order value, in the order's currency, the order ID as conversion_id, the twclid click ID, and hashed email and phone
add_to_cartA shopper adds a product to the cart. Optional rowADD_TO_CARTThe twclid click ID from the visit

How it's matched.

DATALYR checks these in order and stops at the first one that finds the ad click.

  1. The visitor ID the App Embed writes onto the order as a cart attribute
  2. The order email, when the cart attribute found no ad click
  3. Click IDs and UTM parameters read from the order's landing page URL

X gets the twclid click ID and the _twpid cookie, plus email and phone hashed with SHA-256. X needs twclid, a hashed email or a hashed phone to match.

How it works.

  1. 01

    Connect Shopify.

    Open Sources, select connect on Shopify, enter your myshopify.com domain and approve the five permissions. Then turn on the App Embed in your theme editor and save, so each order carries the visit that drove it.

  2. 02

    Connect X.

    In X Ads Manager, open Tools, Events Manager. Copy your Pixel ID and generate a Conversion API access token. In Sources, connect X Ads with both. In the X events step, paste the X Event ID into the Purchase Tracker row and Save. DATALYR creates one rule per trigger. A $0 purchase is not sent.

  3. 03

    Check one conversion.

    Place one order from an X ad click. Find purchase in Events, then open the newest row in Conversions and read the reply from X.

Check it worked.

  • X adds twclid to every website click. Keep it on the landing URL through every redirect, and look for it on the order's purchase in Events.
  • X has no test mode. Select send test event and DATALYR checks the event without sending it.
  • Trigger one real conversion and confirm the rule's sent count went up by 1. In X Ads Manager, open Tools, Events Manager, open the event and confirm X recorded it.

View docsInstall on ShopifyShopify revenueX AdsConversion delivery

Questions, answered.

Contact us
  • No. DATALYR loads X's pixel through the App Embed as soon as X is connected, unless another X Pixel is already on the page from your theme, a tag manager or a Shopify app. It loads only for visitors who gave marketing consent.

  • No. With Shopify connected, purchases go from the server only, with the order ID as conversion_id, and a retry reuses it. If your own code also fires X purchase events, remove those calls. They carry other IDs, so X counts them again.

  • Orders older than 30 days, orders worth $0, and orders from shoppers who denied marketing consent or whose browser sends Do Not Track or Global Privacy Control.

See what really drives revenue.

Real-time attribution, analytics and conversions for every channel, campaign and ad, ready for your team and your agents.

Get started