Skip to main content
October 15, 2026
In this article, we will discuss:
  1. Tracking Activity Across Multiple Domains and Subdomains
  2. Why Cookies Don’t Work Across Domains
  3. Supported Scenarios and How to Implement Them
  4. Use Cases: Running Separate Affiliate Programs for Multiple Websites
  5. If You Need Help

Tracking Activity Across Multiple Domains and Subdomains

Understanding how your users navigate your websites is essential for accurate affiliate tracking. Before diving into the technical details, let’s clarify some key terms and scenarios:
Key Terms
  • Main Domain: Your primary website, e.g., mysite.com.
  • Subdomain: A part of your main domain, often used for apps, landing pages, or blogs, e.g., app.mysite.com or landing.mysite.com.
  • Different Domains: Completely separate websites with unique domain names, e.g., mysite.com → myothersite.com.
  • Different Locales / Top-Level Domains: Versions of your website for different countries or regions, e.g., mysite.com → mysite.es.
Imagine a user navigating your websites and completing a purchase. Understanding how the tracking works depends on where the user initially lands and where they convert.

Why Cookies Don’t Work Across Domains

The tracking script can’t follow a visitor from one domain to a completely separate one by itself—not just in Tapfiliate, but in most affiliate systems. Here’s why:
  • Cross-domain tracking limitation: Most affiliate platforms rely on first-party cookies, which only work on the domain where they are set. Cookies cannot be read across different domains for privacy and browser security reasons.
  • Top-level domain limitations: Similarly, different top-level domains (TLDs), even if they represent the same brand (e.g., .com vs .es), are treated as entirely separate sites by browsers.
In short: the tracking script alone can’t track visitors across different domains or TLDs. Your server can carry the click there instead, see Different Domains or TLDs below.

Supported Scenarios and How to Implement Them

1. Main Domain → Main Domain

Example: mysite.com → mysite.com ✅ Supported out of the box. No extra setup is required.

2. Main Domain → Subdomain

Example: mysite.com → app.mysite.com ✅ Supported out of the box. Subdomains are typically part of the same website, so tracking works automatically.

3. Subdomain → Different Subdomain

Example: landing.mysite.com → app.mysite.com ✅ Supported, but requires a small modification:
  • In this case, you must modify your click tracking code so that the cookie is placed in the main domain.
  • Modify your click tracking script by adding the cookie_domain setting as documented below:
  • The cookie domain should be set to the main domain.

4. Different Domains or TLDs

Example: mysite.com → myothersite.com, or mysite.com → mysite.es ✅ Possible, but requires a developer: the click is carried by your server, not by the cookie.
  • Keep the affiliate’s click ID on the domain where the visitor lands.
  • Add it to the link or form that takes the visitor to the other domain, and save it with the order there.
  • When the payment succeeds, create the conversion from your server with that click ID.
  • Report each sale in one place: if your server reports a sale, don’t also report it with the tracking script, on the other domain or on yours. Two reports of one sale can count it twice, and the script on the other domain looks for a click on its own domain, so the sale could also go to another affiliate.
Track sales from a custom or third-party checkout shows each step with code.

Use Cases: Running Separate Affiliate Programs for Multiple Websites

Tapfiliate allows you to manage multiple affiliate programs under a single account. Here are some examples of how this can work depending on your setup:
  1. Multiple websites on the same CMS (e.g., Shopify, WordPress)
    • Use JavaScript or REST API integration.
    • Create a separate affiliate program for each website within your account.
  2. Multiple websites on different CMS platforms
  3. Multiple custom-built websites
    • Use JavaScript or REST API integration for each site.
    • Maintain separate affiliate programs with centralized management.

If You Need Help

If you’re not sure which setup fits your websites, we’re here to help.
  • You can start by watching our pre-recorded demo to get a clearer understanding of how the platform works.
  • And of course, feel free to reach out to our team anytime — we’re always happy to help and review your specific use case together.