Semust Metrik
Revenue Tracking
Send orders and revenue to Metrik, with checkout auto-detection and the ikas integration.
With revenue tracking on, Metrik matches your orders to the traffic source the visit came from — so you can see which channel actually earns.
Product page: Semust Metrik.
Turn revenue tracking on first
<script src="https://unpkg.com/semust-js@latest/dist/semust-js.min.js"
data-token="mk_your-key-here"
data-revenue="true"></script>Nothing happens while it is off
Without data-revenue="true", trackPayment() calls are silently ignored and
checkout auto-detection does not run. You will not see an error.
Reporting an order
Call this on your thank-you page, once the order completes:
semustMetrik.trackPayment({
orderId: "ORD-10432",
amount: 129.90,
currency: "USD",
provider: "stripe"
});| Field | Required | Description |
|---|---|---|
orderId | Yes | Your order number; 255 characters maximum |
provider | Yes | Payment provider name; 32 characters maximum |
amount | No | Order total. Without it the conversion counts but no revenue does |
currency | No | ISO code, for example USD, EUR, TRY |
If orderId or provider is missing, the call is ignored.
Amount format
Sending a number is safest. If you send text, common formats are parsed:
| Sent | Read as |
|---|---|
129.90 | 129.90 |
"1.299,90" | 1299.90 |
"1,299.90" | 1299.90 |
"$129.90" | 129.90 |
"1000:2000" | Unreadable — no amount is sent |
Amounts are always in major units: dollars not cents, lira not kuruş.
Adding extra detail
Keys outside the recognised fields are stored as custom properties, up to 10:
semustMetrik.trackPayment({
orderId: "ORD-10432",
amount: 129.90,
currency: "USD",
provider: "stripe",
campaign: "black-friday",
shipping: "free"
});Checkout auto-detection
With revenue tracking on, Metrik recognises an order from the address your payment provider returns to:
| Provider | Parameter it looks for |
|---|---|
| Stripe | session_id |
| Polar | checkout_id |
| LemonSqueezy | order_id |
Auto-detection carries no amount
This records the conversion but does not know the order total. To see revenue as
well, call trackPayment() on your thank-you page.
The same order is never counted twice, even if the visitor reloads the page.
ikas integration
If you use ikas, you can pull orders in without touching the script at all. Connect your store under Semust Metrik → Settings → Integrations.
Orders come directly from ikas with this method, cancellations and refunds are handled, and the product breakdown appears on the Products tab.
Currency
If you sell in more than one currency, the dashboard does not add them together. Use the currency selector in the top bar to choose which one to report in.
Where it appears in the dashboard
| Location | What it shows |
|---|---|
| Overview | Revenue, orders, average order value, conversion rate |
| Overview → Traffic Sources | Revenue by source |
| Products | Product, units, revenue; source and country breakdown per product |
| Sessions | The "Made money" filter shows revenue-generating sessions |
