https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
g

gentle-motorcycle-63415

02/13/2024, 4:58 PM
Hello everyone, I've noticed an issue with uneven traffic distribution between two landing pages during A/B testing with GrowthBook. We set it to have a 50/50 split, but the distribution seems way off (see screenshot). I'm using a simple JavaScript redirect in the control page to handle the redirection which I know is not the best approach. Could this approach be causing the uneven split? Has anyone encountered this before or have insights on adjusting the settings to ensure an even split? Any advice or resources would be greatly appreciated! An example of the redirection I'm using:
Copy code
if (window.location.search && !window.location.search.includes('edit_mode')) {
    window.location.href = '<https://www.domain.com/variant-landing-page>' +  window.location.search
}
f

future-teacher-7046

02/13/2024, 5:00 PM
Hi Julio, yes a redirect like that could cause traffic issues. If the redirect happens before the tracking event can be sent to your analytics tool, then the experiment exposure event will not be recorded and the user won't be included in the analysis. The safest solution is to add a small delay before redirecting
👍 1
11 Views