3.1. Assembling Tracking Information

CoreMedia Analytics Connectors provides a ViewHookEventListener and an AnalyticsProvider implementation for each integrated third-party service provider. The ViewHookEventListener reacts on a ViewHookEvent of type head for content of type Page. If sufficient configuration is available, it renders the corresponding provider's JavasSript into the head section of the Page. The provider specific AnalyticsProvider implementation provides access to the basic configuration that is necessary to establish a tracking connection to that particular service. Most importantly, the AnalyticsProvider implementation can check if any required properties are missing and suppresses rendering of any output for that service if it is not properly configured.

Note that the integration of analytics extensions is controlled by the CoreMedia project extension Maven plugin. Per default, all analytics extensions are active but can be turned off by removing the corresponding BOM POM import from the CoreMedia 7 root pom.

See the Javadoc for more details on which properties the analytics listeners and interceptors provide for tracking and Section 3.4, “Studio Integration” for details on how to configure them.

Consult the [CAE Developer manual] for information on how to register interceptors and ViewHookEventListeners.