Prusak.com

Serving up my thoughts since 2004

Tag: Google Website Optimizer

Google Website Optimizer with forms using POST

One of the limitations of using a standard A/B split test is that it won’t work out of the box if the page you are testing is the “action” page for a form that uses method=POST.

For example, lets say you have a simple form page – form.html that looks something like this:

Address <input type=text name='address'>

You’ve created process_form_2.php to split test against process_form_1.php.

The problem is that when process_form_1.php redirects to process_form_2.php, you will have lost all of your form data since your form uses POST.

There are two solutions for this:

1. Switch from method=POST to method=GET.
If this is an option, it’s probably the easiest solution.

2. Setup the experiment as a multivariate experiment and change the form action line in the HTML.
For example:

<script>utm_section('form action')</script>
</noscript>

and then in the experiment setup, add a variation like this:

<form action='process_form_2.php' method='POST'>

Hope this helps.
Ophir

Google Website Optimizer Video Tutorial

Google Website Optimizer Tutorial
A few months ago a created a Google Website Optimizer Video Tutorial

I really didn’t do much with it, and since then they’ve slightly updated the interface.

The good thing is that it provides a step-by-step guide explaining exactly how to setup a test, as well as some interesting background information and common mistakes to avoid.

If you find it helpful, please let me know.

Check it out Here.

Ophir

© 2019 Prusak.com

Theme by Anders NorenUp ↑