VipterHelp Center

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.

Admin or OwnerAll plansVerified on Nov 18, 2026

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

  1. Open GeneralConversionsPreferences.
  2. Under UTM script for your sales page, click the copy button next to the code.
UTM script card with the code to copy

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

  1. Open the sales page with UTMs in the address, such as ?utm_source=teste&utm_campaign=script.
  2. 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), src and sck. 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.

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.

  1. Choose the period and filters in the bar at the top. It is the same bar in every report: see the filter bar.
  2. Under Group by, choose Channel, UTM source, UTM campaign or UTM content and click Apply.
  3. Click a row's name to filter by it and go one level down: from the channel to utm_source, from there to utm_campaign and then to utm_content. When grouped by channel, the orders count opens the order list for that channel.
By Channel table of the Sales sources report, with the Group by selector, orders and net revenue of each 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 saleChannel
Was made in the dashboard, in new saleDashboard sale
Has fbclid or the _fbc cookieMeta Ads
Has gclid, gbraid or wbraidGoogle Ads
Has ttclidTikTok Ads
Has epikPinterest Ads
Has tblciTaboola
Has ob_click_idOutbrain
Has msclkidMicrosoft Ads
Has li_fat_idLinkedIn Ads
Has rdt_cidReddit Ads
Has ScCidSnapchat Ads
Has click_id and a utm_source containing "kwai" or "snack"Kwai Ads
Has utm_source, with no click identifierOther campaigns (UTM)
Has only a referring websiteReferring sites
Has none of theseDirect / 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

Was this page helpful?

On this page

Language