Back to Blog
Guides

Shopify Attribution Tracking Setup: The 5 Steps

P
Peilt Team
January 2, 20266 min read

Attribution only works when three things are in place: Peilt knows your orders, it sees what visitors do before they buy, and it knows what you spend. This guide walks through the five steps in the order Peilt's own setup checklist uses. Each step takes a little care, and none is automatic.

Step 1: Install the Shopify app

Connect your shop to Peilt. Enter your store name, approve the Peilt app in Shopify and return to Peilt. Once the shop is connected, Peilt imports your products, orders, customers and collections from Shopify. The import takes time, and Peilt shows its progress on the Setup Status page.

Step 2: Add the tracking script

The tracking script records visits and marketing parameters. It must be on every page where a visitor can land.

  • Your Shopify store: copy the script from Peilt and paste it into your theme's theme.liquid file, before the closing </head> tag. This is a manual edit of your theme. Peilt walks you through it with a copy button.
  • Landing pages outside Shopify: add the same script to the <head> of each page. The account ID is already filled in for your shop.

To check a page, use the tracking test on the Setup Status page: enter a URL and Peilt tells you whether it found the script and whether an event arrived.

If you switch themes later, add the script to the new theme as well.

Step 3: Connect your costs

Connect every platform you spend money on: ad platforms, affiliate networks and email tools. Peilt imports the spend, so it can show ROAS and cost per order next to the revenue it attributes. Without costs, you see where orders come from, but not what they cost.

Step 4: Add tracking parameters to your ads

Ad platforms can insert campaign, ad set and ad IDs into every click through placeholders such as {campaignid}. With these parameters, Peilt attributes orders down to the single ad instead of stopping at the campaign.

  • plt_* parameters are specific to Peilt and take top priority for ad set, ad and creative.
  • utm_* parameters provide source and campaign as a fallback. Use lowercase and the same spelling every time, so one campaign does not show up under three names.
  • Do not add UTM parameters to links on your own pages. A UTM value on an internal link replaces the visitor's real source and moves the sale to the wrong channel.

Parameters only apply to clicks from the moment you save them in the ad platform. Earlier clicks are not changed. Peilt provides ready-made templates for Google Ads, Meta, TikTok, Reddit and Pinterest in its Tracking Setup page.

Step 5: Check your setup

The Setup Status page runs four checks:

CheckDone when
Shop connectedYour Shopify store is connected to Peilt.
Tracking scriptPeilt received events from your store or landing pages in the last 30 days.
First conversionsAt least one order in the last 30 days was matched to a visitor journey.
Marketing costsAt least one connection is active.

An open check shows what is missing and, in most cases, links to where you fix it.

After the setup

  • Start with the dashboard for revenue, orders and spend.
  • Open Sources to see which channels and campaigns bring revenue, and switch between Last-Click and First-Click to see which close and which open journeys.
  • Expect platform numbers to differ from Peilt. Each platform counts in its own window and claims every order it can; Peilt counts every order once.

Related reading

Share this article:

Ready to See Where Your Revenue Really Comes From?

Follow customer journeys across your online channels and decide where to move budget.

Join the Waitlist
Works with every Shopify plan that has a theme
15 attribution models
Ad, affiliate and email costs in one place