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.
Visitor lands
example.com
Signs up
app.example.com
Pays (within cookie window)
app.example.com
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.
Landing Page
example.com
Visitor moves
→
App Subdomain
app.example.com
Landing Page
App Subdomain
Checkout
Track visitors seamlessly as they move between your subdomains.
example.com?ref=john
Stored on .example.com
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 🎉
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.comEnter this as your cookie domain:
.example.comAdd 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.
Track across marketing sites, apps, and checkout pages
First-party cookies that respect user privacy
Tracking script loads asynchronously
Works with Safari ITP and all major browsers
Same code snippet for all your domains
Never lose a referral between page transitions
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=johnDon't lose affiliate attribution when visitors move between your marketing site and app. Set up cross-domain tracking in minutes.