A/B testing a form embedded into a non-marketo Landing Page | Community
Skip to main content
May 2, 2014
Solved

A/B testing a form embedded into a non-marketo Landing Page

  • May 2, 2014
  • 2 replies
  • 1053 views
I have a form embedded into a non-marketo Landing Page for a DM campaign that will direct the customer to the landing page. I would like to create two versions of the form to test which one is most effective.

Can this be done in Marketo?

Thanks

Daniel
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by

Hi Daniel, In Marketo you can't do tests on forms, but on pages. You're not using a Marketo page. So out of the box you can't test want you want to test.

However.... If you use a Google variant test you can. in 50% of the times you paste in the code for form 1 and the other 50% of the times the code for form 2. Obviously Google would be able to present you with the results based on the amount of conversions (thank you page). But in Marketo you could just check which form has the most form fills outs, as both receive equal amount of views.

If you're good with PHP or javascript you could also easily write a short script that randomly puts in code 1 or code 2. Example:

<?php
$whichcode =
rand(0, 1);
//which gives 0 or 1
if ($whichcode == 1) { print "code of form1"; } else { print "code of form 2"; }
?>

Please note that the example above doesn't evenly distribute 50/50.
?>

2 replies

Accepted solution
May 2, 2014

Hi Daniel, In Marketo you can't do tests on forms, but on pages. You're not using a Marketo page. So out of the box you can't test want you want to test.

However.... If you use a Google variant test you can. in 50% of the times you paste in the code for form 1 and the other 50% of the times the code for form 2. Obviously Google would be able to present you with the results based on the amount of conversions (thank you page). But in Marketo you could just check which form has the most form fills outs, as both receive equal amount of views.

If you're good with PHP or javascript you could also easily write a short script that randomly puts in code 1 or code 2. Example:

<?php
$whichcode =
rand(0, 1);
//which gives 0 or 1
if ($whichcode == 1) { print "code of form1"; } else { print "code of form 2"; }
?>

Please note that the example above doesn't evenly distribute 50/50.
?>

May 4, 2014
Brilliant, thank you!!