Wix
Attribute sales to creators on Wix — Custom code in the site dashboard, fired on the thank-you page.
Yonto attributes sales to the individual creator who drove them. On Wix that works several ways, and the honest summary is that browser pixel does most of the work:
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: The Thank You You page in Wix Stores.
- 1Add the pixelSettings → Custom Code → Add Custom Code. Paste this, set it to load on All Pages, and place it in the Head.html
<script async src="https://yontosales.com/p.js" data-proof="YOUR_TRACKING_CODE"></script> - 2Fire the conversionAdd a second custom-code block scoped to the Thank You You page only. Wix exposes the order through its Velo APIs; if you are not using Velo, the snippet below reads the order total that Wix renders on the page — check the selector against your own theme.html
<script> // Thank You You page only. // Replace the two lookups with your own if your template differs. document.addEventListener('DOMContentLoaded', function () { var total = document.querySelector('[data-hook="order-total"]'); var id = document.querySelector('[data-hook="order-number"]'); if (!total || !id) return; proof('conversion', { value: parseFloat(total.textContent.replace(/[^0-9.]/g, '')), id: id.textContent.trim() }); }); </script> - 3Create a matching couponMarketing & SEO → Coupons, named exactly as your campaign's code.
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 Wix.
- Orders completed in the same browser that clicked the link, within 30 days.
- Orders that used the creator's discount code, whatever the shopper's cookie settings.
- Shoppers who refuse tracking cookies — the click is never linked to the sale.
- 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 — Wix 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#
- Wix's thank-you page markup changes between templates, so the selectors above are a starting point and must be checked against your own site.
- This is the least robust of the platforms here, because Wix gives no server-side hook we can subscribe to. If accuracy matters, use the server-side API from a Velo backend function.
Making it more accurate#
- Ask the creator to lead with the discount code. It is the only method that survives a shopper refusing cookies, and it converts better anyway.
- Report refunds. Wix does not tell us when you refund an order, so a refunded sale stays counted unless you reverse it yourself.
- Use one discount code per campaign. Codes are matched before click ids, and a code shared across campaigns resolves to whichever matches first.