UTM script and sales sources
Carry UTMs and click identifiers from your sales page to the checkout, and see in the Sales sources report where your paid sales came from.
When the ad leads straight to the checkout, Vipter already reads the UTMs and click identifiers in the link. When the ad leads to a sales page on your website, that data stays on the page and gets lost on the click to the checkout. The UTM script fixes that. Then the Sales sources report shows where the sales came from.
Before you start
- The Admin or Owner role in the Vipter project.
- Access to edit your sales page's HTML, or a "footer code" field in your page builder.
Step 1: copy the script
- Open GeneralConversionsPreferences.
- Under UTM script for your sales page, click the copy button next to the code.

The code is a single line:
<script src="https://pay.vipter.com/t.js" async></script>With a custom domain active, the copied code already comes with data-hosts="your-domain", such as data-hosts="checkout.yourstore.com".
Step 2: paste it on the sales page
Paste the code on every page from which the visitor can go to the checkout, at the end of the page, before the closing </body> tag. In builders such as WordPress, Elementor and similar, use the footer scripts field.
The script doesn't change how the page looks.
Step 3: check
- Open the sales page with UTMs in the address, such as
?utm_source=teste&utm_campaign=script. - Click the buy button.
It worked if
The checkout address opens with utm_source=teste and utm_campaign=script. After a test purchase, the order shows that source in the Source and conversions card and the sale shows up in the Sales sources report.
What the script does
- Stores in the visitor's browser, for 30 days, the UTMs (
utm_source,utm_medium,utm_campaign,utm_content,utm_term,utm_id),srcandsck. The first source wins: if the visitor comes back later without UTMs, or through another campaign, the stored source stays the first one. - Stores the ads' click identifiers (
fbclid,gclid,gbraid,wbraid,ttclid,epik,tblci,ob_click_id,msclkid,li_fat_id,rdt_cid,ScCid,click_id). For these, the most recent click wins. - When someone clicks a link to the checkout, it adds this data to the link, along with your page's Meta (
_fbp,_fbc), TikTok (_ttp), Pinterest (_epik), Reddit (_rdt_uuid,_rdt_cid), Snapchat (_scid), LinkedIn (li_fat_id) and Google Analytics (_ga) cookies. This improves matching for the events sent from the server. - Never replaces a parameter the link already has.
- Also carries the seller code (
?v=), if the visitor arrived through a seller link. In that case, the last one wins.
The data-hosts attribute
The script only touches links that point to Vipter's checkout (pay.vipter.com). data-hosts adds other addresses, separated by commas:
<script src="https://pay.vipter.com/t.js" data-hosts="checkout.yourstore.com,payment.yourstore.com" async></script>Use it when the page's buttons lead to your own checkout domain. If you activate a domain after pasting the script, copy the code again or add the domain to data-hosts.
Buttons that aren't links
The script works on links (<a href="…">). If the buy button opens the checkout with JavaScript, ask whoever maintains the page to pass the address through window.vipterDecorate:
window.location.href = window.vipterDecorate('https://checkout.yourstore.com/your-offer');Sales sources
Open HomeReports and, under Conversion and recovery, the Sales sources report. Which channel and campaign bring orders, and whether buyers are new.
- Choose the period and filters in the bar at the top. It is the same bar in every report: see the filter bar.
- Under Group by, choose Channel, UTM source, UTM campaign or UTM content and click Apply.
- Click a row's name to filter by it and go one level down: from the channel to
utm_source, from there toutm_campaignand then toutm_content. When grouped by channel, the orders count opens the order list for that channel.

At the top: Net sales, Orders, % attributed and % new customers, compared with the previous period. How % attributed is calculated: Orders whose channel is not direct (click id, UTM, referrer or dashboard sale) divided by all orders.
The table shows, per row: Orders, Net sales, Average order value, % new customers, % PIX, New subscriptions and Share of revenue. On narrow screens, some columns are hidden.
How the channel is decided
With Channel, each sale goes into a channel, in this order:
| If the sale | Channel |
|---|---|
| Was made in the dashboard, in new sale | Dashboard sale |
Has fbclid or the _fbc cookie | Meta Ads |
Has gclid, gbraid or wbraid | Google Ads |
Has ttclid | TikTok Ads |
Has epik | Pinterest Ads |
Has tblci | Taboola |
Has ob_click_id | Outbrain |
Has msclkid | Microsoft Ads |
Has li_fat_id | LinkedIn Ads |
Has rdt_cid | Reddit Ads |
Has ScCid | Snapchat Ads |
Has click_id and a utm_source containing "kwai" or "snack" | Kwai Ads |
Has utm_source, with no click identifier | Other campaigns (UTM) |
| Has only a referring website | Referring sites |
| Has none of these | Direct / no source |
The click identifier beats the UTM. A sale from a Meta ad with utm_source=instagram goes into Meta Ads. To see the UTM, group by UTM source.
The exception is Kwai's click_id. Other networks use that name too, so it only means Kwai Ads when the utm_source contains "kwai" or "snack". See Connect Kwai Ads.
The other groupings use the parameter's exact value. Sales without the parameter show as Not informed. utm_medium, src and sck are stored with the sale, but the report doesn't group by them.
What is counted
- Orders paid in the period, by payment date. Under Date, you can switch to Order date.
- Subscription renewals are left out, because they would repeat the first sale's source every month. That's why the report opens with the Order type filter excluding Renewal.
- Net revenue has coupons and refunds deducted. A refunded order still counts as an order, and the refunded amount comes off the revenue.
- Sales in other currencies are converted to the store's currency at the rate of each order's day and added up in a single row.
- Orders from connections in test mode are left out, unless you tick Include test connections.
Common problems
-
Sales from the sales page show as Direct / unknown
The script isn't on the page, or the buttons lead to a domain that isn't in
data-hosts. Check Step 3. -
The checkout link opens without UTMs
The button isn't a regular link. Use
window.vipterDecorate, as in "Buttons that aren't links". -
The sale's campaign is from an old visit
This is expected: the first source from the last 30 days in the same browser wins.
What to do next
- Choose what each platform receives in what to send.
- Set up the checkout's cookie consent.
What to send: events, value and data
Choose each tracking account's events, the conversion value and currency, the matching data and the per-product exceptions.
Cookie consent and domain verification
Decide whether the checkout pixels wait for the buyer's consent, and verify your domain with Meta, Pinterest and Google through a meta tag.