TRACKING SPECIALIST — BARIS ASA · LONDON
Synctag
Start the check → TRACKING SPECIALIST — BARIS ASA · LONDON

READING ROOM › FIELD NOTE › NOTE-068

NOTE-068 · FIELD NOTE FILED 25 NOV 2026 · REVISED 25 NOV 2026 F-101 F-201 F-104 F-102

Squarespace tracking for GA4, Google Ads and Meta: what code injection can and cannot do.

ABSTRACT — Squarespace code injection runs on every page and on the order pages, but not on checkout. Where each tag belongs on Squarespace, and why purchases double or vanish in GA4, Google Ads and Meta.

Baris Asa, Synctag, tracking consultant, London · Last checked: 25 November 2026

Squarespace code injection reaches every page and the order page after checkout, but not checkout itself: Squarespace says “Checkout pages don’t support code.” If GA4 or Meta shows more purchases than Squarespace has orders, a tag is usually loading from two places. If Google Ads shows none, the conversion script is usually in the wrong order page field.

Quick check. Take last month. Count the orders in Squarespace. In GA4, open Reports, Engagement, Events and note the count for purchase. In Google Ads, open Goals, Conversions, Summary. In Meta Events Manager, open your pixel and find Purchase. Use the same dates.

  • Zero in one platform: nothing sends the purchase there, or the script sits in the wrong order page field (see below).
  • Above Squarespace’s count: two routes (built-in integration, Code Injection or Tag Manager) send the same order, or a script runs again when the customer revisits the order page (F-101 ).
  • Below Squarespace’s count: either visitors declining the cookie banner (F-201 ) or a missing tag. One accepted test order tells you which (step 3 below).

This note is for Squarespace stores and service sites. If GA4 went quiet the day Tag Manager went in, that’s a different fault: GA4 stopped after GTM was added to a website builder. I have no partnership or commission with Squarespace, Google, Meta or any tool named here.

What can code injection reach on a Squarespace site?

Code Injection is a panel in your site settings with a field for each place below. Squarespace lists it on Core, Plus, Advanced and “some legacy billing plans”. Google’s Squarespace page still uses the older Business and Commerce plan names. Menu paths differ between help pages, so search the panel for “Code Injection”.

PlaceRuns your code?Field
Every pageYes, in the <head> or before </body>Header, Footer
One pageYes, in that page’s <head>Page Header Code Injection, in the page’s settings
Checkout stepsNonone
Order page for physical, download and service productsYesOrder Status
Order page for gift cards, memberships and subscriptionsYesOrder Confirmation

The middle row is the one that matters. Squarespace’s answer to “Can I add code to checkout pages?” is “No.” Anything you add yourself, a Tag Manager container included, can’t run on the checkout steps, so it can’t record shipping or payment. It can record the store pages before checkout and the order page after it.

The last two rows catch people out. Squarespace sends the customer to one of two order pages depending on what they bought. Code left only in the Order Confirmation field doesn’t see an order for a physical product. Older sites often have it there: Squarespace shows a banner offering to move it to the Order Status field.

What do the built-in GA4 and Meta Pixel integrations send?

They are the only routes Squarespace documents that need no code: Meta for checkout and purchase events, Google Analytics for order data.

Google Analytics. Paste your GA4 measurement ID (it starts with G-) into Developer tools, External API keys. Squarespace says it sends, for every order:

  • the order ID, product name and SKU;
  • the purchase total, which “includes shipping”;
  • the customer’s city, region and country, and your store name.

Squarespace doesn’t name the GA4 events it uses, or say anything about checkout events, currency, tax or quantities.

Currency is the one to check first. Google’s purchase event reference says currency “is required if you set value”. With Tag Assistant connected, open DebugView (GA4’s live view of events from a browser in debug mode) and look at one real order: the purchase event should carry both a value and a currency. If the currency is missing, raise it with Squarespace before you rebuild anything, because a GA4 tag on the order page can’t add the product data the built-in route sends (see below).

Shipping inside the total is also one reason GA4 revenue sits above a product-only figure in Google Ads: value doesn’t match revenue.

Meta Pixel. Paste one pixel ID into the Meta Pixel & Ads panel; Squarespace allows only one. It then sends ViewContent, Search, AddToCart, InitiateCheckout, AddPaymentInfo, Purchase, Lead and CompleteRegistration. Squarespace lists it on Core, Plus, Advanced and the older Business and Commerce plans.

Two limits on the same page: “Purchase events aren’t created for test orders”, and for a subscription “only the first order creates a purchase event”. Squarespace’s page doesn’t mention the Conversions API or deduplication, so don’t assume server events are being sent.

If you need them, start with whether you need the Conversions API at all.

Before you connect the built-in pixel, remove any old pixel code from the Header field, the order page fields, any Page Header Code Injection and your Tag Manager container. Squarespace says to delete only the block marked <!-- Meta Pixel Code -->, and that a red error in the Meta Pixel panel can mean pixel code is still in Google Tag Manager.

Where does Google Ads conversion tracking go on Squarespace?

The Google tag goes in the Header field. The purchase conversion goes in the Order Status field (physical, download and service products) or the Order Confirmation field (gift cards, memberships and subscriptions), wrapped in {.if firstPageView}, with {orderId} as the transaction ID (the order number, so the same order isn’t counted twice). Squarespace documents no built-in Google Ads conversion, so this is the job code injection is for.

Google’s Squarespace page puts the Google tag (the one with your Google Ads AW- ID) in the Header field and says: “Don’t add more than one Google tag to each page of your website.” For the order page, Squarespace gives six variables: {orderId}, {orderSubtotal}, {orderSubtotalCents}, {orderGrandTotal}, {orderGrandTotalCents} and {customerEmailAddress}. A Google Ads purchase conversion in the Order Status field looks like this:

{.if firstPageView}
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('event', 'conversion', {
    'send_to': 'AW-XXXXXXXXX/XXXXXXXXXXXX',
    'value': {orderSubtotalCents} / 100,
    'currency': 'GBP',
    'transaction_id': '{orderId}'
  });
</script>
{.end}

What each line is doing:

  • {.if firstPageView}. Squarespace’s own fix: “Customers can revisit the order status page, which might trigger tracking scripts more than once.” Code between these tags runs on the first visit only (F-101 ).
  • The two dataLayer lines. Safety lines, so the script doesn’t fail if it runs before the Google tag. Confirm in Tag Assistant (Google’s browser check that shows which tags fired) that the Google tag is present on the order page.
  • transaction_id. Google Ads treats a second conversion with the same transaction ID in the same conversion action as a duplicate. The order number is what Google suggests using.
  • value. I use the cents variable divided by 100 so the value is a plain number. That assumes a currency with two decimal places, such as GBP, EUR or USD. Subtotal or grand total is your choice: grand total is closer to what the customer paid, subtotal closer to product revenue. Use the same one in every platform.
  • currency. No variable carries it, so write your store’s currency in.

If you sell subscriptions, gift cards or memberships as well, add the same script to the Order Confirmation field. Two more points:

  • Squarespace says: “If a purchase splits across multiple fulfillment profiles, details appear for each order.” It doesn’t say how scripts behave then, so test a mixed basket before you trust the counts.
  • {customerEmailAddress} is the variable you’d use for Google Ads enhanced conversions. That’s a separate setup, and it improves matching; it doesn’t remove duplicates (F-102 ).

Can you run Google Tag Manager on Squarespace?

Yes. Paste Google’s container snippet at the top of the Header field. Squarespace says it can’t help set up or troubleshoot code-based tools like Tag Manager, and Google’s Squarespace page covers the Google tag, not a container. The container is yours to maintain.

What changes with a container:

  • Nothing from the checkout steps. It follows from the checkout row above: add_payment_info and shipping steps can’t come from Tag Manager on Squarespace. At best, begin_checkout can be approximated from the checkout button click on the cart page.
  • No item detail for GA4. The six variables carry no product names, SKUs or quantities, and Google lists items as required for purchase. Google also says an ecommerce event missing a required parameter “will be treated as a custom event and won’t appear in the report”. So a GA4 purchase built from the order page variables alone may not reach the ecommerce reports. That’s the main reason I leave GA4 on the built-in route.
  • Google Ads still works. Push the order to the data layer (the list Tag Manager reads events from) in the order page field, and fire the Google Ads conversion from that event, with order_id as the transaction ID. Confirm it fires once in Tag Assistant (step 3 below).
{.if firstPageView}
<script>
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    event: 'squarespace_order',
    order_id: '{orderId}',
    order_value: {orderSubtotalCents} / 100,
    currency: 'GBP'
  });
</script>
{.end}
  • One route per tag. A GA4 tag in the container plus the G- ID in External API keys sends every page view twice, and every purchase twice if the container also has a purchase tag. This note shows how to spot it.

On an older version 7.0 site with Ajax loading switched on, Squarespace says Google Analytics “only logs the first page a visitor lands on”. Squarespace’s fix is to switch Ajax loading off. Version 7.1 doesn’t use it.

Which route for which tag?

TagRoute I’d useWhy
GA4Built-inSends order and product detail and follows the cookie banner; a container can’t add product detail and needs its own consent setup
MetaBuilt-in pixelThe only documented route that sends checkout events
Google AdsGoogle tag in Header, conversion in the order page fieldNo documented built-in route

Mixing routes across tags is fine. Two routes for the same tag is what doubles the numbers.

Where to start. If the quick check showed a gap, run step 3 of the test below on one real order.

Squarespace’s cookie banner, with Manage cookies switched on, stops Google Analytics cookies from the built-in integration until the visitor accepts, and Squarespace says it passes that choice to Google through consent mode (Google’s way of passing the visitor’s cookie choice to its tags). Code you inject is different. Squarespace says the banner “disables or restricts cookies placed by some third-party services connected to your site, but not all”, and Google’s Squarespace consent page says: “If you are using Google Ads through code injection, there is an additional step that requires consent mode.”

That step is a short script in the Header field, above the Google tag, that sets the Google Ads consent defaults to denied and updates them when the visitor answers the banner. Google gives the code on its Squarespace consent page. Wired that way, the Google Ads tag follows the visitor’s choice (F-201 ). Without it, a Google Ads tag in code injection doesn’t receive the visitor’s choice. To check it works, see how to check Consent Mode v2 is working.

How do you test Squarespace tracking?

  1. Use a private window. Squarespace’s own advice for checking injected code: open the site URL in a private or incognito window, not the editor.
  2. Place a real order. Meta creates no Purchase for test orders, and Squarespace doesn’t say whether injected order page code runs on them. A low-value product you refund afterwards is the honest test.
  3. Watch it arrive. Checkout runs none of your code, so if Tag Assistant loses the page during checkout, connect it again on the order page. Check that the Google Ads conversion fires once. In the hit, value must be a number and transaction_id the real order number, not the literal text {orderId}; if you see the braces, the order page didn’t fill the variable. With Tag Assistant connected, GA4 DebugView shows one purchase, with a currency. In Meta’s Test Events (Events Manager’s live view), one Purchase. Keep the screenshots: that’s the record on file.
  4. Reload the order page. Nothing should fire a second time.
  5. Decline the banner and repeat on a second order if consent matters to you.
  6. Compare with Squarespace. One order in, one purchase in each platform, with the same order number.

If step 3 shows two purchases, look for a second route: the External API keys field, old code in the Header or order page fields, a page-level injection or a tag in Tag Manager.

Squarespace orders don’t match GA4 or Google Ads: what’s normal and what’s a fault?

Some gap is normal. Visitors who decline the banner, attribution windows that differ between Google Ads and GA4, and a total that includes shipping in one place and not in another all move the numbers without anything being broken.

The faults on Squarespace are specific: a purchase script in the Order Confirmation field when the store sells physical products, the built-in GA4 field and a Tag Manager GA4 tag both sending, and an order page script without {.if firstPageView} counting revisits (F-101 ). If GA4 purchases are also imported into Google Ads next to the order page conversion, keep only one as primary (the conversion Google Ads bids on and reports in its Conversions column) (F-104 ). Which gaps between the three platforms are normal is in three different purchase totals.

Who is this for, and what do you get back?

Squarespace stores and service businesses where the order count and the ad platforms don’t agree and nobody knows which route sends what. I reconcile Squarespace, Shopify and other website builder orders against GA4, Google Ads and Meta, and agencies hand me these under their own name too (white label). When I set up or repair tracking on one, you get back:

  • a list of every route loading a Google or Meta tag, with duplicates removed;
  • the purchase on the right order page field, once per order, with the order number as transaction ID;
  • one value definition (subtotal or grand total) used in every platform;
  • the Google Ads consent step in place if Google Ads runs from code injection;
  • a test record on file: each order placed, what fired, where it showed up.

Email the site URL and read access to GA4 if you can, to [email protected]. I’ll reply with what loads today, where it loads twice, and what fixing it involves.

Common questions

Does Squarespace code injection run on the checkout page?

No. Squarespace’s code injection guide says checkout pages don’t support code, and you can’t add custom code to them. Injected tags and a Google Tag Manager container run on your store pages and on the order page after checkout, not on the checkout steps in between.

Where do I put the Google Ads conversion code on Squarespace?

Put the Google tag in the Header field of Code Injection, and the purchase conversion in the order page field: Order Status for physical, download and service products, Order Confirmation for gift cards, memberships and subscriptions. Use {orderId} as the transaction ID and wrap the script in {.if firstPageView} and {.end} so a revisit doesn’t count the order again.

What order data does Squarespace’s built-in Google Analytics send?

Squarespace says it sends, for every order: the customer’s city, region and country, the order ID, product name, the purchase total including shipping, SKU and your store name. It doesn’t name the GA4 events it uses, so check them in DebugView on a real order.

Can I use Google Tag Manager on Squarespace?

You can paste the container into the Header field of Code Injection on plans that include it. Squarespace says it can’t help set up or troubleshoot code-based tools like Google Tag Manager, and the container can’t run on checkout pages, so events from the checkout steps, such as add_payment_info, aren’t available from it.

Why does GA4 show more Squarespace purchases than the store has orders?

Usually two routes send the same purchase: the built-in Google Analytics field plus a GA4 tag in Code Injection or Tag Manager, or an order page script that runs again on every revisit. Keep one route per tag and put order page scripts inside {.if firstPageView}.

Does Squarespace’s built-in Meta Pixel send Purchase events?

Yes. Squarespace says it sends Purchase when a visitor completes their purchase, along with ViewContent, AddToCart, InitiateCheckout and AddPaymentInfo. You can add one pixel ID. It creates no Purchase for test orders, and for a subscription only the first order creates one. Squarespace’s page doesn’t mention the Conversions API, so check the event source in Events Manager rather than assume server events are sent.

Sources

Read on 25 November 2026:

— B.A., filed from London

CONNECTED RECORDS F-101 F-201 F-104 F-102

REVISION HISTORY — revised 25 NOV 2026.

← back to the reading room