Squarespace influencer tracking

See which influencers actually sell on your Squarespace store: a tracked link for each one, and the orders that follow it credited to whoever sent the shopper.

How do I track influencer sales on Squarespace?#

Squarespace Commerce lets you create a discount for each influencer under Selling → Discounts, and every order shows which discount it used. That covers the shoppers who remember the code. The ones who tap an influencer's link and buy at full price leave no trace in it, and nothing there compares an influencer's sales with their fee.

Beyond that, Squarespace sellers usually try an influencer platform with a Squarespace integration, or UTM links in Google Analytics. Influencer platforms bundle discovery, outreach and payments, and are priced for that. UTM links count visits by source, not orders by person.

Yonto uses Squarespace's own code injection: the pixel in the site-wide header remembers which influencer's link a shopper arrived through, and a script in the Order Confirmation Page box reports the order straight from Squarespace's order data. Each sale is credited to that influencer — creator attribution, set against what you paid them. Code injection needs a Business plan or above, and because Squarespace gives no server-side order hook, a shopper who only types the code is not counted.

Track influencer sales on Squarespace with Yonto
One tracked link per influencer, and each one's sales set against what you paid them.
Start free

How it works on Squarespace#

Yonto credits each sale to the individual influencer who drove it — creator attribution. On Squarespace, it reaches us one way, and the browser pixel does most of the work:

Browser pixel — primary on this platform
A small script on your confirmation page reports the order. Depends on the shopper accepting cookies and not blocking scripts.

Setting it up#

Every campaign has its own tracking code. The snippets below use YOUR_TRACKING_CODE as a placeholder — copy the real ones from the campaign's Setup screen, which fills them in for you.

Conversions are reported from: Order Confirmation Page injection.

  1. 1
    Add the pixel
    Settings → Advanced → Code Injection → Header. This loads on every page, which is what lets the click be remembered between landing and checkout.
    html
    <script async src="https://yontosales.com/p.js" data-proof="YOUR_TRACKING_CODE"></script>
  2. 2
    Fire the conversion
    Same screen, the Order Confirmation Page box. Squarespace exposes the order there as a global, so no selectors are involved.
    html
    <script>
      (function () {
        var o = window.Static && window.Static.SQUARESPACE_CONTEXT
          && window.Static.SQUARESPACE_CONTEXT.order;
        if (!o) return;
        proof('conversion', {
          value: o.grandTotal.value,
          id: o.orderNumber,
          currency: o.grandTotal.currencyCode
        });
      })();
    </script>
  3. 3
    Create a matching discount
    Selling → Discounts, named exactly as your campaign's code.
Warning.on a sale campaign, value and id are both required. The order id is what makes a retry or a refreshed confirmation page idempotent instead of a second sale. A call missing either is rejected — see the Conversion endpoint reference.

What this can and cannot see#

Attribution is never complete, on any platform. You are about to pay a creator on the strength of these numbers, so here is exactly what is behind them on Squarespace.

Counted
  • Orders completed in the same browser that clicked the link, within the business's click window and no more than 30 days after the click, because the pixel keeps the click for 30 days.
  • The order's real total and currency, from Squarespace's own order object.
Not counted
  • Orders that used the creator's discount code but never followed their link. The script only reports shoppers who arrived through a tracked link.
  • Shoppers who refuse tracking cookies — the click is never linked to the sale.
  • Purchases made after the browser deleted the click cookie. Safari deletes a cookie set by a script after 7 days.
  • Purchases made on a different device from the click.
  • Anyone running an ad blocker that blocks our script.
  • Sales where the shopper cleared their browser data between clicking and buying.
  • Refunds — Squarespace does not notify Yonto, so a refunded order stays counted.

This is why every figure Yonto reports is described as a confident floor rather than a total. The sales in the right-hand column happened; we simply cannot prove the creator caused them, and we would rather undercount than invent.

Worth knowing#

  • Code injection requires a Business plan or above. On Personal plans the pixel cannot be installed at all, so Yonto can count clicks on your links but cannot credit sales to them.

Making it more accurate#

  • Ask the influencer to share the link, not just the code. On Squarespace a sale is credited through the link, so a shopper who only types the code is not counted.
  • Report refunds. Squarespace does not tell us when you refund an order. A refunded sale stays counted until your server reports the refund through the server API, naming the order id the sale was sent with.