Track pages

The JavaScript SDK can automatically track page visits on the pages, on which it is initialized and send the respective data. To do this, you provide a value to the trackPageVisits parameter, for example, true:

As a result, an interaction with predicate Visit and object from location.href is sent to Sitefinity Insight. You can modify the predicate and object of the interaction for page visits, as well as send some additional metadata along with it by passing the following object to the trackPageVisits parameter upon instantiation:

Instantiating the SDK in such a way sends the following interaction on page visit:

Was this article helpful?

Next article

Collect data