Create a new goal

3

min

quiz

To measure the efficiency of an experiment, it must be linked to one or several goals. All your goals created with Kameleoon are available on the “Goals” page in the “KPI” tab of the back office where you can create and manage them.

Access the Goals page

Access all goals created with your account on the “Goals” page situated in the “A/B Test” or “Personalization” tab in the side bar menu.

The default version includes the goal”Engagement” for all sites set up with your Kameleoon account. This goal records the number of visitors who open at least one other page after the landing page.

Create a new goal

To create a new goal, click on the “New Goal” button in the upper right hand corner of the Goals page.

In the pop-in that appears, please enter the site you want to apply the goal to and choose the type of goal you want to create.

You can choose between 7 types of goals:

  • Click tracking;
  • Scroll tracking;
  • Access to a page;
  • Custom goal;
  • Time spent;
  • Number of pages viewed;
  • Retention rate;

Click tracking

The “Click tracking” goal is achieved when the user clicks on a given element.

To set up this goal, choose “Click tracking” in the dropdown menu of the pop-in and click on “Next”.

The size of the pop-in increases and all the click tracking setup options are displayed.

Start by naming your click tracking, and indicate the URL of your page. Click outside of the field: the page is displayed in the window below. Simply click on the element the click tracking should be applied to.

Once you chose an element, an orange pointer appears to confirm that the click tracking has been added. You can apply a click tracking to several elements.

The number of selected click trackings is indicated above the window.

You can also choose the navigation mode to browse on your pages.

  • Advanced settings

Click on “Advanced settings” in the left hand bottom corner of the pop-in to access click tracking advanced setup options.

The setup pop-is divided into 6 sections.


This section lists the CSS selectors of the tracked elements.
This section enables you to reduce the range of your click tracking. In the default version, all goals you created, including click tracking, are available in all experiments. If you don’t want this to be the case, indicate the experiments which should be excluded from click tracking.
This section enables you to send results to selected external tools that are installed on the site.


In this section you can define the click tracking as default goal for the site it is applied to.

Click on “Cancel” to return to the tracking’s standard parameters or “OK” to apply the new setup.

Once you’re back in the main window, click on “Create the goal”.

With this section you can activate the predictive targeting on the goal. In real time, machine learning will recognize patterns having significant impact on a goal to estimate the conversion probability of each visitor. In doing so, it allows you to target visitors depending on their probability to convert a goal.

This section is linked to the previous one. Indicate here the priority of your goal so the machine learning can hierarchize its work.

 

Click “Cancel” to return to the standard settings of your click tracking or “Validate” to apply these settings.

Once back on the main screen, click on “Create Goal”.

Sroll tracking

Scroll tracking enables you to measure the rate of visitors having scrolled down to a given level of your page.

To set up this goal, choose “Scroll tracking” in the dropdown menu of the pop-in and click on “Next”.

The pop-in now shows the setup options for the goal.

In a first step, name your goal.

Indicate the URL of the page you want to apply the scroll tracking to. Then click outside of the field: the page appears in the window below.

The scroll tracking level is materialized by the limit between the shaded and non-shaded area. To meet the goal, the visitor must scroll down to the shaded part of the page.

There are 3 different ways of defining the scroll tracking level.

  • “a precise percentage”: The percentage is applied to the entire website. It’s defined with regard to the top of the page: 0% places the level on the very top, 50% in the middle and 100% at the very bottom of the page.
  • “a height in pixels”, zero pixels being the very top of the page. The lower the level is set on your page, the higher the number of pixels. The maximum height in pixels correlates with the page size.
  • “the selected element”: Visualize the elements of your page by hovering over them and click on the element of your choice. The level will be positioned right below the selected element.

If you choose a percentage or a height in pixels to determine the scroll tracking level, you can easily move it by dragging it into the position of your choice.

You can find more details on scroll tracking setup in our dedicated article.

  • Advanced settings

Advanced settings are the same as for the Access to a page goal.

Access to a page

The goal “Access to a page” is met when the visitor arrives on the page you defined before.

To set up this goal, choose “Access to a page” in the dropdown menu of the pop-in and click on “Next”.

The pop-in now shows the setup options for the goal.

In a first step, name the goal and give a short description if you want to.

Indicate the page the visitor must visit to reach the goal.

There are 3 options:

  • Choose “contains” to target all the pages sharing a same URL fragment;
  • Choose “matches exactly” to target only the page with the exact URL you entered;
  • With “matches the regular expression” you can target a URL and its variations according to the regular expressions you are using. Please refer to our dedicated page for help creating regular expressions.

Example:

The URLs of your product page are built as follows: www.mysite.com/products/product-1

For your “Access to a page” goal to be applied to a specific product, select “matches exactly” and enter the precise URL (www.mysite.com/products/product-1).

To apply your goal to all of your product pages, select “contains” and type in /products/. You goal will apply to all pages containing the “/products/” fragment.

If the URL of product pages sometimes contains “product” instead of “products”, use the regular expression “www.mysite.com/products*“.

  • Advanced settings

Click on “Advanced settings” in the left hand bottom corner of the pop-in to access click tracking advanced setup options.

You can select the experiment(s) for which the goal is defined. The dropdown menu includes 3 criteria to limit the application range of this goal:

  • Name of the experiment: Check the boxes next to the experiments you want to apply this goal to;
  • Type of experiment: Select the type of experiment you want to apply the goal to (a click on “A/B Test” makes the goal available for all A/B tests on the site the goal applies to; same thing for “Personalization”);
  • Tags: By selecting a tag, the goal is applied only to the experiments linked to this tag.

Note: These parameters are restrictive. If you don’t select anything, the goal will apply to all experiments created on the website.

You can also choose to define this goal as main goal for the website you set it up for.

 

Custom goal

To set up this goal, select “Custom goal” in the creation pop-in’s dropdown menu and click on “Next”.

The pop-in now shows the setup options of this type of goal.

Name the goal and give a short description if you want to.

To trigger a custom goal conversion, you have to change the source code of your page and call the JavaScript function:

Kameleoon.API.processConversion(goalid)

In the popin, the ID of the goal is pre-filled.

This function takes the following parameters:

Kameleoon.API.processConversion(goalid, conversionRevenue)
  • goalid: the goal ID, which you can also replace by the goal name (defined as String);
  • conversionRevenue (optional): allows you to collect the value of your basket.
  • Advanced settings

Advanced settings are the same as for the Access to a page goal.

 

Time spent

This goal is met when the visitor spends a previously defined lapse of time on your site.

To set up this goal, choose “Access to a page” in the dropdown menu of the pop-in and click on “Next”.

The pop-in now shows the setup options for the goal.

Name the goal and give a short description if you want to.

Indicate the time the visitor must spend on your site to meet the goal.

To do so, you can choose the limit:

  • “More than”: The visitor must spend at least a given time on the page
  • “Exactly”: The time spent must match exactly
  • “Less than”: The time spent must not exceed a given duration

Indicate the figure of your choice and one of the possible units in the dropdown menu: seconds, minutes or hours.

  • Advanced settings

Advanced settings are the same as for the Access to a page goal.

 

Number of pages viewed

This goal is met if the visitor has viewed a number of pages you defined.

To set up this goal, choose “Number of pages viewed” in the dropdown menu of the pop-in and click on “Next”.

The pop-in now shows the setup options for the goal.

Name the goal and give a description if you want to.

Indicate the number of pages the visitor must view to reach the goal. You can choose among an exact number, a minimum or a maximum.

  • Advanced settings

Advanced settings are the same as for the Access to a page goal.

Retention rate

This goal is one of the default settings for all new sites set up with your account. Retention rate records the number of visitors who opened at least one more page after the landing page before leaving your site.

To set up this goal, choose “Retention rate” in the dropdown menu of the pop-in and click on “Next”.

The pop-in now shows the setup options for the goal.

The goal is already set, you just have to name it and add a description if you want to.

  • Advanced settings

Advanced settings are the same as for the Access to a page goal.