Insights plugin
The Insights plugin sends data to an Insights API endpoint via the Beacon API when an <Experience> component remains in the viewport for a specified amount of time. This view data powers Component Insights and Experience Insights.
Entries without a personalization or experiment can also be tracked this way if they are wrapped with the <Experience> component. This data can be analyzed on the Content insights page.
Installation
@ninetailed dependencies are also using the same version.Add the dependency:
npm
yarn
Then, add the plugin to the instance:
React, Next.js
Gatsby
JavaScript
Timing configuration
The Insights Plugin logs that a component has been seen only after the component has remained within the user’s viewport for a specified amount of time (in milliseconds), determined by the value of the componentViewTrackingThreshold property on the instance (see code samples above). If the option is unspecified, the value defaults to 2000.