Skip to main content

Can I Run Split Testing on Different Domains?

Yes! You can run split testing on different domains or subdomains using Mida. However, there are some key differences in how session tracking works between subdomains and entirely separate domains.

Running Split Tests on Different Subdomains

If your control and variant pages are on different subdomains (e.g., example.com and sub.example.com), install the same Mida script with the same project key on both pages. No extra setup is needed.

Mida automatically sets its visitor cookie on your root domain (e.g., .example.com), so visitors keep the same ID and the same variant as they move between subdomains, and conversions are credited to the right variant.

Advanced: Setting the Cookie Domain Manually

If you want to force a specific cookie domain instead of the automatic detection, add this script above the Mida script on each page:

<script>window.cookie_domain = '.yourdomain.com';</script>

Replace yourdomain.com with your root domain and keep the leading dot. Most sites never need this.

Running Split Tests on Completely Different Domains

If your control and variant pages are on entirely different domains (e.g., example.com and anotherdomain.com), Mida will still work, but session consistency may not be maintained over a longer period of time.

Key Considerations:

  • Mida can still identify users between two different domains over a short period.

  • Since browsers do not allow cookie sharing between different domains, sessions cannot be reliably transferred across them.

Note: While Mida will still function, testing across different domains comes with limitations in session tracking. Let us know if you need guidance on the best setup for your experiment!

Did this answer your question?