Admin Owners – Affiliates & Aliases

Create affiliate links, review tracking, and manage system aliases. Admin-only.

Create / Update Affiliate Link

Used as URL parameter: ?aff=CODE
Use a relative path. Domain can change (e.g., audiotuninglab.com).

Affiliate Links

Partner Code Tier Destination Clicks Conversions Actions
Tracking counts are computed from recorded events. Full attribution reporting can be extended later (UTM, payouts, etc.).

System Aliases

Aliases are used by the system for routing, naming, and lookups (for example, domain aliases, product labels, or legacy token prefixes).
Type Key Value Status Actions

Tracking Snippet (for landing pages)

If your marketing site is separate from the app, add this script to your landing pages. It records clicks when ?aff=CODE is present.
<script>
  (function(){
    var p = new URLSearchParams(window.location.search);
    var aff = p.get('aff');
    if (!aff) return;
    fetch('/api/affiliate/track', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ code: aff, href: location.href, ref: document.referrer || '' })
    }).catch(function(){});
  })();
</script>