How to setup goals

Where to edit goals

There are 2 places you can edit goals.

First place is in the website editor


Second place is in the result page:


Project / Website goals

Goals can be set generally for a website but also specifically for a project. When looking at the result page for a project it will first show project goals followed by website goals. Choose if you want to set a project goal or a website goal in the goal setup popup:

 

Goal types

Goals can be measured in different ways. Choose which way you want to measure a goal by clicking on the goal type select menu.


 

The different goal types are:

Page Goals

Measure if a visitor that has triggered a project later visited an URL by any kind of match.

For mor information about matching metods:

How to match with exact match, simple match, contains & regex

Click Goals

Measure if a visitor that has triggered a project later clicked any given element. In this option you can enter any css path to target the right element. There is also an option to filter to that the clicks only is measured if it happens on a specific URL matched by any of the matching methods:

How to match with exact match, simple match, contains & regex

Content Goals

Works a bit like the click goals. But instead of measuring clicks we measure if the element comes to existence on page load or after pageload dynamically.

You can also add additional optional filters to check if the element text / html matches any text and if the URL matches any text.

How to match with exact match, simple match, contains & regex

Custom Goals

In custom goal you can write your own goal. The only part that has to exist is ”return true;”

That means you can write a goal like this:

if(window.location.href.indexOf(‘checkout’) > -1) {

return true;

}

This would set the goal for any visitor going to the a url containing ”checkout”.

Another example would be:

$(”#checkout_button”).click(function() {
  if( parseInt($(”.cart .summeryTotal”).text()) > 500 ) {
    return true;
  }
});

Which would track visitors that clicked the checkout button and had more than 500 (£/$/kr…) in the basket.