Shopify affiliate tracking sounds simple:
âĄď¸ A potential customer clicks an affiliate link âĄď¸ They buy the product âĄď¸ The affiliate gets credited.Â
But, like so many things, what sounds easy in practice can be a serious headache in reality. Cookies get blocked. Customers switch devices. Discount codes and links tell different stories. And to top it all off, Shopify's native tracking has real limitations.
Fear not, though, because in this article Iâll explain how affiliate tracking actually works under the hood, where it fails, and what setup offers the most accurate attribution đ
Why most Shopify brands have tracking gaps they don't know about
What Shopify tracks natively, and what it misses
Before I dive in, let me just clear something up:
â ď¸ Iâm not being a Catty Kathy here. Shopify is a fantastic ecommerce platform â so fantastic that we built Modash for brands with Shopify stores. But itâs not an affiliate or creator marketing solution, so it inevitably has a few shortcomings if youâre relying on it for that purpose.
Itâd be like writing a novel in WhatsApp. Sure, you could make it work, but itâs hardly ideal.
Some of Shopifyâs affiliate-related shortcomings are around tracking. Out of the box, Shopify shows sales by discount code and referral source (via UTM parameters), which is fine for a top-level overview of affiliate program performance.
But it doesnât tie together codes and referrals per affiliate, so you have to manually cross-reference discount code reports with a spreadsheet of who has which code. Itâs a pretty laborious process that just doesnât scale.
The two most common gaps: Cross-device journeys and blocked cookies
Shopify also has a couple issues with attributing affiliate sales.
For starters, it struggles with cross-device journeys. So if a customer clicks a link in an affiliateâs Instagram Story recommending your product, but then decides to complete the transaction on desktop, the creator in question wonât earn a commission for referring the sale.
Thereâs also a problem with blocked cookies, whereby sales donât get attributed back to the affiliate link â and therefore to the creator â even if the UTM parameters survive the click.
In both those scenarios, creators are generating sales but arenât being rewarded for it. Cue commission disputes and high rates of inactive affiliates đ¤Śââď¸
Why codes and links often report different numbers for the same affiliate
Even when Shopify affiliate tracking works like itâs supposed to, you can still end up with weird disparities in your numbers because of the way UTM links and discount codes function.
Hereâs a common scenario: a customer clicks an affiliate link but doesn't buy until two days later on a different device, using the creatorâs discount code at checkout. The code records the sale; the link records⌠nada.
And the reverse can happen too â the customer clicks the affiliate link and buys immediately, but forgets to enter the discount code. So the UTM link tracks the sale but thereâs nothing for the code.
Two sets of numbers, both technically âaccurateâ, but each telling a different story.
5 ways to track affiliates on ShopifyÂ
Unique affiliate links with UTM parameters
Iâve already mentioned affiliate links. Now, if youâve never used them before, Iâll explain what they are and how they work.
In a nutshell, affiliate links are unique, clickable links that you assign to individual creators. Each affiliate link contains a bunch of UTM parameters that tell analytics tools where the click came from (what platform, what creator, and sometimes additional info like what campaign).
For example, here are some Instagram Story frames from Stanley 1913 affiliate Georgia Lyon, each containing a clickable affiliate linkâŚ

âŚand hereâs a look at the link with UTM parameters identifying Georgia as the referrer đ

Unique discount codes per affiliate
Affiliate links are one of the two most common methods for tracking affiliate sales on Shopify; the other is discount codes (AKA promo codes). Again, these codes are unique to each creator. When a shopper enters a code at checkout, they receive a discount and the relevant creator earns a commission.
Hereâs an example from Sennheiser affiliate Muhd Rifqi:

Combining links and codes for higher-confidence attribution
As you can see, discount codes and affiliate links measure different things. As a general rule, codes are best for tracking sales, whereas links are best for tracking traffic. So which is right for you?
Actually, thereâs no need to think of affiliate links and promo codes as an âeither orâ decision, because it makes more sense to use both. That way, you can feel more confident about the accuracy of your affiliate sales data.
Using a Shopify-native affiliate platform for automatic attribution
Affiliate links and promo codes can only get you so far, because they still require some manual heavy lifting to make sense of the numbers.Â
Specifically, youâll have to consolidate everything in a giant spreadsheet to figure out which links and/or codes relate to which transactions. This is annoying but manageable if you only have a handful of affiliates, but totally unworkable once you start to grow your affiliate program.
Thatâs why Shopify brands that are serious about affiliate marketing end up switching to a dedicated, Shopify-native affiliate platform to handle the attribution side with zero manual effort. For example, Modashâs direct Shopify integration automatically tracks total sales, orders, revenue, and commissions per affiliate.

đ¤ Further reading: Learn more in my roundup of the 12 Best Affiliate Tracking Software Tools.Â
Server-side / postback tracking for cookieless attribution
Remember earlier, when I mentioned how blocked cookies can prevent sales from being attributed to the right creator?
One way around this is to swap UTM-based tracking for a method that doesnât rely on cookies, such as postback tracking. With postback tracking, conversion data is sent directly between two servers â your storeâs and your affiliate tracking platformâs â keeping it safe from outside interferences like ad blockers, cookie restrictions, and privacy updates.
Iâm not gonna get into the intimate technical details of setting up postback tracking here. Instead, Iâll tell you to bear in mind that some affiliate platforms handle postback tracking for you, and thatâs about all you need to know.
How to set up affiliate tracking on Shopify step by stepÂ
Step 1 â Choose your tracking method (or combination)
First up, you need to choose your preferred method of Shopify affiliate tracking from the list above. Unless youâre gonna go down the postback tracking route, the best practice here is to use both affiliate links and discount codes. That way, if thereâs an issue with one method (like the tracking cookie gets blocked or the customer forgets to use the code), you can still track the conversion via the other method.
Step 2 â Assign a unique link and code to every affiliate before they go live
Assuming you follow the best practice from the previous section, your next step is to assign unique affiliate links and discount codes to your affiliate partners.
(Plus youâll need to generate additional codes and links each time a new creator joins your program.)
Thereâs nothing to stop you doing this manually by simply coming up with your own promo codes and using a tool like Googleâs Campaign URL Builder to create unique links. But itâs pretty labor-intensive â not to mention seriously boring â if youâve got to do it for dozens or hundreds of affiliates.
The smart solution is to use a tracking tool like Modash, which lets you create unique affiliate links and Shopify promo codes with custom rules and share them with creators in just a few clicks.

Step 3 â Define your attribution window and put it in writing
Another big piece of the affiliate tracking puzzle is your attribution window: the timeline within which an affiliate earns a commission following the initial click on their UTM link.
For example, if you have a seven-day window and a customer buys six days after clicking an affiliate link, the relevant creator gets a cut of the sale. But if the conversion doesnât happen until 8+ days after the click, they earn a big fat nothing.
From a creatorâs perspective, longer attribution windows (or even better, no attribution window) will always be better, whereas brands might prefer shorter windows. Do a little competitor research before deciding yours, because you (probably) donât want to offer a significantly longer or shorter window than the average for your niche.Â
But the important thing here isnât just to define your attribution window â itâs also about communicating it to your affiliate partners to avoid disputes. Share your window with creators before they start, ideally in their affiliate onboarding docs and/or affiliate agreement.Â
Because if an affiliate knows upfront that sales are credited within seven days of the click, there's nothing to argue about later.
Step 4 â Connect affiliate activity to actual Shopify order dataÂ
Sure, you want to see that your affiliate program is producing lots of link clicks and code redemptions.
But, more importantly, you need to know how all that creator activity translates to meaningful, measurable conversion data.
Iâve already described what the manual process for doing this looks like: basically, a lot of hours staring at a spreadsheet matching codes and links to actual transactions in your Shopify backend đĽą
Far smarter to use an affiliate marketing platform like Modash, which pulls revenue and order data per affiliate direct from Shopify.
đ Try all our affiliate tracking and management tools for yourself when you create your free Modash account.
Step 5 â Set up a process for auditing commissions and handling disputes
Finally, you need to think about how youâre gonna review earned commissions to make sure youâre not overpaying affiliates. Plus youâll want a system for handling disputes (AKA creators asking âI drove that sale, why wasn't I credited?â).
Iâve never run an affiliate program myself. So I asked a couple people who have how they handle this part of the tracking process, namely:
- Melissa Sorby, former Influencer Marketing & Advocacy Manager at ALLIES OF SKIN
- Gabija JankauskÄ, former Influencer and Affiliate Marketing Manager at Son de Flor
Both told me that commission disputes are pretty uncommon because their programs were managed through an affiliate platform or network, leaving little room for mistakes or disagreements.
For example, in Modash, your affiliates can track all their earned commissions and payout statuses in real-time through our creator dashboard:

(Of course, thereâs way more scope for human error â and disputes â if youâre handling all this stuff manually.)
As for auditing, Melissa explained that she regularly reviewed performance reports in her affiliate platform against wider company sales data from Shopify to make sure everything matched up and to calculate the percentage of sales coming from creator activity. This also helped on the rare occasions when affiliates flagged up potential discrepancies.
Where Shopify affiliate tracking breaks, and how to handle it
iOS privacy changes (and what they mean for cookie-based tracking)
As you probably know, Apple has been introducing a whole raft of iOS updates designed to protect user privacy.Â
Iâm not going to explore those changes in-depth â for more info, this explainer from Reuters does a decent job â but in a nutshell they require app developers to seek user permission before tracking their journeys across other apps and websites.Â
All of which spells trouble for tools (and brands) that rely on link + cookie-based tracking.
The upshot is that code-based attribution is now often the most dependable affiliate tracking mechanism. So you donât want to rely on Shopifyâs native promo code tracking tools, which require you to manually match up codes, affiliates, orders, revenue, and commissions.
Far better to use a tool like Modash, which operationalizes promo codes through per-creator attribution, reporting, and commissions.
Tracking and storing live affiliate content
Throughout this article, Iâve used the word âtrackingâ to describe measuring the impact of affiliate marketing on website traffic and sales.
But thereâs another type of tracking thatâs important to mention, too: the process of identifying and capturing all the fantastic content your affiliates are sharing. Thereâs no way to do this in Shopify, as Melissa notes:
In other words, if you donât have dedicated software for tracking content, your only option is to manually scroll your affiliate partnersâ social feeds and take screenshots/save links yourself, then file them away on your desktop or Google Drive for future reference. If you work with more than a half-dozen-or-so influencers, this task can easily become a full-time job.
So give yourself a break and use a tool like Modash, which automatically tracks content â including Stories â featuring specific hashtags, mentions, or keywords.

Or you can activate our Event mode to pull in every post shared by specific accounts from a certain date â so even if your affiliate partners forget to add the right tags, youâll still see their content.
đ¤ Further reading: Learn more in How To Monitor Influencer Content.
Analyzing performance through video tracking (for when links + codes donât tell the story)
Imagine a shopper watches an affiliateâs Reel or TikTok or YouTube video, then goes straight to your store and buys at full price. With Shopifyâs native setup, youâre lost, because it relies đŻ on promo codes and/or links to track results.
Modash fills in an important blank here by adding content visibility. Not only do we automatically capture live content, but we also show you how it performed in terms of views and engagement.

So if you seeâŚÂ
- A spike in sales,Â
- But no upturn in affiliate link clicks or code redemptions,Â
- And you know that an affiliate video has clocked up millions of views
âŚthen you can confidently draw a connection between content performance and conversions.
Final thoughts
Shopify affiliate tracking is as easy or hard as you want it to be.
If you want to do it all manually (i.e. without any additional software), you can lean on Shopifyâs built-in analytics for basic tracking â think clicks and code redemptions. But if you want to tie that stuff to specific creators and transactions, youâre gonna have to spend a ton of time piecing everything together in a spreadsheet.
Or you can let Modashâs affiliate tracking tools do all the hard stuff for you: sharing links and codes with creators; connecting affiliate activity to sales and revenue; keeping affiliates in the loop about the commissions theyâve earned.
All of which frees you up for the stuff that really makes a difference â building stronger relationships with your creator partners đŞ
đ Try Modashâs affiliate tracking tools by creating your free account!



.avif)


.avif)
