Conversion tracking
See which printed codes lead to purchases or sign-ups. Conversion tracking is part of the Pro and Business plans; the workspace owner turns it on under Integrations → Analytics and conversions.
How it works
- When someone scans a website code, the short link adds a signed click id,
sc_cid, to your address. Nothing is stored on our side at that moment. - A small script on your site (1.6 kB) reads the click id. It keeps it only in memory until the visitor agrees to analytics on your site; after that it stores it in the browser's
localStoragefor 30 days. - On your thank-you page you report the conversion with your order number. We attribute it to the code that was scanned last, within 30 days.
Install
The panel shows the snippet with your public key. Put it in the <head> of every page:
<script src="https://scanteo.co/t.js" data-key="YOUR_PUBLIC_KEY" async></script>
<script>window.scanteo=window.scanteo||function(){(scanteo.q=scanteo.q||[]).push(arguments)};</script>
Consent
Call this from your consent banner when the visitor accepts analytics, and with false when they decline or withdraw consent (the stored click id is removed):
scanteo('consent', true);
If your site already loads the script only after consent, add data-consent="granted" to the script tag instead.
Report a conversion
scanteo('conversion', {
id: 'ORDER-123', // your order or sign-up id, required
value: 4999, // optional, in minor units (cents)
currency: 'EUR' // optional, ISO 4217, required with value
});
- The same
idis counted once, so reloading the thank-you page is harmless. - Only visitors who came from one of your codes in the last 30 days are counted; other visits send nothing.
- Results appear in Analytics in the panel and in
GET /api/v1/stats(theconversionsfield).
Good to know
- The click id is signed: it cannot be made up, and it only works with the public key of the same workspace.
- A visitor can still report a fake conversion from their own visit. For revenue that must be exact, compare with your shop's own records.
- The script sets no cookies and sends nothing about the visitor except the click id and the conversion you report.