virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-17

Shopify UTM tracking: where UTMs show on orders and reports

By Devendra Variya, co-founder of Virling. Published 2026-11-17, updated 2026-11-30.

Shopify tracks UTM parameters from the URL a visitor lands on. On an order, open the Conversion summary, then View conversion details and View full sessions: each session can show its UTM parameters. In reports, traffic with a utm_campaign parameter counts as marketing, and the Performance by marketing campaign report shows sales per campaign. Some orders carry nothing: draft orders, orders from outside the Online Store, and visits where cookies were blocked. For revenue per campaign after refunds, store a visitor ID on each order.

Where Shopify shows UTM parameters on an order

On the order page, Shopify has a section called Conversion summary. It shows the customer's number of orders, their visits to your store in the last 30 days and where their first visit came from. View conversion details adds the days between the first and the most recent visit, and View full sessions lists each visit with its referral, app details and UTM parameters. Shopify notes that the summary can take up to 48 hours to appear. Source: Shopify Help Center, conversion summary.

Where UTMs show in Shopify reports

Shopify says that traffic arriving with utm_campaign in the URL is attributed to marketing. The marketing reports then show it:

  • Sales attributed to marketing, which has a UTM campaign name field
  • Performance by marketing campaign, for sales per campaign
  • Performance by marketing channel, for sales per channel, which since September 2026 covers all store traffic, not only marketing
  • The Attribution page, with a list of top performing marketing campaigns

The attribution models on offer are last non-direct click, last click, first click, any click and linear. Sources: marketing performance and marketing reports in the Shopify Help Center.

What Shopify keeps and what it drops

  • Draft orders have an empty conversion summary
  • Orders that did not come from the Online Store or Hydrogen, with no source or landing page, have an empty summary
  • When an app or private browser blocks cookies and no source was captured, the summary is empty; headless stores and blocked cookies can give a limited summary with a source and landing page but no visit timeline
  • A session ends after 30 minutes of inactivity, and if a visitor does not buy within 30 days of a session, the first interaction referrer is reset
  • The path to purchase uses touchpoints from up to 30 days before an order, or from the customer's previous order if that was more recent
  • Marketing reports leave out test and deleted orders but include canceled, pending and unpaid ones, and chargebacks are not in the sales reports

Orders with no captured source are why so many land in Direct; the causes and fixes are in why Shopify orders show up as Direct.

How to see revenue per UTM campaign

Inside Shopify, open Performance by marketing campaign. It groups sales by campaign under Shopify's attribution model. If Ads Manager shows a different number for a campaign, see why Meta Ads purchases do not match Shopify. To see revenue per campaign after refunds, joined to the exact visit that brought each buyer, every order needs to carry the visitor who placed it, so you can match it to that visitor's tagged visits. The full method is in how to track Shopify revenue by traffic source. The steps below set it up.

A worked example: four orders

Example data, made up to show the method: an imaginary candle shop tagged its newsletter and social links and compared four orders. The UTM column is what the link carried, the Shopify column is what the order's sessions show, and the last column is the visit Virling joined to the order through the visitor ID on the cart.

OrderTotalUTM values on the linkShown on the order in ShopifyJoined visit source in Virling
#3118$64.50newsletter / email / autumn_launchnewsletter / email / autumn_launchnewsletter / email / autumn_launch
#3119$39.60instagram / social / gift_guideinstagram / social / gift_guideinstagram / social / gift_guide
#3120$91.25newsletter / email / autumn_launch, clicked 41 days before the orderDirect, no UTM parametersnewsletter / email / autumn_launch
#3121$46.30pinterest / paid_social / gift_guidepinterest / paid_social / gift_guidepinterest / paid_social / gift_guide

The buyer of #3120 clicked the newsletter link, left, and came back 41 days later by typing the address. Shopify only looks back 30 days, so the order shows as Direct. Virling credits the latest visit that was not Direct in the last 90 days, which is the newsletter click. Of the $241.65 in total, Shopify gives autumn_launch $64.50, gift_guide $85.90 and Direct $91.25; the joined visits give autumn_launch $155.75 and gift_guide $85.90. To get links like these with one spelling per source, make them in the UTM builder.

Step 1: name your UTMs

Pick one spelling for each source and medium and keep it: utm_source=newsletter and utm_source=Newsletter split one source in two. Tag every link you control with utm_source, utm_medium and utm_campaign, and use utm_content to tell apart two links in the same campaign. The UTM builder makes the links, and the rules are in which UTM parameters to use.

Step 2: check the links

Paste your campaign links into the UTM checker before they go out. It flags a missing source or medium, capitals, spaces, duplicate parameters, tags after the # and tagged internal links, which all split or lose campaign data. For buyers on Apple devices, see whether Safari removes UTM parameters.

Step 3: store the visitor ID on the cart

For a headless store, follow Shopify Hydrogen UTM tracking instead. The ID goes on the cart and needs no checkout script, so it fits with what still works for tracking under Shopify checkout extensibility. Add the Virling script to your theme so it runs on every store page; it stores the UTM tags of each landing. Then add this snippet to theme.liquid, after the Virling script. It writes the visitor ID to the cart as virling_vid, and Shopify copies cart attributes onto the order as note attributes:

<script>
addEventListener("load", function () {
  var vid = window.virling && virling.vid && virling.vid();
  if (vid) fetch("/cart/update.js", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ attributes: { virling_vid: vid } })
  });
});
</script>

Step 4: connect the store with a read-only token

In your Shopify admin, open Settings, Apps and sales channels, Develop apps, and create an app (Shopify's guide to custom apps). Under Admin API integration, give it only the read_orders scope and install it. Paste the Admin API access token, which starts with shpat_, and your your-store.myshopify.com address into Virling. Virling imports the last 60 days of orders on the first run, then new orders and refunds every minute. Details are on the Shopify integration page and in the docs.

Step 5: read revenue per campaign

On the dashboard, the Channels card shows visitors, revenue and revenue per visitor for each channel, and its Campaign tab breaks that down by utm_campaign. Refunds lower a campaign's revenue, and Shopify Subscriptions renewals keep the campaign of the customer's first payment, as attribution for Shopify subscriptions explains for coffee, supplement and box stores. To see what a campaign's revenue leaves after Shopify's fees, use the Shopify fee calculator.

Virling is open source. Self-host it free, or start the hosted version with a 14-day free trial.

Start free trial

Frequently asked questions

Does Shopify track UTM parameters?

Yes. Shopify reads UTM parameters from the URL a visitor lands on. Each session in an order's conversion details can show its UTM parameters, and traffic with a utm_campaign parameter is attributed to marketing in Shopify's marketing reports.

Where do I see UTM parameters on a Shopify order?

Open the order and find the Conversion summary section. Click View conversion details, then View full sessions. Each session can show its referral, app details and UTM parameters. Shopify says the summary can take up to 48 hours to show.

Why is the conversion summary empty on some orders?

Shopify leaves it empty for draft orders, for orders that did not come from the Online Store or Hydrogen and have no source or landing page, and when an app or private browser blocked cookies so no source was captured.

How do I see revenue per UTM campaign in Shopify?

Use the Performance by marketing campaign report, or the top performing marketing campaigns on the Attribution page. For revenue after refunds tied to each campaign, store a visitor ID on the cart and join each order to that visitor's tagged visits in your analytics.

How long does Shopify remember a UTM source?

Shopify sessions are cookie based and end after 30 minutes of inactivity. If a visitor does not buy within 30 days of a session, the first interaction referrer is reset, and the path to purchase uses touchpoints from up to 30 days before an order.

See revenue per UTM campaign for your Shopify store

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo