With the Sitefinity Insight JavaScript SDK, you can easily track client-side interactions of your website visitors. You can also use the SDK to:
To get and install the JavaScript SDK, refer it via CDN:
After you refer the JavaSscript SDK in your HTML file, you can instantiate an instance of it using the following code:
The SDK client is instantiated by providing a settings object that can contain the following properties:
RECOMMENDATION: We recommend using a single data source for all data within a data center in most cases.
For more information, see Data sources.
NOTE: If you are working with JavaScript SDK version 3.0 and newer, the name of the cookie is always set to sf-data-intel-subject and you cannot change it.
By default, the value of the property is set to true. If you disable this property, no requests are made to the Sitefinity Insight API and no tracking and personalization are executed by the SDK. In accordance with GDPR, the visitor provides consent to be tracked or rejects to be tracked. You set the property value to true or false, accordingly.
For more information, see GDPR compliance.
NOTE: You can work with this parameter only if you are working with JavaScript SDK version 3.0 and newer.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important