How to A/B Test Aweber Lightboxes

Published on : October 23, 2016

Author:

Category: Jquery

Tag: aweber split test


 

Leads are vital for Businesses and Aweber already proved itself a vital medium to collect leads, recently we ran a split test to find out the best performing lightbox and that triggers us to get this blog post written.

In order to run A/B test in Aweber first off log into your account and then follow the instructions below

Create A/B test in aweber form

  1. Choose an email list
  2. Then click on “Sign Up Forms” menu, from the “Create A Sign Up From” green colored drop-down  select “Split Test Your Sign Up Forms” which will take you to the next step to create A/B test form.

 

Note: To create Split test you must have at least two forms.

Click on “Sign Up Form” from the “Create A Sign Up From” drop-down to have a form

You will see like this

Create New aweber form with all possible option

 

It is important to have a clear sense on the type of form you want to create, there are 4 different kinds

  1. In-line : In-line means you can place this form in any place of your web page
  2. Pop-Over : This form appears above the content on your web page
  3. Lightbox : It will show a popup with contents behind it darken
  4. Pop-Up : This type loads your form in a traditional pop-up, in a new window

 

Note: If you want A/B test with Aweber’s built-in lightbox design or default Aweber Popup design then you need to select either “Pop-up” or “Lightbox” and if you want custom popup or lightbox then you must select “In-line“ form.

Configure Split Test from:

You can test multiple forms ( they will automatically rotate ) to find out which one is performing well by defining the percentage of site visitors.

Split test form cutomization

First use a name for your split test and then enter the percentage of site visitors on the forms, here we used “Test Form 1” and “Test Form 2”. And the value 50%/50% means the probability of showing those form in the website.

Then Save the split test and it will look same as the screenshot below

Split test final form

And to understand the screenshot better, please see these points

  1. The forms we used for A/B test
  2. The statistics report of the test
  3. Use a name for the split test
  4. This is the important part, “Get HTML” will generate some codes which need to be pasted into your web page to split test those forms
  5. Reset the statistics of the A/B test

 

split-fomr-compressor

 

Aweber Form on your own lightbox :

If you don’t need custom design then just paste the code into your web page aweber will dynamically show the forms. To do this, you must select form type as “Popup” or “Lightbox”

But if you need to use custom designed forms some coding needs to be applied

Why we need custom coding on this ?

  1. The Aweber form data will come dynamically
  2. You cannot add CSS to the Aweber form

To have custom design on this dynamic data you need to write CSS based on Id of the HTML element

Aweber assigned a unique number for each form

var form_identity = jQuery("#aweber-dynamic").find('input[name="meta_web_form_id"]').val();

//And you can check the form by the following code

if(form_identity == '252641984'){
	// this is the form 1
	
	jQuery('#aweber-dynamic style').remove();
	
	jQuery("div").remove("#light-box-2-element");
	
	jQuery("#aweber-dynamic").detach().appendTo('.lightbox-1');

}else{

	// this is for the other form
	
	jQuery('#aweber-dynamic style').remove();
	
	jQuery("div").remove("#light-box-1-element");
	
	jQuery("#aweber-dynamic").detach().appendTo('.lightbox-2');

}

The structure of the HTML will be as follows to show dynamic data

<!-- Lightbox -1 Element -->

<div id="light-box-1-element">

	<!-- End Of Lightbox CSS Code -->

	<div class="lightbox-1">

		<style type="text/css" media="screen">

		/*Style Css*/

		</style>

		<!-- Content goes here -->

	</div>

</div>

<!-- Lightbox -2 Element -->

<div id="light-box-2-element">

	<!-- End Of Lightbox CSS Code -->

	<div class="lightbox-2">

		<style type="text/css" media="screen">

		/*Style Css*/

		</style>

		<!-- Content goes here -->

	</div>

</div>


<div id="aweber-dynamic">
	<script type="text/javascript" src="//forms.aweber.com/form/39/split_970256739.htm"></script>
</div>

 

Thanks and hopefully you guys will find this post useful, please forward us your questions if you have any, contact us if you need support !


Leave a Reply

Your email address will not be published. Required fields are marked *