[Help] How To Use Netlify Split Testing Based on a Condition?

xanaIDE

Regular Member
Joined
Sep 19, 2020
Messages
270
Reaction score
151
Hello everyone,

I started using Netlify to host a static website and I really like the performance.

I'm not a techy guy, I was just using the manual deployment but I will see how to use the automatic deployment from GitHub. And maybe I will use Hugo as it seems a little bit easier for me.

What I need to try now is the split testing feature, I see that we can split the traffic randomly on multiple GitHub branches (I have never used GitHub :weep: ).

But what I need to do is split the traffic based on conditions. for example, users coming from Facebook will see the site color in blue, users from Pinterest will see the site in red, and other users will see the default version (maybe based on document.referrer?).

Is this can be done with Netlify split testing? Or is there another way of doing this?

Thank you.
 

Smackhead

Junior Member
Joined
Dec 22, 2021
Messages
187
Reaction score
88
This sounds like something you should be able to determine on the fly with a single site and save yourself the hassel. Pass something in the URL to determine referer and adjust css accordingly.
 

xanaIDE

Regular Member
Joined
Sep 19, 2020
Messages
270
Reaction score
151
This sounds like something you should be able to determine on the fly with a single site and save yourself the hassel. Pass something in the URL to determine referer and adjust css accordingly.
I just want to serve different content based on traffic source but without changing or adding anything to the URL.

For example, a user from Facebook will always see branch A, and others will see branch B.

I know I didn't give the best example, sorry for that.
 
Top