Track signups and purchases from creator links
About 10 minutes. You copy, paste and test. No referral codes, no coupon system, no changes to how your site works.
Paste one snippet
On every page of your site. Visits are then counted automatically.
Mark signup and payment
One line on your “welcome” page and one on your “order confirmed” page.
Test it
Open your site in test mode and watch each step turn green.
Install
Starts with lt_pub_. The person who invited you to Linkto can send it, or find it in Linkto → Conversion tracking.
For custom sites, Webflow, Wix, Squarespace, Framer and anything else that lets you add code.
Step 1: Paste this on every page
Put it just before </head> in your site's main template or “custom code” setting, so it loads on every page.
Paste this on every page<!-- Linkto tracking --> <script>window.linkto=window.linkto||function(){(linkto.q=linkto.q||[]).push(arguments)};</script> <script async src="https://linkto.in/t.js" data-site="YOUR_SITE_KEY"></script>Visits from Linkto links are now counted automatically.
Step 2: Paste this where a signup succeeds
Add it to the page people see right after creating an account (your “welcome” or “thank you” page).
Paste this where a signup succeeds<script> linkto("signup"); </script>No signups on your site? Skip this step.
Step 3: Paste this where a payment succeeds
Add it to your order confirmation page. Replace 499 and ORDER-1001 with the real order amount and order number.
Paste this where a payment succeeds<script> linkto("purchase", { amount: 499, // what the customer paid currency: "INR", orderId: "ORDER-1001" // your order number }); </script>The order number stops the same sale being counted twice if the page is refreshed. If payouts depend on purchase numbers, send purchases from your server instead (see “Server (verified)”): a browser call can be faked by the visitor.
Paying creators on these numbers? Verify purchases
The website snippet is the quickest setup and is fine for seeing what works. But a purchase reported from a web page can be faked by the visitor, and blocked by ad blockers. When payouts, commissions or invoices depend on the purchase numbers, make them verified:
- Keep the snippet from step 1 on your site. It still counts visits and saves the click ID.
- Report purchases from your server when the payment is confirmed, using your secret key. The steps are in the “Server (verified)” tab above.
- In Linkto → Conversion tracking → your website, switch on “Only count purchases sent from the server”.
After that, Linkto counts a purchase only if it carries your secret key, which never leaves your server. Purchase numbers cannot be inflated from a browser, and ad blockers cannot hide real sales.
Shopify and WooCommerce setups on this page report purchases from the browser, so leave the switch off for those unless your server also reports orders.
Test it
- Open any page of your site with
?lt_id=lt_test_setupadded to the address, for examplehttps://www.yoursite.com/?lt_id=lt_test_setup. - A green badge appears in the bottom-left corner: “Linkto test mode: visit received ✓”. That means the snippet is installed correctly.
- In the same browser tab, sign up and place a test order. The badge shows “signup received ✓” and “purchase received ✓”.
- Done. Test events are never counted in reports. In Linkto → Conversion tracking, the checklist for your site shows the same three ticks.
No badge? The snippet is not on that page, or the site key in it is wrong. Check step 1 and reload.
Common questions
- Do I need my own referral or coupon system?
- No. Linkto tags each click, and the snippet reports what that visitor did. You do not create codes, links or accounts for creators on your side.
- Will it slow my website down?
- No. The script is under 3 KB, loads in the background (async), and only contacts Linkto when a visitor arrived through a Linkto link.
- What information does it collect?
- The click ID, the event name (visit, signup or purchase) and, for purchases, the amount, currency and your order number. It does not collect names, emails, phone numbers or card details.
- Does it use cookies?
- Yes, one first-party cookie on your own domain called lt_id, kept for 30 days. It holds the click ID and nothing else. If your site has a cookie banner, list it under analytics or marketing.
- How long after a click does a purchase still count?
- 30 days. If the same person clicks two creators' links, the most recent click gets the credit.
- What if a visitor uses an ad blocker?
- Some ad blockers stop tracking scripts. If you need every sale counted, use the “Server (verified)” option: your server reports the sale directly, which a browser cannot block.
- Can someone fake a signup or a purchase?
- Anything sent from a browser can be faked by the person using it, as with every tracking script. Someone who clicked a creator's link could send made-up purchases for that creator. If money depends on the numbers, report purchases from your server (the “Server (verified)” tab) and switch on “Only count purchases sent from the server” in Linkto. Purchases are then accepted only with your secret key.
- Can the same order be counted twice?
- Not if you pass your order number. Linkto counts each order number once, even if the confirmation page is refreshed or both the page and your server report it.