Decibel Insight
Knowledgebase

Goals

Goals are events that occur within a visitor's journey that bring them closer to the purchase of a product or service. Goals may optionally have an attached value (the value of the products or services the visitor purchased).

An example of a goal may be downloading a whitepaper, viewing a video, completing a contact form, registering for an account, making a purchase, or interacting with a specific piece of content.

Once created, goal data can be seen using Segments.

Configuring Goals

Goals can be created by going to Settings > Goals from your Decibel account. Click the Add Goal button where you will presented with the following screen.

You will need to assign a name to each goal that you create, while a description is optional. You can also change the status of a visitor based on goals they achieve through the Change status to drop-down menu. For example, on an e-commerce website, the “Add to Basket” goal may have a status of “Engaged”, while the “Checkout” goal would have a status of “Converted”. Goals with a status of Converted will also contribute towards the Conversion Rate that is shown in the Dashboard of each property.

You can then select the Integration method which determines how the goal is triggered, where you will see the following options:

Using Point-and-click to trigger goals

When selecting the JavaScript On-click Event, if you have the page of your website that you wish to trigger the goal on open in another tab, you can use our simple point-and-click magnifying glass icon which will give you the option to select the element from another tab, such as in the image below.

Clicking the relevant tab's title will take you to that tab, where you can simply click on the relevant element that you wish to trigger the goal for, and this will populate the Selector field in Decibel for the element in question. In the example below, we are looking to trigger a goal when a user clicks on the "Blog" link in the menu. Hovering our mouse over the element shows us that this has an ID of blog-nav, and if we click the element, this will populate the Decibel selector field with #blog-nav.

F.A.Q. How to identify selectors when creating goals

Please note: There is currently a limit of 200 characters in the selector field and a goal count limit of 8,000 total characters for all goals (including name and selector) when using the "On-click Event" Integration method. If you find you reach this limit, we would recommend using the Decibel Insight JavaScript API Call method.

Triggering Goals using JavaScript

As mentioned above, if you select JavaScript On-Click Event, then you can simply add the selector into the text box which will trigger that goal on the relevant clicks.

Goals can also be triggered by Rules when a certain condition is met, such as viewing a specific page, spending a certain amount of time on the website, or making a return visit to the website.

In some cases, a goal may need to be tracked based on a user's interaction on a web page. In these scenarios, the Decibel JavaScript API is the most appropriate method for tracking a goal.

You can find the relevant goal code for any goals that you have created by going to Settings > Goals and clicking the Show integration code button (below).

When triggering through the API call, you can also pass a value along with the goal, such as in the example below which is being triggered when a particular element on the page is clicked:

<script type="text/javascript">
    $('#checkoutButton').click(function() {
        decibelInsight('sendGoal', 'Checkout', dataLayer.basketValue);
    });
</script>

The sendGoal end-point triggers the goal within Decibel. The second parameter is the goal name and the third parameter describes the monetary value of the goal and may be omitted. In this example, the third parameter refers to a JavaScript variable that has been defined in the website’s data layer, containing the monetary value of the transaction.

Editing Goals

To edit a goal, simply click the Edit icon next to the relevant goal (above), where you will presented with the same option as when you were creating the goal.

Deleting Goals

To delete a goal, simply click the Delete icon (above) on the Goals dashboard next to the relevant goal that you want to delete.