Was this page helpful?

Insights tracking

To conduct a performance analysis of your Experiments, Personalizations, components and Audiences, any system requires two types of information:

  1. What a visitor is seeing - Tracking individual components and Experiences that are seen help to identify what can be attributed to your conversions.
  2. Conversions events - Knowing which visitors converted, including any additional properties of the conversion, make sure that the performance of your Experiences can be measured. At Contentful Personalization, conversions events are part of your regular track events.

To use Insights, these corresponding events need to be sent to Contentful Personalization.

NOTE: If you are already sending conversion events to a different analytics software such as Google Analytics, we recommend using the same setup, triggers and events for Contentful Personalization.

Send view events

The Insights Plugin automatically sends events when any element wrapped in an SDK <Experience> component has been present within the user's viewport for a specified amount of time. This covers the majority of personalization and experiment implementations.

To track the visibility of Experiences not implemented using the SDK's <Experience> component, you should use the observeElement method available on the instance to register a custom element for tracking.

Important: Delivering Experiences requires a developer to implement code. For more information about our integrations and SDKs, see the Experience SDK page.

Send conversion events

Conversion events can be sent to Contentful Personalization just like any other event, using the track method. These events can be sent in a number of ways.

Track events via Google Tag Manager

The easiest way to send conversion events is by sending track events from an existing tag manager. If you're using Google Tag Manager, we recommend leveraging the Contentful Personalization Google Tag Manager template to quickly create a tag to call track with your existing Google Tag Manager triggers.

Ninetailed Personalized content types

This tag configuration would call:

ninetailed.track('TRACK_EVENT_NAME', {TRACK_PROPERTY: 'TRACK_PROPERTY_VALUE'})

each time YOUR_TRIGGER fires. Your event name and property keys & values can use data layer variables for dynamic population.

Track events via the SDK or API

Developers can send conversion events via our SDKs or API. For more information, see the Send events section and Experience API section.

Track events via Customer Data integrations

If you are using other customer data tools such as Segment, you can also send conversion events to Contentful Personalization via our Customer Data integrations.