Here are the instructions on how to setup a success conversion event to fire using a Custom Event on your page.
The Custom Event is useful when you would like to trigger a conversion on a page load (similar to how Facebook Custom Events) or when someone clicks a button or a link on the page.
Note: If you find these instructions complex to understand, please send these instructions to your web developer.
Setup Custom Conversion Event on Page Load
To track a custom conversion when a specific page loads, add the following code to your page above the </head> section:
Setup Custom Conversion Event on a Button
Track Conversion Event On Button Click
To track a conversion when someone clicks on a button, add the following code to your button:
The button code will look something like this:
<button onclick="AutoOptimize('trackSuccess');">Add to Cart</button>
Setup Custom Conversion Event on a Link
Track Conversion Event On Link Click
To track a conversion when someone clicks on a link, add the following code to your link:
The link code will look something like this:
<a href="#" onclick="AutoOptimize('trackSuccess');">Clickable Text</a>
Setup Custom Conversion Event With a Cart Value
If you would like to track a custom conversion event that has a cart value of $97, your code should look like this:
Replace the 97 in the above code with your cart value.
If the conversion is worth $0.00, replace 97 with 0.
This is extremely useful if you would like AutoOptimize to optimize each experiment with the highest cart value.
Benefit of Adding Cart Value
The benefit of adding the conversion cart value is AutoOptimize will take into account the value of the conversion and decide a winning experiment based on that.
The Control has an average cart value of $50, and the Experiment has an average cart value of $45. However, the Experiment experiences a 20% lift in conversions.
The calculate would look as follow:
In the above calculation, the Experiment would be the winner because even though the Cart Value was $45, the 20% lift in conversion resulted in higher lift.
Need help or have any questions? Feel free to chat with us and we'll be happy to help you out!