Skip to content
AE DIGITAL
Analytics & TrackingBy 6 min read

Discount codes for influencers and partners: measuring the sales UTMs miss

How to use discount codes to attribute sales to influencers and partners: one code per partner, Shopify and GA4 reports, leaked codes and paying partners on the right numbers.

Article cover: the word “UTM” next to a glowing icon on a violet space background

Why UTMs fall short with influencers and partners

UTMs work when someone clicks a link and buys in the same session, or at least in the same browser with cookie consent. With influencers this happens less often than you would think. Someone sees an Instagram story, does not tap, searches for the store on Google from their laptop the next day and buys. In GA4 that sale shows up as organic search or direct traffic. The same applies to podcasts, videos without a clickable link, and partner newsletters read on one device with the purchase made on another.

A discount code works on a different level: it does not measure the click, it measures what the customer tells you. If they enter GIULIA10 at checkout, you know Giulia's content played a part, whatever the technical path. It does not replace UTMs, which remain the basis for all other traffic (see our UTM naming conventions), but it is a second attribution source that covers their blind spot.

One code per partner: how to set it up

The rule is simple: one code per partner and per campaign. If two influencers share a code, or a partner uses the same code for a whole year, the data supports no decision at all.

A naming convention before you hand codes out

Decide the format before the first code goes out. For example: partner name, discount value and, if needed, the campaign, such as GIULIA10 or GIULIA-XMAS15. Avoid generic codes like XMAS20 for a partner, because they are the first to be guessed or copied. In Shopify, set start and end dates and decide which other discounts the code can combine with: your discount combination rules affect both margin and how you will read the reports.

Codes and shareable links together

For each code, Shopify creates a shareable link in the format /discount/CODE, which applies the discount to the cart automatically. You can add ?redirect= to send people to a product or collection and attach the link to a marketing campaign, so the traffic carries UTM parameters. In practice the partner uses the link wherever possible (bio, link stickers, video descriptions) and the spoken or written code where there is no link. Clicks end up in campaign reports, code usage in discount reports.

Reading codes in Shopify and GA4

The Shopify report

Under Analytics > Reports you will find the Sales by discount code report, which groups sales by discount name and shows method (code or automatic), type, number of orders and total sales. Two details to know before copying numbers into a spreadsheet:

  • if discounts can be combined, the same order appears on several rows, one for each discount applied;
  • the sales value covers only the line items affected by the discount, not the whole order.

For a clean count per partner, export orders with the discount code field and calculate totals from there.

GA4

GA4 has an Order coupon dimension, populated by the coupon parameter sent with the purchase event, and a dedicated report with purchases and revenue per coupon. Many Shopify implementations do not send that parameter, though. Place a test order with a code, check it in DebugView and, if the parameter is missing, consider adding it: having the code and traffic source in the same row shows how many sales with an influencer's code came from organic search or direct, in other words how much UTMs alone were underestimating. If you already run server-side attribution, pass the code there too.

Reporting per partner

A useful monthly report for each partner contains:

  1. orders with the code and net sales (excluding VAT and shipping);
  2. returns and refunds on those orders;
  3. share of new customers versus existing ones;
  4. average order value compared with the store average;
  5. partner cost: fee, gifted products, discount given;
  6. clicks from UTM-tagged links, to compare the two sources.

The third point is the one that changes decisions. An influencer whose codes are mostly used by existing customers is giving a discount to people who would have bought anyway.

Codes shared online

Sooner or later a code ends up on a coupon site or in a deals group. From then on, people who never saw the partner's content use it, and the data loses its meaning. Typical signs: more redemptions without any new content published, many orders with the code from users who never visited the partner's links, and searches like "store name discount code" in Search Console.

There are three possible responses: deactivate the code and create a new one, limit it to one use per customer, or separate public use from measured use. For emails to your own subscribers, the most reliable option is unique codes per contact; for influencers, one code per campaign with a short validity.

Paying partners on the right numbers

When pay depends on sales, write down in the agreement how sales are counted. Points to settle:

  • the base: net sales excluding VAT and shipping, not the total collected;
  • the timing: after the return period closes, not on the order date;
  • what counts: only orders with the code, only UTM clicks, or both without duplicates;
  • what happens if the code appears on coupon sites.

Keep in mind that content with paid codes and links is advertising: in its Influencer Legal Hub, the European Commission reminds creators that brand partnerships and affiliate marketing must be disclosed. Include this in the agreement; detailed rules vary by country and this is not legal advice.

The limits of code-based attribution

A code only measures people who use it. Anyone who pays full price after seeing the content is not counted, so the figure is a minimum, not the total. Conversely, a sale with a code may already be claimed by Meta Ads or Google Ads if the same person clicked an ad: adding up channel reports gives you more than your real sales. That is why codes should be read alongside your other data, not instead of it.

If you want a single report that combines codes, UTMs and net orders without counting the same sales twice, get in touch and we will start from the data you already have.

Frequently asked questions

Why are UTMs not enough to measure influencers?

Because many people see the content without clicking a link, buy days later on another device or decline cookies. In all these cases the sale ends up as direct or another channel. The discount code brings it back to the partner when the customer uses it at checkout.

How do I see sales by discount code in Shopify?

With the Sales by discount code report, which groups sales by discount name and shows orders and total sales. If discounts combine, the same order can appear on several rows, and the sales value covers only the line items the discount affected.

Does GA4 show the discount codes used in purchases?

Yes, if your tracking sends the coupon parameter with the purchase event: the code then appears in the Order coupon dimension and the related report. Many implementations do not send it, so check in DebugView with a test order.

What should I do if an influencer's code ends up on coupon sites?

The code stops measuring that partner, because people who never followed them use it too. Deactivate it and create a new one, or separate public use from measured use with shareable links and, for email, unique codes per contact.

Sources

  1. Sales reports (Sales by discount code) — Shopify Help Center
  2. Sharing discount codes — Shopify Help Center
  3. Apply a discount to an ecommerce event — Google for Developers
  4. [GA4] Order coupons report — Google Analytics Help
  5. Influencer Legal Hub — European Commission

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us