Custom site quickstart
Install the pixel and fire a conversion on any non-Shopify site in a few minutes.
Not on Shopify? Yonto works on any site with a tiny pixel and one function call. You'll add a script to your pages, then fire a conversion on your success page. The whole thing takes a few minutes and no build step.
YOUR_TRACKING_CODE as a placeholder.Two ways to set this up#
Install it yourself with the snippets below, or — if you built your site with an AI coding agent and don't write code yourself — hand the whole job to your agent with a ready-made prompt. Both get you to the same place.
Let your AI agent do it#
Copy this prompt and paste it into whichever AI coding agent you use (Cursor, Claude Code, Copilot, v0, Lovable — any of them). Replace YOUR_TRACKING_CODEwith the code from your campaign's Setup & tracking screen first — on that screen the prompt already has your real code filled in and a one-click copy.
You are helping me add Yonto (yontosales.com) analytics to my website. Yonto tells me which creators drive sales. Please make the following changes to my site. Do not change anything else.
STEP 1 — Install the tracking pixel
Add this exact tag on every page, immediately before the closing </head> tag. Put it in the shared layout/template/head component so it appears site-wide:
<script async src="https://yontosales.com/p.js" data-proof="YOUR_TRACKING_CODE"></script>
Do not modify the data-proof value — it identifies my campaign. The script loads asynchronously and does nothing for visitors who did not arrive from a Yonto link, so it is safe on every page.
STEP 2 — Fire a conversion when a order completes
On the order-confirmation / thank-you page, AFTER the order is confirmed, call the global proof() function exactly once. Call it only on success (not on page refresh, not on the cart or checkout page):
This campaign tracks SALES, so pass the real order total (a number in the store's currency):
<script>proof('conversion', { value: ORDER_TOTAL });</script>
Replace ORDER_TOTAL with the actual order value read from the order data (for example 49.90). Do not hard-code a placeholder number. (For reference, a signup/lead campaign would instead call proof('conversion') with no value.)
STEP 3 — Verify it works
1. Deploy the changes.
2. In a browser, open this tracked link to register a click: https://yontosales.com/r/YOUR_TRACKING_CODE
3. Complete a test order on the site.
4. Within a minute, the order should appear on the campaign's results page in my Yonto dashboard.
If it doesn't appear: confirm the pixel tag is present in the <head> of the confirmation page, that proof('conversion'...) runs only after success, and that the tracked link above was opened in the same browser before the test order.Install it yourself#
- 1Add the pixel before </head>Paste this on every page of your site (in a shared layout or template), just before the closing
</head>tag. It loads asynchronously and won't slow your page down.index.html — before </head><script async src="https://yontosales.com/p.js" data-proof="YOUR_TRACKING_CODE"></script> - 2Fire a conversion on successOn your order-confirmation or thank-you page, call
proof('conversion')once the sale or signup is confirmed. Use the tab that matches your goal:order-confirmation page<script> // On your order-confirmation page, once the order total is known: proof('conversion', { value: 49.90 }); </script> - 3Ship it and check the dashboardPublish the change, then run a test click through the creator's tracked link and complete a purchase. The conversion appears on the campaign's results page, attributed to that creator.
The conversion call#
proof('conversion', options) reports a single conversion. Pass a value for sales; omit it for signups and leads.
| Parameter | Type | Description |
|---|---|---|
| value | number | The order total (e.g. 49.90), in your store's currency. Leave it out for a signup or lead — Yonto records the conversion without revenue. |
Privacy: it does nothing unless a creator referred the visitor#
The pixel is a deliberate no-op for everyone who didn't arrive through a creator's tracked link. On load it looks for a Yonto referral (a ?ref= value or the first-party click cookie). If there isn't one, proof('conversion') simply returns and sends nothing.