Article sections

    A custom goal is a goal that can be triggered wherever you want but needs explicit integration. This is a Global goal, meaning you can use the same goal for multiple experiments.

    Every time you create a new custom goal, a javascript snippet of code is generated. This is how you create one:

    Steps

    1. From the left menu click on Advanced and then Goals.

    2. Press on the New Goal button on the right side of your screen.

    3. Now you will be able to choose a name, description and whether the experiment will allow multiple conversions per visitor session.

    With this option enabled, the goal will be tracked multiple times during the same visit session and for the same visitor.

    4. Now select the goal type to be Custom Goal

    5. Once you are done, press Save.

    6. Wait for the snippet of code to be generated.

    7. Add the code to your website. The conversion tracking code looks like the one below and can be integrated into any known JavaScript event, such as on-click, on-load, on-mouse-over, on-mouse-out, on-focus etc.

    This is how a snippet of code for a goal implementation looks like:

    <script>_mktz.push(['_Goal','NAME','VALUE']);</script> 
    • NAME – the name of the goal, as Omniconvert defines it (in the above example, ‘custom-one’).
    • VALUE – its numeric value. Some goals are selling goals, so it is necessary that this parameter receives the value of the conversion (in a 12345.67 format, without a currency attached). If the conversion is void of value, the number is 0.

    If you need to install the Custom Goal via GTM, you can follow this article for instructions on how to do it.

    Using a Goal

    After you created your goal, do not forget that you need to manually add it as a goal for your experiments. This can be done from the editing view of the experiment, by going to the Traffic allocation & Goals section and pressing on the Select or create a goal:

    And click on the check box next to the goal.

    Was this post helpful?