Zen Cart Logo
Forums / General Questions / A-B Split Testing For ZenCart homepage?

A-B Split Testing For ZenCart homepage?

Locked

Views: 4,764

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
24 Aug 2008, 4:48 PM
#1
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

A-B Split Testing For ZenCart homepage?

Hello ZenCart community. I was wondering if anyone has developed an A-B Split Testing "add-on" for Zen Cart? I didn't see anything in the downloads section. This would need to cookie the visitor as well as record the IP address as to be sure the same homepage is shown to the visitor on their repeat visits to your ZenCart thus generating accurate results for conversions.

A-B split testing the homepage (among others) would be very beneficial.

Split the traffic 50%/50% and see what homepage performs better...

24 Aug 2008, 7:59 PM
#2
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

JGraphics:

Hello ZenCart community. I was wondering if anyone has developed an A-B Split Testing "add-on" for Zen Cart?

Your best bet is to use Google Website Optimizer with multivariate testing. I use it a lot with Zen Cart and it works well (and it's free).

Regards,
Christian.

21 Sep 2008, 1:19 AM
#3
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

I was wondering how you create the variant URL pages for your "homepage" in ZenCart? I would really like to move forward using the Google website optimizer.

I currently have HTML inserted in the "define main page" area of my home page, but I'm not sure how I would get Google Optimizer to see a second file and thus change the homepage for alternate site visitors?

Any help is greatly appreciated.

21 Sep 2008, 12:28 PM
#4
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

JGraphics:

I was wondering how you create the variant URL pages for your "homepage" in ZenCart?
I don't create variant URLs for pages. I use the multi-variate testing which uses the same URL for a page but varies the content.

JGraphics:

I currently have HTML inserted in the "define main page" area of my home page, but I'm not sure how I would get Google Optimizer to see a second file and thus change the homepage for alternate site visitors?
The multi-variate testing works at the HTML level to replace content. Identify which piece of HTML/content you wish to vary and place the GWO section tags around it. Then in GWO you can create new variations of that content.

Regards,
Christian.

21 Sep 2008, 5:45 PM
#5
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

I'm having a bit of trouble trying to place the GWO "Conversion Script". I would like my "checkout_success" page to be by goal conversion page.
Any idea where to place to conversion script?
I assumed I was to place it on the "checkout_success.php" file but it didn't seem to validate when I had GWO look for it.

Thanks for all the help.

21 Sep 2008, 8:40 PM
#6
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

JGraphics:

I'm having a bit of trouble trying to place the GWO "Conversion Script". I would like my "checkout_success" page to be by goal conversion page.
Any idea where to place to conversion script?
You need the conversion script to appear at the bottom of the page just before the </body> tag. To do this you need to edit the includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php file, where YOUR_TEMPLATE is the name of your template. If you don't have a tpl_main_page.php file in the common directory you'll need to copy the one from includes/templates/template_default/common first.
Just before the </body> tag at the end of the file you need to add something like the following...

<?php
if ($current_page_base == "checkout_success") {
?>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+
'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+
'.google-analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
_uacct = 'UA-1234567-8';
urchinTracker("/0123456789/goal");
</script>
<?php
}
?>
```...replace the content between the <script> </script> tags with the conversion script that GWO gives you for the test. The above code first checks that you are on the checkout_success screen and if so inserts the conversion script. I normally save the page out from my browser and then do an offline validation.

Be aware that if your test is on the main index page and your conversion is on the checkout success page it could take a long time to see meaningful results. The further apart the test and conversion are in the buying process the longer it takes to do the test. The exact time span required depends on how much traffic you get, how many conversions per day, the distance between the test and conversion, the number of combinations you are testing and the magnitude of the impact on conversion rate that the test combinations have.

Note that a conversion doesn't have to be a sale. You can test 'micro-conversions' such as people viewing a product or clicking on the Add To Cart button. For sites with lower traffic amounts and/or low conversion rates, testing micro-conversions will usually provide quicker results and gains.

I hope that helps.

Regards,
Christian.
21 Sep 2008, 9:02 PM
#7
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

Thanks again! Very much appreciated.

For my define_mainpage I have created a table using Dreamweaver and placed all my graphics inside this table. The html created is what I use for my homepage, I simply paste the html generated by Dreamweaver in the define_main_page.php file using the ZenCart tool in the admin area.

Since I'm not using headlines in my html on my homepage, I was wondering if I could place this GWO code: <script>utmx_section("Insert your section name here")</script>
before the <body> tag and this GWO code: </noscript>
after the </body> tag, thus changing the entire table full of images to a completely different table of images arranged in a different way? I guess it would be like using the GWO multivariant testing option to create a multiple split test of the homepage...?

Thanks

21 Sep 2008, 11:02 PM
#8
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

So far, I can't get GWO to validate the "Control Script" or the "Conversion Script".

I placed the Control Script at the very top of the define_main_page.php file using the define pages tool in the ZenCart admin.

I placed the Conversion Script just before the </body> tag on the tpl_main_page.php file

:frusty:

22 Sep 2008, 5:10 PM
#9
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

JGraphics:

For my define_mainpage I have created a table using Dreamweaver and placed all my graphics inside this table. The html created is what I use for my homepage, I simply paste the html generated by Dreamweaver in the define_main_page.php file using the ZenCart tool in the admin area.

Since I'm not using headlines in my html on my homepage, I was wondering if I could place this GWO code: <script>utmx_section("Insert your section name here")</script>
before the <body> tag and this GWO code: </noscript>
after the </body> tag, thus changing the entire table full of images to a completely different table of images arranged in a different way?

You can place the GWO section tags around the content that is placed into define_main_page.php but you shouldn't have <body> or </body> tags in that content. Zen Cart generates the <body></body> tags automatically, adding them into the define_main_page.php content will cause problems.

JGraphics:

So far, I can't get GWO to validate the "Control Script" or the "Conversion Script".
Are you doing live validation or offline validation? I would suggest using the offline validation. Save the website page out from your browser and then use that with the offline validation.

Regards,
Christian.

4 Nov 2008, 10:23 PM
#10
tonibarcelona avatar

tonibarcelona

Inactive

Join Date:
Feb 2007
Location:
Barcelona
Posts:
200
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

hello, cjpinder, could you explain a bit more what elements you tagged for probing with google split testing? css elements, placement elements, image elements,...?

22 Aug 2009, 2:04 AM
#11
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

I can get the "Control Script", the "Page Sections" and the "Tracking Script" to validate.
I can't seem to get the "Conversion Script" to validate. Anyone know which file I need to input this Conversion Script on?

Thanks

6 Feb 2010, 5:36 AM
#12
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

CJPinder
Do you think I need to qualify the header tracking code with an if statement as well? It just defines the function so I would not think we would need to test current_page_base for the header tracking.... what do you think?

Also, I did qualify the footer tracking code with

if ($current_page_base != "checkout_success") {
?>

<!-- Google Website Optimizer Tracking Script -->

paste footer tracking code

<!-- End of Google Website Optimizer Tracking Script --> <?php } ?>

just to save some server code reading time <g>

2 Mar 2010, 8:01 PM
#13
shaztesting avatar

shaztesting

New Zenner

Join Date:
Jun 2009
Posts:
71
Plugin Contributions:
0

Re: A-B Split Testing For ZenCart homepage?

if ($current_page_base == "checkout_success") {

we can modify this to work on any other page to run a test on. eg. index.php?main_page=contact_us

 if ($current_page_base == "contact_us") {

This works.

However what about ez pages or product pages, eg:

index.php?main_page=product_info&cPath=3&products_id=5

index.php?main_page=page&id=8

i tried these in the same manner respectively to no success:

if ($current_page_base == "product_info&cPath=3&products_id=5") {
if ($current_page_base == "page&id=8") {

any ideas?

What I am trying to do is run a split test between sending adwords traffic to either my homepage or a specific product page.

what about adding a specific string to the URL so that we can taget only visitors to the product page taking part in the split test eg. adding "_search=keyword" :

index.php?main_page=product_info&cPath=3&products_id=5_search=keyword

Would we be able to target that page with something along the lines of:

if ($current_page_base == "product_info&cPath=3&products_id=5_search=keyword") {

[CODE]

How else can i test 5 keywords and send half traffic to homepage and half to the keyword specific product page?

thanks!

3 Mar 2010, 9:53 AM
#14
data_digger avatar

data_digger

Zen Follower

Join Date:
Jan 2009
Posts:
222
Plugin Contributions:
2

Re: A-B Split Testing For ZenCart homepage?

There's mod that does A/B testing for Zen Cart. You can find it on my website here: Randomized Tests For Zen Cart. Google Web Site Optimizer has probably more features, but there are some tests that You can do with RT and can't with GWSO.