Online Marketing

Setup A/B Testing with Google Analytics Experiments

In short, a be testing is just a way for you to test two versions or more of a specific page on your website. In order to try to figure out how you can convert and make your users or help your users more correctly achieve the goal, so you know a create more sales, maybe as that goal or fill up more forms or stuff like that, so basically trying to test Out different versions of your pages of your coding of your design in order to have your users convert better and you be able to achieve your business goals and better way, so pretty straightforward.

So what we did before we dive into how to actually set it up. What we wanted to test out is this, this one page and this battery priceless page and what our actual goal is is to have people actually from the price list. Click on start here and actually move forward in in order to purchase a battery. So what we did is we created one very simple change, which is: this is the original page and what we did on these is test pages.

We enlarged this start here button in order to gather more attention in to actually get more clicks. So our goal is to actually gather more clicks. If you see on our new page, the button is basically larger, so we did one simple change not much to it. So, basically, now what we need to do is we need to add one more thing before we set it up and what we want to do is set up some kind of basically some event tracking okay.

So we want to track that someone actually clicks on this button to be able to monitor if the new page is doing better or not okay. So what we’re going to have to do is tag this so step. One is we’re going to have to go to these two pages and tag this specific button. Okay, so what I’m going to do? Actually, I’m just going to take some event tracking code from an existing page, okay and we’re going to copy that okay, so you’re, basically going to add to let’s go all the way to right here.

So what you’re going to want to do is go to the code of the pages and I’ll show you how to do that. Okay! So now we’re on our FTP client right here and I’m going to edit some of the pages so battery battery price list. Let’s go here, and this is our original page with the underscore list at the end and where we have our button, which is this specific button right here start here. Basically, so it’s basically, this specific start here button we’re going to add to the a tag to the link tag, we’re going to add the following event: tracking on click so on click, push track, event, click and then we’re going to call it.

Let’s say the start here start here: battery okay and then yes, as far as it clicks, so that’s kind of the actual value itself. So now we’re going to save this we’re going to do it on the other one as well. Okay, so we’re going to go here, save and we’re going to do it on the new page we created, which is called battery price. Okay, we’re going to do it again here and the same exact event: okay and battery yes, okay, perfect! So now, let’s just test out the pages that they look okay.

This is fine, and this is fine. Okay, perfect, so now that we have that before we go into the actual area, just want to make sure we have our screen sharing. Yes, we do so what we want to do is go to the analytics and set up a goal. First of all, so we know that we’re actually tracking goals and in the a/b testing we’ll be able to actually set up our definition to see to actually monitor so I’m going to go to admin right here and go to goals.

Of course, make sure my domain is select and create a first goal, and this goal will be battery start here. Click on ok, so I know someone actually went to the the start here. Button went to the next page and I’m going to go to event right here and click on Nick so because we added an event of the click. Now, I’m going to actually have to add this information. So if you remember the category and I Caillou pasted it right here – is called click, so I’m going to paste this under category the action is start here and that’s it I mean I can put the label yes, but this should be fine.

Okay, so equals 2 equals 2. No problem now use the event value as the goal value for the conversion. That’s fine. We can keep it and if I click on verify, nothing will show because we just included that, but it’s a good thing to try to verify. Always what you do so, I’m going to click on, create a goal. Ok and the goal name is battery start here. Click on ok! So now we’re ready to start. Of course.

Do you want to test it in everything, but we’re ready to go. So if I go back to the reporting – and I go to the behavior tab right here – into experiments, you’ll get to this page so now he’s here: here’s where we’re actually setting it up. So our a so first of all, you want to put the page. You want to improve the original page, I’m going to copy this. Okay and it’ll give a preview, so you make sure you actually have the right page, which is really nice as preview and I’m going to click on start experimenting.

Ok, now we need to name it. So, let’s call it just a name that is helpful for us just in case we have multiple experiments, so battery price list get start here, clicks. Ok, that’s what we’re trying to do now. A second ago we set up the the event tracking and the goal. So I’m going to go here, go to goal set one and make sure I click on the one that we actually want to track when we actually setup okay, so battery start here clicked on goal number one.

Now we’re going to set up the percentage of traffic to experiment, hundred-percent, email notifications, if something important changes, of course and Advanced Options. We typically don’t touch those, but you can change that. The the setting here a minimum time for experiment the the longer the better. The more traffic you have obviously better will keep it at two weeks and will keep the confidence threshold at what google recommends.

So, let’s click on next okay. So now this is our original page. It looks now we have to insert the new page. We created right here, okay and we’ll call it just variation one. You can name it whatever. You want, maybe variation, one large button or maybe larger button. Okay. Now we can see it. You can compare the small button to the larger one and, let’s click – and here you can add more variations, but right now we just want to do a/b, just two versions: the original versus the new page.

We want to test out okay, so now it shows you again the the previews, it looks fine. The button is here and now we have to go to the actual insertion of code. So if you click on the insertion of code, it says here: okay, please put it in the opening tag at the top of the head tag, so you got to do that definitely has to be above your original Google Analytics code. So, first of all, of course, I’m just going to show you that the regular Analytics code is on the page.

It’s right here. Obviously you need this Analytics code on all of your pages, your original your test and everything. Now what you need to do is copy. This and insert it only on the original page, not on a new test page or anything like that right. So I’m going to copy this and I’m going to insert that to the original page right, the one that we’re trying to make it better right. So I’m going to go here and here’s the head tag, I’m inserting right after the head, I’m going to save it, okay and just make sure that it actually did catch.

Let’s check out code – and it’s here perfect. So now, let’s see if we can move forward. Let’s click on next step and now we’re going to verify that the code is actually implemented. So here it’ll tell you that actually found on the original, both the regular Analytics tracking code and the experimental code, exactly how it asks us and the variation is well found. The regular code, so that’s basically it everything worked out correctly.

All we do here is click on start experiment, and it says here: experiment launch so anytime. You want to actually go to it. You’ll have the status you can edit it. You can pause it stuff, like that and you’ll have some more details. So in another article, when you click on it after a few days a day at 2:00, 3:00 you’ll have some data as far as the goal, the goal percentage of each one, the variation versus the original probability and the conclusions of course.

So that’s it. So we set it up. I hope you guys enjoyed this article and if you guys have any questions with experiments, a B testing we’ll be happy to help. Please you know, comment and ask me any questions be happy to help and we’ll we will be creating more articles about experiments about diagnosing and looking at the actual data and, of course, some blog posts about it. Thank you very much appreciated.


By Jimmy Dagger

Find out my interests on my awesome blog!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.