Sunrise 2027: checkouts are switching to 2D codes – is your packaging ready?Learn more →
Contents

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. 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) and utm_content (code ID). Parameters already in the address stay untouched.
  2. 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. 3. Connect your shop: Shopify as described below, other shops with a JSON request.
Example

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

  1. In Tagvio, switch on marking and create the webhook address (steps 1 and 2 above).
  2. In Shopify, open Settings › Notifications › Webhooks and click + Webhook.
  3. 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. Shopify dialog Add webhook: 1 event Order creation, format JSON; 2 URL https://app.tagvio.app/api/hooks/orders/tvh_…; 3 newest dated webhook API version; 4 Save
  4. Below the list, under Signing secret › Current secret, click the copy icon. Do not click Create new secret – that makes the saved secret invalid. Shopify webhook list: 1 the new Order creation webhook with the Tagvio address; 2 copy icon next to Current secret; do not click Create new secret
  5. 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"
  }'
FieldContent
order_idOrder number, required. Used only to count each order once.
amountOrder total as a number, required.
currencyThree-letter currency code, e.g. EUR or USD. Without it, Tagvio assumes EUR.
tag or landing_urlEither the code ID directly, or the first page of the visit with the UTM parameters from the scan.
created_atOptional: 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_tag or duplicate.
  • 400 with invalid_order (number or amount missing) or bad_json; 404 for 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

  1. Someone scans a code. Tagvio forwards to your shop page with utm_source=tagvio and the code ID in utm_content.
  2. Shopify stores the first page of the visit as landing_site, including these parameters. Tagvio reads it (or, if missing, referring_site). Other shops send landing_url or tag.
  3. If utm_source=tagvio is 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

Still stuck?

Use the contact form or write to hello@tagvio.app – we usually reply within 1–2 business days.

Try it in the app

Free plan forever. No credit card. Early access: we activate new accounts within one working day.

Start free →