AGENT SKILLBY FINSILABS
Influencer tracking
AT A GLANCE
Influencer tracking is an agent skill for analytics. Influencer marketing drives significant revenue but is notoriously difficult to attribute because customers often see a post, leave the platform, and purchase days later through. The finsilabs/awesome-ecommerce-skills repository on GitHub, maintained by finsilabs, has 34 stars and the MIT license. To add it, run npx skills add finsilabs/awesome-ecommerce-skills --skill influencer-tracking
- SOURCE REPOSITORY
- finsilabs/awesome-ecommerce-skills (opens GitHub in a new tab)
- REPO STARS
- SOURCE REPOSITORY
- LICENSE
- MIT
- SKILL.MD SIZE
- 8.4 KB178 LINES
QUICK ANSWER
- WHAT IT IS01
- Influencer marketing drives significant revenue but is notoriously difficult to attribute because customers often see a post, leave the platform, and purchase days later through a direct or organic channel. The value is a focused slice of influencer tracking judgment, useful when several similar skills cover the same ground.
- INPUTS02
- Context the agent needs: your goals, audience, constraints, and any source material the skill asks for.
- OUTPUT03
- A ready-to-use result: the analysis, copy, or recommendations the agent produces.
INSTALL
One command adds this skill from its source repository.
npx skills add finsilabs/awesome-ecommerce-skills --skill influencer-trackingREAD THE SKILL.MD BELOW BEFORE YOU RUN IT. SKILLS INSTRUCT YOUR AGENT.
SKILL.MD
The full file, as published in the source repository. Copy it, download it or open it on GitHub.
ON THIS PAGE · 12
Influencer Tracking#
Overview#
Influencer marketing drives significant revenue but is notoriously difficult to attribute because customers often see a post, leave the platform, and purchase days later through a direct or organic channel. The solution is using both UTM links (for web traffic) and unique discount codes (for purchase attribution) together — these two signals complement each other and provide reliable attribution across devices. Most of this setup requires no custom code.
Note: For full influencer campaign management (discovery, briefs, deliverables), see @influencer-marketplace-integration. This skill focuses purely on attribution and analytics.
When to Use This Skill#
- When managing 10+ influencer partnerships and tracking them in a spreadsheet
- When needing to prove ROI of influencer spend to leadership with first-party data
- When running gifting campaigns and needing to separate organic versus paid post attribution
- When comparing performance across platforms (Instagram, TikTok, YouTube) in a single dashboard
Core Instructions#
Step 1: Set up UTM links for each creator#
Create a unique UTM link for every influencer and campaign combination. Use Google's Campaign URL Builder at ga-dev-tools.google.com/campaign-url-builder:
| UTM Parameter | Value | Example |
|---|---|---|
utm_source | Social platform | instagram, tiktok, youtube |
utm_medium | Always influencer | influencer |
utm_campaign | Campaign name | spring-2026, black-friday |
utm_content | Creator handle | janedoe, johndoe_fitness |
Example URL: yourstore.com/?utm_source=instagram&utm_medium=influencer&utm_campaign=spring-2026&utm_content=janedoe
Shorten the link for Instagram bio use: use Bitly or a custom short domain. Store the mapping between short URL and UTM parameters in a spreadsheet.
Important: give influencers the shortened link and instruct them to place it in their link-in-bio, not in the post caption (Instagram captions do not have clickable links).
Step 2: Create unique discount codes for each creator#
Discount codes capture purchases that happen via direct/organic after the initial influencer visit — the UTM link alone misses these.
Shopify#
- Go to Shopify Admin → Discounts → Create Discount → Amount off order
- Configure:
- Discount code:
JANEDOE15(creator handle + percentage) - Discount type: Percentage — 15%
- Applies to: All products (or specific collections if needed)
- Minimum purchase requirement: $30 (to ensure positive ROI)
- Usage limits: Enable "Limit to one use per customer"
- Active dates: Set campaign start and end date
- Discount code:
- Click Save and send the code to the influencer
Pro tip: Use Shopify Flow (Plus) or an app like Glew to automatically tag orders using a specific discount code with the influencer's name — this makes attribution reporting easier.
WooCommerce#
- Go to WooCommerce → Marketing → Coupons → Add coupon
- Configure:
- Coupon code:
JANEDOE15 - Discount type: Percentage discount — 15%
- Minimum spend: $30
- Usage limit per user: 1
- Coupon expiry date: Campaign end date
- Coupon code:
- Under Restrictions → Allowed emails: optionally limit to new customers only
BigCommerce#
- Go to BigCommerce Admin → Marketing → Promotions → Create Promotion
- Set coupon code, discount amount, and usage limits
- Set an expiry date matching the campaign end date
Step 3: Track attribution in Google Analytics 4#
For all platforms, UTM tracking works through GA4 automatically:
- In GA4 → Reports → Acquisition → Traffic Acquisition: filter by
Session medium = influencerto see all influencer-driven sessions - In GA4 → Reports → Acquisition → Traffic Acquisition: add
Session campaignas a secondary dimension to compare by campaign - In GA4 → Explore → Free Form: build a report with
utm_contentas a dimension to compare creator performance
See influencer-attributed revenue:
- Go to GA4 → Reports → Monetization → Ecommerce Purchases
- Filter by
utm_medium = influencer - Add
utm_contentas a dimension to see revenue per creator
Step 4: Track discount code revenue#
Shopify#
- Go to Shopify Admin → Analytics → Reports → Discounts → Discount codes
- Filter by creator-specific codes to see revenue, order count, and usage per influencer
- For a comparison view: Analytics → Custom Reports → Orders → group by discount code
WooCommerce#
- Go to WooCommerce → Analytics → Coupons
- Filter by influencer-specific coupon codes to see revenue and orders
- Or install Metorik ($50/mo) for more advanced coupon attribution reporting
Step 5: Build a creator performance tracker#
Combine UTM revenue (from GA4) and discount code revenue (from Shopify/WooCommerce) in a single tracking spreadsheet:
| Creator | Platform | Campaign | UTM Revenue | Code Revenue | Total Revenue | Cost | ROAS |
|---|---|---|---|---|---|---|---|
| @janedoe | Spring 2026 | $840 | $1,200 | $2,040 | $500 | 4.1x | |
| @johndoe | TikTok | Spring 2026 | $320 | $680 | $1,000 | $300 | 3.3x |
ROAS calculation: Total Revenue ÷ Campaign Cost (flat fee + COGS of gifted product + commission paid)
Normalize by reach for fair comparison between micro and macro influencers:
- Revenue per 1,000 followers = Total Revenue / (Follower Count / 1,000)
- This metric often reveals that micro-influencers outperform macro-influencers significantly
Step 6: For headless stores — capture first-touch attribution#
Standard last-click UTM attribution in GA4 misses influencer impact. Capture first-touch UTM data server-side:
// On page load, store the first UTM touch in a session cookie
function captureFirstTouchUTM() {
const params = new URLSearchParams(window.location.search);
if (!params.get('utm_source')) return;
// Only store if no first-touch already captured this session
if (!sessionStorage.getItem('first_touch_utm')) {
sessionStorage.setItem('first_touch_utm', JSON.stringify({
utm_source: params.get('utm_source'),
utm_medium: params.get('utm_medium'),
utm_campaign: params.get('utm_campaign'),
utm_content: params.get('utm_content'),
landed_at: new Date().toISOString(),
}));
}
}
// At checkout, include first-touch UTM in the order metadata
// Store in your order database for reportingBest Practices#
- Always use both UTM links and promo codes — UTM tracks web traffic; codes capture purchases that happen days later via direct or organic
- Use
utm_contentfor the influencer handle — this lets you compare performance by creator within a single campaign (e.g., 20 influencers in the same spring campaign) - For Instagram, links must go in bio — give influencers a link-in-bio URL and tell them to reference "link in bio" in their caption; caption links are not clickable
- Set campaign end dates on promo codes — expires influencer discounts automatically and prevents long-term code sharing on coupon sites
- Track gifting value as campaign cost — gifted products have COGS; include this in your ROAS calculation
- Compare EMV (Earned Media Value) alongside revenue — high-reach posts with lower conversion may still justify spend as brand awareness
Common Pitfalls#
| Problem | Solution |
|---|---|
| Promo codes shared on coupon/deal sites | Add per-customer usage limit (1 per customer) and monitor daily usage velocity for spikes |
| UTM attribution lost when customer uses a different device | Supplement UTM tracking with promo codes as a device-agnostic signal |
| No way to compare micro-influencers vs. macro-influencers fairly | Calculate revenue per 1,000 followers (normalized RPM) to compare across follower counts |
| Influencer posts after campaign end date | Add a 7-day grace period to your code expiry; store first_attributed_order_at to detect late posts |
| GA4 shows organic instead of influencer for returning customers | Use first-touch attribution model in GA4 Explore or compare against discount code data |
Related Skills#
- @influencer-marketplace-integration
- @affiliate-program
- @marketing-attribution-dashboard
- @social-commerce
- @ugc-campaign-management
FAQ
07 QUESTIONS
01What is the Influencer tracking agent skill?
Influencer marketing drives significant revenue but is notoriously difficult to attribute because customers often see a post, leave the platform, and purchase days later through a direct or organic channel. It is listed under analytics and social media in the 100xLab agent skills directory.
02How do I install Influencer tracking in Cursor, Claude Code, or Codex?
Run npx skills add finsilabs/awesome-ecommerce-skills --skill influencer-tracking in the project where you want it, then ask your agent for the skill by name. The --skill flag installs only Influencer tracking, not every skill in the repository.
03What does the Influencer tracking SKILL.md cover?
The SKILL.md includes sections on Overview, When to Use This Skill, Core Instructions, Step 1: Set up UTM links for each creator, Step 2: Create unique discount codes for each creator and Step 3: Track attribution in Google Analytics 4. Read the full text on this page or in plain markdown at /resources/agent-skills/finsilabs-awesome-ecommerce-skills--influencer-tracking--c5ed4f/raw.
04Which agents can use Influencer tracking?
Influencer tracking installs with the cross-agent skills installer (npx skills add), which sets it up for agents such as Claude Code, Cursor and Codex. Each agent loads the SKILL.md when you ask for the skill by name.
05What license is Influencer tracking under?
The finsilabs/awesome-ecommerce-skills repository declares the MIT license. Read the license file in the repository before you copy or redistribute the skill.
06Is Influencer tracking free to use?
Reading, copying and installing Influencer tracking costs nothing: it is published in a public GitHub repository under the MIT license. Reuse and redistribution follow that license.
07Where is the source of Influencer tracking?
Influencer tracking comes from https://github.com/finsilabs/awesome-ecommerce-skills, which has 34 GitHub stars. The SKILL.md is at https://github.com/finsilabs/awesome-ecommerce-skills/blob/HEAD/skills/marketing-growth/influencer-tracking/SKILL.md. The author is finsilabs.
Need an agent workflow built around your stack?
Tell us the workflow you want automated. We reply within 4 working hours (IST).
ATTRIBUTION
Influencer tracking was written by its original authors and is published in finsilabs/awesome-ecommerce-skills (opens GitHub in a new tab) under the MIT license. All rights stay with the original authors.
100xLab did not write, maintain or endorse this skill. This page lists it for discovery. Repo stars belong to the source repository, not to the skill. Review any skill before you install it.