Help Center › Settings › Shop & revenue
Shop & revenue
See which codes lead to purchases: Tagvio marks links from scans, your shop reports orders, Analytics shows orders and revenue per code.
Shop & revenue shows which codes lead to purchases. Tagvio marks every link from a scan, your shop reports each new order, and Analytics shows orders and revenue per code.
From Scaleup
You set it up under Settings › Shop & revenue in three steps. Only owners and admins see this page.
- 1. Mark links from scans: click Switch on marking. From then on, every web destination gets
utm_source=tagvio,utm_medium=qr,utm_campaign(name of the code) andutm_content(code ID). Parameters already in the address stay untouched. - 2. Webhook address for orders: click Create address and copy the address. It is shown only once and is secret – whoever knows it can report orders.
- 3. Connect your shop: Shopify as described below, other shops with a JSON request.
The coffee roaster Rösterei Bohnenglück prints a code on every bag that leads to the reorder page in its Shopify shop. After setup, Analytics shows: the code on the 1 kg espresso bag brought 412 scans and 37 orders last month, the code on the filter coffee only 4 orders. The roaster moves the reorder hint on the filter bag to the front and compares the next month.
Connect Shopify
- In Tagvio, switch on marking and create the webhook address (steps 1 and 2 above).
- In Shopify, open Settings › Notifications › Webhooks and click + Webhook.
- Choose the event Order creation and the format JSON, paste the address from step 2, choose the newest API version with a date (not “unstable”) and save.

- Below the list, under Signing secret › Current secret, click the copy icon. Do not click Create new secret – that makes the saved secret invalid.

- In Tagvio, paste the secret into Shopify signing secret and click Save key. Tagvio confirms: “Key saved – signatures are checked.”
The screenshots come from the German Shopify admin; the English one looks the same.
- Tagvio checks every Shopify request with the header
X-Shopify-Hmac-Sha256(HMAC-SHA256 over the raw body with your secret). Requests with a wrong signature are not counted. - Once a Shopify secret is saved, the address only accepts signed Shopify requests.
- Tagvio uses the events Order creation and order payment; others are ignored. One webhook is enough. Shopify sends repeats – each order is counted only once.
- Last order report shows what happened with the most recent order: counted, not from a Tagvio scan (normal for orders without a scan), code not found in this workspace, already counted, wrong Shopify signature, Shopify key missing, order number or amount missing, or not valid JSON.
New address replaces the address; the old one stops working at once, so update it in Shopify. Remove deletes it; orders are no longer counted.
Other shops (WooCommerce, Shopware, own checkout)
For every new order, send a POST request with Content-Type: application/json to the webhook address from step 2:
curl -X POST https://app.tagvio.app/api/hooks/orders/tvh_… \
-H "Content-Type: application/json" \
-d '{
"order_id": "1001",
"amount": 49.90,
"currency": "EUR",
"landing_url": "https://shop.example/?utm_source=tagvio&utm_medium=qr&utm_campaign=espresso-1-kg&utm_content=k7m2xq4d"
}'
| Field | Content |
|---|---|
order_id | Order number, required. Used only to count each order once. |
amount | Order total as a number, required. |
currency | Three-letter currency code, e.g. EUR or USD. Without it, Tagvio assumes EUR. |
tag or landing_url | Either the code ID directly, or the first page of the visit with the UTM parameters from the scan. |
created_at | Optional: time of the order (ISO), otherwise the time of the request. |
Answers:
{"ok": true, "counted": true}– counted.{"ok": true, "counted": false, "reason": "…"}– received but not counted:not_from_tagvio,unknown_tagorduplicate.400withinvalid_order(number or amount missing) orbad_json;404for an unknown address.
Use this format only if no Shopify secret is saved. With a saved secret, requests without a Shopify signature are rejected (401, signature_required).
How orders are assigned to codes
- Someone scans a code. Tagvio forwards to your shop page with
utm_source=tagvioand the code ID inutm_content. - Shopify stores the first page of the visit as
landing_site, including these parameters. Tagvio reads it (or, if missing,referring_site). Other shops sendlanding_urlortag. - If
utm_source=tagviois there and the code belongs to your workspace, the order counts for that code.
- Marking (step 1) must be on. Without it, links from scans carry no code ID.
- The assignment is cautious on purpose: if a buyer returns later by another route, the order does not count for the code. There are no cookies and no tracking across visits.
- Tagvio stores only the number of orders and the revenue per code, day and currency – no names, addresses or email addresses. The order number is kept for 60 days only as an irreversible fingerprint, so nothing is counted twice.
In Analytics the tile scan → purchase shows the funnel: scans → Buy clicks → orders, plus revenue, and the top tags show revenue per code. Every counted order can also trigger the webhook event order, see Webhooks.
Related: Scan to buy · GTIN codes · Plan & billing
Use the contact form or write to hello@tagvio.app – we usually reply within 1–2 business days.
Free plan forever. No credit card. Early access: we activate new accounts within one working day.