Skip to content

Goals

Tracking goals

This tutorial will teach you how to embed goals on your website and trigger them automatically or manually.

Prerequisites

  • Giosg script is installed on your website that you wish to track
  • You should have at least one goal configured.

While the visitor is browsing a website

When the visitor arrives on your site we can setup the call to the Visitor Identifier API (For example: _giosg('visitor', 'setIdentifier', 'customer-12345')). This is done so that we can automatically tag goals for these identities. These are automatically saved by Giosg and are used to create a goal event for that particular visitor and session at a later point. Rules are then triggered for the visitor which are saved by Giosg.

At a later time

The visitor can do something that triggers the goals setup on the customers website, one or multiple goals can be tracked using the External Goal Match API. This API needs a Goal, a list of room UUIDs, and the visitor Identifier setup in the previous step (Eg. customer-12345).

Tracking goals with Goal Match javascript API

This process is a little different, you embed these goals on your website with the Goal Match API. You can created a goal like: _giosg('goal', 'matches', '2870f654-c6a7-11e6-8a67-60f81db030fe');. With these goals you can (For example) later fetch how many people have seen a product.

Conclusion

In this tutorial we have learnt how to work with Goals. If you have more questions feel free to E-Mail support@giosg.com or chat with us.