d
Topic
Posts:
9
10 days ago

A/B testing - help with a URL redirect??

Hi all,

Hoping to get some help to get this set up!

In short - I'm planning on duplicating my landing page, changing a few bits and then sending traffic to both pages from FB ads, so my plan is to have a page set up that I can drive traffic to and will then redirect to one of the two or three  pages at random.

To be 100% clear on exactly what I'm looking for/the longer question -

Because you're only allowed one link per ad on FB ads, I want to have a page set up which, when you land on that page, you get forwarded to one of three different pages at random. This is so I can do A/B/C split testing from Facebook ads. It should be a simple script that just selects one of the three options, doesn't need to be overly complicated at all, I just don't know how to do it myself :(

Once I have the script, I can add the various page links in as required :)

Is anyone able to help!?

Thanks so much,

Ben

i
Replies
Jason Shopify Expert freakdesign.com.au
Posts:
7986
Last edited 10 days ago

Let's say that you decide to randomly redirect a customer using JavaScript to three pages. The nature of random would mean that it's possible that only A is picked. Flip a coin 10 times, and it could be heads 10 times.

True AB testing distributes among each test equally - so not random at all. If you don't distribute equally the results from your test won't be very reliable.

This might not bother you, but worth mentioning before you go too far down this path.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
Posts:
9
10 days ago

Ah true, very good point! You're right, I should say alternating rather than randomising, thank you for that spot!

Do you know what I can use for a script that might fulfil this requirement? Or where I can find one?

Any thoughts appreciated!

Thanks,

Ben

Jason Shopify Expert freakdesign.com.au
Posts:
7986
10 days ago

Alternating would require an app to do the split.

  • Some code would ping your app,
  • the app would check the last tested index (eg, 1,2 or 3)
  • return the next index, and store that for reference for checking next time

You can't do the test with JavaScript alone since you need to record those visits across all users.

There are apps that can do A/B tests, but if you're handy with code you might be able to whip up something basic that does the above.

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
Posts:
9
9 days ago

Hmm, I'm certainly not very handy all with code unfortunately so that probably rules that out..

Do you know which apps you are thinking of? When I've looked at the options they are often wanting you to build the variants within them rather than letting you simply use different URLs.

Again any extra thoughts on this would be great!

Posts:
9
9 days ago

Actually, I've found this as a potential solution - https://github.com/danmaz74/ABalytics do you think this could be a realistic/achieveable thing to implement? Any advice or info you could give to dumb it down a bit for me at all?

Thanks for your thoughts!

Ben