Adsgun
Marketing & Sales

How to Track Which Influencer Drove Sales on Shopify

You work with 10 influencers but only 2 drive real sales. Learn how to use unique discount codes to track which influencer actually moves the needle.

April 20, 2026 7 min read
How to Track Which Influencer Drove Sales on Shopify

You’ve partnered with 10 influencers. Each gets a discount code to share with their audience. The codes are:

  • SAVE15
  • SAVE15
  • SAVE15
  • SAVE15
  • SAVE15
  • (and 5 more, all the same)

You run the promotion for a month. At the end, you see 400 orders with the SAVE15 code applied. But which influencer drove those 400 orders? Was it Sarah, your biggest influencer with 500K followers? Or was it Alex, your smaller influencer with 20K followers? You have no idea. This is why Shopify influencer discount codes need to be unique per creator, not shared across your entire campaign.

This is the nightmare scenario for influencer marketing. You are paying influencers, driving sales, but you cannot attribute revenue to individual influencer relationships. You cannot tell which partnerships are ROI-positive and which are costing you money.

The solution is simple: unique discount codes per influencer.

Instead of giving all 10 influencers the code SAVE15, you give:

  • Sarah: SARAH_EXCLUSIVE
  • Alex: ALEX_EXCLUSIVE
  • Jordan: JORDAN_EXCLUSIVE
  • (etc.)

Now when you see 400 orders with codes applied, you know exactly which influencer drove which orders. You can calculate ROI per influencer, double down on winners, cut ties with underperformers, and negotiate better rates with high-performers.

Why Unique Shopify Influencer Discount Codes Matter

Reason 1: Attribution Clarity

With unique codes, you know exactly which influencer drove each order. No ambiguity. No guessing.

Reason 2: ROI Calculation

You can calculate:

  • Revenue per influencer: Total orders x average order value per influencer
  • Cost per acquisition: Influencer payment / number of orders they drove
  • Profit per influencer: Revenue minus influencer cost minus COGS

Now you know if paying Sarah $1,000 for a promo is worth it. If she drives $5,000 in profit, yes. If she drives $800 in profit, no.

Reason 3: Performance Ranking

You can rank influencers by performance:

  1. Jordan: 156 orders, $15,600 revenue, $800 profit
  2. Maya: 89 orders, $8,900 revenue, $400 profit
  3. Sarah: 47 orders, $4,700 revenue, $50 profit
  4. Alex: 12 orders, $1,200 revenue, -$300 loss (unprofitable)

Now you have data to guide your strategy.

Reason 4: Repeat Partnership Decisions

If Jordan consistently outperforms, offer her higher commissions to keep her in your pipeline. If Alex consistently underperforms, do not renew the partnership.

Reason 5: Competitive Intelligence

When you use unique codes, you might notice that influencers with similar follower counts drive very different order volumes. This tells you something about their audience engagement, trust, or niche alignment, and lets you adjust your targeting accordingly.

How to Generate Unique Discount Codes in Shopify

Method 1: Manual Creation in Shopify Admin

  1. In Shopify admin, go to Discounts
  2. Click Create Discount > Discount Code
  3. Discount code: Type “SARAH_EXCLUSIVE”
  4. Type: Percentage off, amount off, free shipping, etc.
  5. Value: E.g., 15% off
  6. Applies to: All products (or specific collections)
  7. Usage limits: Optionally limit to one use per customer, or leave unlimited
  8. Active dates: Set start and end dates if time-limited
  9. Save

Repeat for each influencer (ALEX_EXCLUSIVE, JORDAN_EXCLUSIVE, etc.).

Limitation: This is manual and time-consuming if you have 50 or more influencers. For each code, you are entering the same information over and over. There is room for error.

Method 2: Bulk Code Generation via CSV

Shopify allows bulk code creation, but not through the admin UI directly. You need to use the Shopify API or a third-party app.

Using a third-party app:

  1. Install the app
  2. Specify: discount type (15% off), applies to (all products), usage limits (1 use per customer)
  3. Provide a list of code names: SARAH_EXCLUSIVE, ALEX_EXCLUSIVE, JORDAN_EXCLUSIVE, etc.
  4. The app generates all codes in bulk

This is much faster than manual creation.

How to Track Influencer Codes Using Adsgun

Adsgun simplifies the process further with its Bulk Discount Codes feature:

  1. Create one promotion in Adsgun: “Influencer Marketing 15% Off”
  2. Define the discount: 15% off all products
  3. Go to Bulk Codes section
  4. Generate unique codes: Type the influencer names or a count (e.g., “10 codes”). Adsgun generates INFLUENCER_001, INFLUENCER_002, and so on, or uses custom names like SARAH_EXCLUSIVE and ALEX_EXCLUSIVE
  5. Export the codes as a CSV or view them directly in the dashboard
  6. Share with influencers: Send each influencer their unique code

All codes are tied to one promotion. You do not have to maintain 10 separate discount entries in Shopify, but you still get per-code tracking. You can also combine this with Adsgun’s private promotion links for an even stronger attribution setup.

Step-by-Step: Tracking Influencer Performance With Unique Codes

Setup Phase (1 week before campaign)

Step 1: List Your Influencers

  • Sarah (500K followers)
  • Alex (20K followers)
  • Jordan (150K followers)
  • Maya (80K followers)
  • Erin (30K followers)

Step 2: Create Unique Codes

In Shopify admin or via Adsgun’s bulk code generator:

  • SARAH_EXCLUSIVE (15% off, all products)
  • ALEX_EXCLUSIVE (15% off, all products)
  • JORDAN_EXCLUSIVE (15% off, all products)
  • MAYA_EXCLUSIVE (15% off, all products)
  • ERIN_EXCLUSIVE (15% off, all products)

Step 3: Send to Influencers

Email each influencer their code. For example: “Hi Sarah, thanks for partnering with us! Here’s your exclusive code to share: SARAH_EXCLUSIVE. Your followers get 15% off. Let me know when you post and I’ll track the results.”

Step 4: Request Posting

Ask each influencer to post on specific dates or within a specific window so you can correlate spikes in orders with individual posts.

Campaign Phase (1 to 4 weeks)

Influencers share their codes on Instagram, TikTok, email, and other channels. Orders come in with codes applied.

If you want to go a step further, you can also assign each influencer a unique private promotion link alongside their code. The link auto-applies the code and shows discounted pricing before checkout, which tends to lift conversion. You can read more about how that works in Adsgun’s auto-apply discount guide.

Analysis Phase (End of month)

Step 1: Pull Code Performance Data

In Shopify admin, go to Discounts > [your codes] > View Usage. Or in Adsgun, view the analytics for each code:

Code Orders Revenue AOV
SARAH_EXCLUSIVE 47 $4,700 $100
ALEX_EXCLUSIVE 12 $1,200 $100
JORDAN_EXCLUSIVE 156 $15,600 $100
MAYA_EXCLUSIVE 89 $8,900 $100
ERIN_EXCLUSIVE 8 $800 $100

Shopify admin screenshot

Step 2: Calculate ROI Per Influencer

Assuming you paid each influencer a flat $500 (adjust for your actual rates):

Influencer Orders Revenue Cost Profit ROI
Sarah 47 $4,700 $500 $4,200 840%
Alex 12 $1,200 $500 $700 140%
Jordan 156 $15,600 $500 $15,100 3020%
Maya 89 $8,900 $500 $8,400 1680%
Erin 8 $800 $500 $300 60%

Analytics dashboard

Step 3: Insights

  • Jordan is a star: One of the smaller follower counts but highest ROI. Worth investing more in.
  • Maya is solid: Strong performer, good ROI.
  • Sarah underperformed: Large audience but fewer orders than expected. Her followers may not be aligned with your product.
  • Erin is barely breaking even: Smallest performance. Probably not worth renewing.

Step 4: Adjust Strategy

  • Increase Jordan’s rate or request more posts
  • Explore why Sarah underperformed (survey her audience or try a different product angle next time)
  • Cut or minimize Erin’s partnership

Combining Unique Codes With Private Promotion Links

For even better performance, combine unique codes with private promotion links:

  • Generate a unique code for each influencer (e.g., SARAH_EXCLUSIVE)
  • Generate a unique private link for each influencer through Adsgun (e.g., a link tied specifically to Sarah’s campaign)
  • When a customer clicks Sarah’s link, they automatically get the SARAH_EXCLUSIVE code applied and see strike-through pricing across the store

Now you have two layers of data:

  • Code-level tracking: Code usage tells you how many orders came from Sarah’s audience
  • Link-level tracking: Link clicks tell you audience interest and engagement before purchase

Some customers click Sarah’s link but do not purchase. Link tracking shows engagement. Code tracking shows conversion. Together, they give you a complete picture. This approach is explained in more detail in the guide to Shopify private promotions.

You can also extend this strategy across paid channels. If you are running paid ads alongside influencer campaigns, Adsgun’s URL-targeted promotions let you assign different offers to different traffic sources, with the same code-level attribution logic.

Integration With Email Marketing Platforms

If you are using Klaviyo, Omnisend, or Mailchimp, you can automate unique code delivery:

  1. Create an email template with dynamic code insertion: “Use code {{discount_code}} for 15% off”
  2. Assign a unique code per influencer or subscriber segment
  3. Each recipient sees their unique code
  4. Shopify tracks codes separately

This is more advanced but powerful for large email campaigns where you want per-segment attribution.

FAQ: Influencer Code Tracking

Q: Should I use the same discount value (15%) for all influencers?

Generally yes, for consistency. But if you are paying some influencers more, you might offer their audiences a slightly higher discount (20%) to match the increased investment.

Q: What if an influencer shares their code publicly?

That is usually fine. The code spreads beyond their core audience, but you still track it to their account. You can see if the code’s usage exceeded the influencer’s follower count, which often signals organic sharing.

Q: Can I limit each code to one use per customer?

Yes. Set usage limits in Shopify when creating each code. This prevents abuse.

Q: What if I am paying influencers on commission instead of a flat rate?

The same tracking applies. You see revenue per code, calculate commission owed per influencer, and pay accordingly. Commission-based structures are actually cleaner to manage this way.

Q: How do I know if an influencer faked traffic?

Watch for codes that generate lots of clicks (via UTM parameters in Google Analytics) but very few orders. Real influencers have audiences that convert. Fake traffic shows interest but no conversion. Also watch for unusual patterns, such as a code used 200 times but all from the same IP address.

Ready to Track Influencer Performance Precisely?

Stop guessing which influencers are worth your money. Unique discount codes give you concrete data on influencer ROI.

With Adsgun’s Bulk Discount Codes feature, generating codes for 10, 50, or 100 influencers takes minutes. Then you track each code in Shopify, see the performance, and make data-driven decisions on which partnerships to expand or end.

Start your free 7-day trial and generate your first set of influencer codes today. No credit card required.

Adsgun
Show your discounts everywhere. Adsgun displays strike-through pricing on product pages, collections, cart, and checkout — automatically.
Try Adsgun Free
Stefan Radulovic
Stefan Radulovic
Co-founder & Shopify Developer
LinkedIn
Share this article