Insights

Overview

Measuring the performance of your personalized experiences is essential for making data-driven decisions. Contentful Personalization provides Insights — a suite of tools for analyzing content performance based on the events your application sends.

How Insights works

Insights is powered by the following types of data:

  1. Component impression events: Tracked automatically by the Insights plugin when a personalized component enters the visitor’s viewport. The plugin uses the Beacon API to record which variant a visitor saw, for how long, and whether they clicked it.

  2. Conversion events: Tracked by your application using the track() method. When a visitor completes a business action (such as a signup or purchase), you send a track event that Insights attributes to the experience variant the visitor was shown.

Together, these let you answer: “Which variant of my hero banner led to more signups?”

Set up Insights

To set up Insights:

  1. Install and configure the Insights plugin (@ninetailed/experience.js-plugin-insights). This handles component view, click, and hover tracking automatically for any component wrapped in <Experience> or <EntryAnalytics>.

  2. Add track() calls for your conversion events. See Insights tracking for details.

  3. Create metrics in the Contentful Personalization app that define how to measure and attribute your track events. See the Set up metrics page for metric configuration.

Why Insights matters for experiments

Without Insights data, experiments cannot produce statistically valid results. The system needs both impression data (who saw which variant) and conversion data (who took the desired action) to calculate which variant performs better.

This means:

  • The Insights plugin is effectively required for any experimentation program.
  • Server-only setups (with no client SDK) cannot track component views because there is no browser viewport so experiment results will be incomplete.
  • The recommended approach for experiments is a hybrid setup with the client SDK and Insights plugin handling measurement.

Custom analytics

You can also use Analytics to check how your personalization events are performing, or send them to your own analytics tools using the Google Tag Manager plugin or the Segment plugin. These can run alongside Insights, you don’t have to choose one or the other.