Can I Run Split Testing on Different Domains?

Created by Donald Ng, Modified on Mon, 10 Mar at 11:26 AM by Ethan Sagan Chang

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), Mida will work as long as the same Mida script with the same project key is installed on both pages.


To ensure session consistency across subdomains, we recommend adding the following script to both pages:


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


Why Is This Helpful?

  • It allows cookies to be shared across subdomains, preventing session discrepancies.

  • Ensures more accurate tracking of user interactions and conversion events.


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!



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article