Article sections

    Workflow

    Create Custom Goal → Design or Upload Creative → Insert Custom Goal into Creative → Integrate Creative into active experiment → Allocate the custom goal to the experiment

    A. Creating the custom goal

    The custom goal will track clicks on banners, pop-ups, buttons and CTA’s that belong to a pop-up. 

    1. Into the Dashboard, go to Advanced – Goals tab and select New goal:

    omniconvert overlay new goal

    2. Give a representative name to the goal and select “Custom” from the goal options:

    custom goal name

    3. Hit Save and a custom code will be generated. This code should be copied in order to be used further in the process.

    The custom goal is now created and can be reviewed in the Dashboard under the Goals section:

    custom goal review

    B. Adding the goal to your Overlay

    1. Create or edit your existing overlay and in the Variation click on the </> button to open up the code editor.
    create edit overlay

    2. In the code editor search for the element/button part of code where you wish to track clicks. 

    overlay code editor

    3. Add the following code to the element/button:

    id="mktz-test-click"

    And this one at the end of code in the editor:

    <script>
    mktz_$('#mktz-test-click').click(function (event) {
    _mktz.push(['_Goal','bannerclicks','VALUE']);
    (new _mktzInteract()).track_click_safely(event, mktz_$(this));
    });
    </script>

    In this example, we wanted to track clicks on the button and we’re using a goal named “bannerclicks”.

    Attention! If you set a different name for your goal, remember to replace “bannerclicks” with its name shown in section A3.

    Click again on Source and Save. Please don’t change the id name of the element you want to track because the goal will not trigger anymore.