Category Archives: Google

How to setup A/B Testing on your site using Google Analytics

Cutting to the chase as always.  The “Why” you would want to do A/B Testing will be covered in a separate post but once you have the “Why”, here’s the “How”:

[0. Make sure you have Google Analytics installed on your site]

1. Create a separate version of your website with the variation you want to produce on a separate url e.g. if your homepage is www.example.com, you might upload a new page to your site called www.example.com/?abtest=1 or www.example.com/index2.html.  The naming convention is completely up to you.

2. Decide what goal you want your user to complete on the site, place an order? fill in a contact form? connect to live chat? etc.  You can track the goal completion by doing one of the following: 1. Have the user access a particular page (e.g. thankyou.html or ordersuccess.html etc); 2. Have the user stay on the page for a specific duration; 3. Have the user access x pages per visit; 4. Have the user perform a particular event e.g. play a video, click a button etc.  For options 2 and 3, you can let Google handle this.  For option 1, you need to have your developer setup the page with Google Analytics on.  For option 4, you need to use Google Events, here are the instructions

2. Go to http://www.google.com/analytics, login and find the data for your site.

3. On the left menu click Behaviour –> Experiments

4. Click Create Experiment and go through the setup wizard.  (NB: if your goal is not already setup in Google Analytics, you will need to set that up by clicking “Create new objective” in the setup wizard)

5. Insert to your page (just after the opening <head> tag) the code the Create Experiment wizard gives you.

6. That’s it, you’re done.  You should see data coming in within 1 – 2 days.

How to upload your PHP application to Google’s App Engine in 3 steps

The Google Tutorials are so good for this, anything we write here would only add to the noise so here are Google’s 3 steps you need to upload your Application to Google’s PHP App Engine:

1. Follow this: https://developers.google.com/appengine/docs/php/gettingstarted/introduction

2. To be able to push to code live via GIT follow this: https://developers.google.com/appengine/docs/push-to-deploy

Now your app will be hosted on an appspot.com subdomain and can be updated by pushing code to the GIT server, great!

3. To get rid of the appspot.com subdomain, follow this: https://developers.google.com/appengine/docs/domain [make sure you click the Sign up for Google Apps link on the right if you haven’t already]

And you’re done! There now, that was easy wasn’t it?