Skip to main content
Squarespace → X AdsIntegration guide

Connecting Squarespace Commerce to X Ads

Squarespace prioritises design simplicity over extensibility, so what you can instrument is bounded by what the platform chooses to expose. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Squarespace order before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Squarespace sales to X Ads: confirmation page pixel plus server event

Load the X pixel through header code injection, store twclid first-party on arrival, and fire purchase on the confirmation page with the order ID as conversion ID. Have that page send order ID and twclid to your server, then send the X Conversions API event on the order webhook with hashed email and the same ID.

Squarespace does not leave much room for the X pixel: you can load it site-wide with header code injection, and the order confirmation page accepts injected code with order variables, but the checkout itself is out of reach. Fire the purchase event on the confirmation page with the order ID as the conversion ID, and read twclid from the landing URL on arrival and store it in first-party storage, so it is still available at purchase.

Because much X traffic arrives in the in-app browser, the visitor who clicked may finish the purchase later in another browser, where neither the pixel cookie nor your stored twclid exists. A server event covers part of that gap: have the confirmation page send the order ID and twclid to your server, and send the conversion to the X Conversions API when the Squarespace order webhook arrives, with hashed email and the same order ID so X deduplicates against the pixel. Check whether your Squarespace plan includes the webhooks and API access this needs.

X volumes are usually small for Squarespace stores, so verify on a real order that X shows one conversion, not two, and compare X-reported purchases against Squarespace orders with an X source for a closed week.

Squarespace → X Ads · what breaks

Why this join usually fails — Squarespace → X Ads

  1. 01

    The twclid click identifier never reaches Squarespace

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  2. 02

    Platform limits mistaken for implementation failures

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  3. 03

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Squarespace → X Ads · the fix

What working looks like — Squarespace → X Ads

  • The twclid click identifier on every order

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

    Squarespace Commerce's own records are the reference, not either dashboard.

Squarespace → X Ads · architecture

How Squarespace and X Ads actually connect

  1. 1

    Squarespace Commerce holds the truth

    Squarespace holds the order cleanly. The constraint is access — code injection is limited and checkout customisation more so, which caps what a browser-side approach can achieve.

  2. 2

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, captured at the visit and carried into the Squarespace order.

  4. 4

    The event source decides reliability

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  5. 5

    Deduplication at the destination

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Squarespace → X Ads · normal or broken

Working vs. broken, side by side — Squarespace → X Ads

Normal, not a fault

  • The twclid click identifier present on the order

    Visible on the record itself in Squarespace Commerce, not merely captured somewhere on the site.

  • Sent from the Squarespace order webhook

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

    X Ads's count and Squarespace Commerce's records agree within a few percent over a closed window.

Actually broken

  • The twclid click identifier missing on most records

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  • Sent from the browser

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  • Counted twice, or not at all

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

    The dashboard shows a number and no one has compared it to Squarespace Commerce.

Squarespace → X Ads · diagnose

Diagnostic order — Squarespace → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Test what actually reaches the order record

    One real purchase tells you more than the documentation about what this platform preserves.

  4. 04

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Squarespace → X Ads · prove

How it gets proven — Squarespace → X Ads

Against Squarespace Commerce's own records, not against either platform's dashboard.

Source of truth

Squarespace's order records for the same window.

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • A test purchase with the identifier confirmed retrievable from the Squarespace order.

Squarespace → X Ads · free audit

What we check in the free audit

  • Count orders carrying the twclid click identifier
  • Follow one real conversion end to end
  • Test what actually reaches the order record
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Squarespace's order records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Squarespace → X Ads · when not to buy

When you don't need this — Squarespace → X Ads

  • If X Ads already reports conversions that reconcile against Squarespace Commerce's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • For a small Squarespace store, the native integrations plus honest reporting may be the right answer — the platform's ceiling is real.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Squarespace → X Ads · what we deliver

What gets built — Squarespace → X Ads

  • Identifier capture into Squarespace

    Capture the identifier and pass it through the supported order form fields or the commerce API, verifying on a real order which values persist.

  • Event source: the Squarespace order webhook

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  • Dispatch to X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • Reversals where they exist

    Refunds are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against Squarespace's order records for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Squarespace → X Ads questions, answered

Add the base code through site-wide header code injection and the purchase event on the order confirmation page, using the order ID as the conversion ID.

Free · 30 min

Get Squarespace and X Ads joined properly

Free30 minutesNo obligation