All guides
Program guide

One platform for affiliate links, influencer promotions, and internal URL tracking

Most teams track affiliates in one tool, influencers in a spreadsheet, and internal campaign links in GA4. None of them talk to each other. Revenue attribution is a mess. This guide shows how to run all three through a single tracking layer so you have one source of truth for every link that drives a sale.

1. The three link types and why they need the same layer

Affiliate links: external partners who earn commission. Influencer links: creators who earn flat fee or commission. Internal links: your own campaigns (email, paid, social) that you want tied to revenue. All three need click logging, session persistence, and conversion attribution. The only difference is commission rate (affiliates and influencers get paid, internal links don't). One platform handles all three with the same sessionId -> orderRef pipeline.

2. Structure: one vendor, three partner types

In Tradly Attribution, create one vendor (your brand). Add all partners under it: affiliates at their negotiated rate (e.g. 15%), influencers at their rate (e.g. 10%), and internal 'partners' at 0% commission (just for tracking). Internal campaign links track to revenue without triggering payout. You get the attribution data without the commission overhead.

// Affiliate partner
{ "name": "TechBlog.com", "email": "affiliate@techblog.com", "commissionRate": 15 }

// Influencer partner
{ "name": "@sarah_creator", "email": "sarah@mgmt.com", "commissionRate": 10 }

// Internal campaign (no payout)
{ "name": "Email Campaign Q4", "email": "internal@yourcompany.com", "commissionRate": 0 }

3. Naming convention for links

Use a consistent slug pattern so your dashboard stays readable at scale. Recommended: {type}-{source}-{campaign}-{month}. e.g. aff-techblog-homepage-oct, inf-sarah-unboxing-oct, int-email-black-friday-oct. Tradly's stats endpoint returns per-link click and conversion data, so clean slugs make your monthly report self-explanatory.

4. Single conversion event, all links attributed

The checkout fires one conversion event with the sessionId from whichever tracking link the visitor last clicked. Tradly looks up which partner owned that click and assigns the commission at that partner's rate. You don't need separate conversion code for affiliates vs influencers vs internal — the click-to-partner mapping is handled server-side.

// One conversion event handles all link types
fetch('/api/public/conversions', {
  method: 'POST',
  headers: {'Content-Type':'application/json'},
  body: JSON.stringify({
    conversionKey: 'ck_your_key',
    sessionId: localStorage.getItem('tradly_sid'), // set by whichever link was clicked
    orderRef: order.id,
    eventId: order.id, // dedupe key
    amount: order.total,
    currency: 'USD'
  })
});

Implementation checklist

  • One vendor created for your brand
  • All affiliates added as partners with their commission rates
  • All influencers added as partners with their rates
  • Internal campaign 'partners' added at 0% commission rate
  • Tracking links created with consistent slug naming convention
  • Single conversion event fires on checkout with sessionId
  • Monthly dashboard view: revenue by partner type (filter by commission rate or tag)

FAQ

Can I see affiliates separately from influencers in the dashboard?

Use a naming convention in the partner name or slug to group them. Filter by slug prefix (aff-, inf-, int-) in your export. A future tag/group feature is on the roadmap.

What if a visitor clicks an affiliate link then an influencer link before buying?

Last-click attribution applies by default: the most recent click before purchase gets the commission. You can switch to first-click in Attribution Settings. Multi-touch is not currently supported but first-click and last-click cover most use cases.

Can internal tracking links feed into GA4 or Segment?

Yes. Append utm_source, utm_medium, utm_campaign to your tracking link destination URL. Tradly redirects with those params intact, so GA4 picks them up as a campaign source while Tradly independently tracks the conversion.

How many links can I create?

Unlimited. Each partner can have unlimited links. There is no per-link fee. The only constraint is server storage, which is negligible (each click row is ~200 bytes in SQLite).

Related guides and tools

  • Cross-Promotion Tracking

    Track internal cross-promotion across websites and mobile apps with campaign links, smart routing, click measurement, and conversion attribution.

  • Affiliate Click Conversion Tracking

    Learn how to connect affiliate links, partner clicks, sessions, conversions, and commissions in one reliable attribution workflow.

  • Free Attribution Platform

    Impact, PartnerStack, and Tune charge $500-2000/month. Tradly Attribution is open source and free to self-host. Here's what you get, what you give up, and when free is the right call.

  • Influencer URL Tracking

    Track every influencer's unique link, see exactly which promotions drive purchases, and pay commissions automatically — without paying for an influencer platform.

Explore Tradly Attribution, an affiliate attribution platform for partner campaigns, tracking links, conversions, and payouts. See the affiliate attribution features or tracking API. Fix it: Shopify field map · Measure gap: GA4 join SQL · Estimate impact: Calculator.