K

Cross-Domain Tracking

Track affiliate referrals across different subdomains. When visitors land on your marketing site but sign up on your app, we keep the referral data intact.

Emil Klitmose

Written by Emil Klitmose

Updated recently

Revshare automatically tracks affiliate referrals across different subdomains. When a visitor lands on your marketing site (example.com) via an affiliate link and moves to your app (app.example.com), we preserve the referral data.

Configure your cookie domain once, and Revshare handles the rest automatically.

  • Track visitors seamlessly as they move between subdomains
  • Preserve affiliate attribution across your marketing site and app
  • Works with Safari ITP and all major browsers
  • Simple setup process

What is Cross-Domain Tracking?

Cross-domain tracking lets affiliate referral cookies work across multiple subdomains. Revshare handles this automatically.

Without it, cookies only work on the exact domain where they were created. A visitor tracked on example.com would appear as new on app.example.com, losing affiliate attribution.

Revshare solves this by setting cookies on a shared domain (e.g., .example.com) that works across all subdomains.

Why is This Needed?

Many apps use separate subdomains:

  • Marketing Site example.com
  • Application app.example.com
  • Checkout checkout.example.com

By default, cookies set on example.com aren't accessible on app.example.com.

Revshare sets cookies on a shared domain (.example.com) that works across all subdomains.

How It Works

  1. Affiliate Link Clicked Visitor clicks link on example.com?ref=john
  2. Cookie Set Referral code stored on shared domain .example.com
  3. User Navigates Visitor moves to app.example.com
  4. Cookie Preserved Cookie accessible on all subdomains, referral data intact
  5. User Converts Affiliate gets credited (within cookie duration window)

Technical note: Uses first-party cookies with domain set to shared base domain (e.g., .example.com). Maintains security and privacy.

Using Completely Different Domains?

Cross-domain tracking only works when sites share the same base domain (example.com and app.example.com).

For completely different domains (mysite.com and myapp.io), pass the ref parameter in the URL:

https://myapp.io/signup?ref=john

This preserves the referral code when users move between different domains.

Need help? Works with cookie duration settings. Learn more about cookie duration.