Feature

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.

example.com
app.example.com
Get started

Cross-Domain Tracking

Enabled
.example.com
1

Visitor lands

example.com

?ref=john
2

Signs up

app.example.com

Cookie preserved
3

Pays (within cookie window)

app.example.com

john credited ✓

Why is This Needed?

By default, browser cookies only work on the exact website where they were created. This means a visitor tracked on example.com would appear as a completely new visitor on app.example.com.

Without cross-domain tracking, you'd lose affiliate attribution when visitors move between your marketing site and your app — meaning affiliates wouldn't get credit for sales they generated.

Without Cross-Domain Tracking

Landing Page

example.com

Tracked ✓

Visitor moves

App Subdomain

app.example.com

Lost ✗

With Cross-Domain Tracking

Tracked ✓

Landing Page

Tracked ✓

App Subdomain

Tracked ✓

Checkout

How It Works

Track visitors seamlessly as they move between your subdomains.

🔗
1

Affiliate Link Clicked

example.com?ref=john

🍪
2

Cookie Set

Stored on .example.com

3

User Converts

Even after a free trial

Result: Whether they pay immediately or after a 14-day trial, the affiliate gets credited as long as it's within your cookie duration 🎉

Simple 2-Step Setup

1

Enable in Dashboard

Go to your program settings and enable "Cross-domain tracking". Enter your domain with a dot in front:

If your websites are:

example.comandapp.example.com

Enter this as your cookie domain:

.example.com
2

Update Your Script

Add the data-domain attribute to your tracking script on all websites:

<script
  async
  src="https://revshare.so/tracking.js"
  data-program-id="YOUR_ID"
  data-domain=".example.com"
></script>

Important: Add this script to both websites to share tracking data.

Built for Modern Apps

Subdomain Support

Track across marketing sites, apps, and checkout pages

Secure Cookies

First-party cookies that respect user privacy

Zero Latency

Tracking script loads asynchronously

Browser Compatible

Works with Safari ITP and all major browsers

One Script

Same code snippet for all your domains

Full Attribution

Never lose a referral between page transitions

Using Completely Different Domains?

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

If your sites have completely different domains (like mysite.com and myapp.io), you'll need to pass the ref parameter in the URL when redirecting users between sites:

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

Ready to track across all your domains?

Don't lose affiliate attribution when visitors move between your marketing site and app. Set up cross-domain tracking in minutes.