Manage automatic tracking of visits

By default, the JavaScript SDK sends all reported data to Sitefinity Insight each 5 seconds. In case you need to send the data in different intervals, you can stop the automatic reporting when instantiating the JavaScript SDK client using the autoTracking parameter. When you turn off the automatic tracking, you need to manually send the data to Sitefinity Insight using the flushData() function of the SDK client. Note that for the flushData() function to work, you need to provide it with the context of the whole SDK client passed as a parameter.

Following is an example demonstrating how to manually send reported data to Sitefinity Insight on clicking a button:

Was this article helpful?