Add the Collectors Bundle to a Project

Info: The Collectors Bundle feature in Bloomreach Content requires a standard or premium license. Contact Bloomreach for licensing details.

Overview

This page describes how to add the Collectors Bundle to a Bloomreach Content project. The Collectors Bundle provides a set of commonly used collectors, characteristics, and UI plugins for the Relevance Module.

When to Use

Use the Collectors Bundle to quickly add preconfigured collectors and related UI plugins to your project. The bundle simplifies the process of enabling visitor data collection and personalization features.

Installation Methods

You can install the Collectors Bundle using Essentials or by adding it manually to your project.

Install via Essentials

To install the Relevance Collectors Bundle using Essentials:

  1. When creating a new project, select Make use of Enterprise features.
  2. Open the Library tab in Essentials.
  3. Locate the Relevance Collectors Bundle feature.
  4. Click Install feature.

Essentials will apply the manual installation steps automatically. After installation, rebuild and restart your project. Then configure the collectors as described in Configure Collectors.

Info: Install the Relevance Collectors Bundle only if the Relevance Module is also enabled.

Relevance Collectors Bundle feature card with Install feature button

Manual Installation

To add the Collectors Bundle manually, include the following dependency in the pom.xml file of your project's cms module:

<dependency> <groupId>com.onehippo.cms7</groupId> <artifactId>hippo-addon-targeting-bundle-collectors</artifactId> </dependency>

Some collectors require additional configuration. See Configure Collectors for details.

Bundle Contents

Collectors Provided

The Collectors Bundle includes configuration for these collectors:

Class NameDescription
DayOfWeekCollectorCaptures the (server-side) day of the week when a visitor views pages.
DocumentTypesCollectorTracks the types of documents a visitor has viewed.
GroupsCollectorIdentifies the groups a logged-in visitor belongs to.
ReferrerCollectorRecords the external web page that referred the visitor.
ReturningVisitorCollectorIndicates if the visitor has visited the site before.
TagsCollectorCaptures tags from documents viewed by the visitor.
CookieCollectorCollects HTTP cookies assigned to the visitor.
PrincipalsCollectorRecords the authenticated visitor's name, if available.
EngagementCollectorCaptures the Bloomreach Engagement segment assigned to the visitor. Available from brXM 16.2.0. Requires Bloomreach Engagement integration.

Characteristics and UI Plugins

A collector only updates visitor data if a corresponding characteristic is configured. This reduces unnecessary data collection and backend calls. The bundle provides characteristics and UI plugins for these collectors:

CollectorCharacteristic DescriptionPre-configured Target Groups
DayOfWeekCollectorVisits the site on a (day of the week)Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, Weekend
DocumentTypesCollectorMostly looks at (content type)
GeoIPCollectorComes from (continent)Africa, Asia, Europe, North America, Oceania, South America
GroupsCollectorIs logged in as (group)
ReferrerCollectorIs referred from (URL)
ReturningVisitorCollectorIs a (returning or new visitor)New visitor, Returning visitor
EngagementCollectorIs segmented in (segment)

These collectors update visitor data and include a characteristics plugin, allowing you to define target groups for personalization.

The following collectors do not include characteristics or UI plugins:

Collector
TagsCollector
PrincipalsCollector

These collectors do not update visitor data. To use their data for personalization, implement a custom characteristic and UI plugin.

Configure Collectors

Some collectors require project-specific configuration.

CookieCollector

You can specify which cookies the collector will track using the cookies property:

Property nameTypeExample
cookiesMulti-valued StringcartID, domain1.user.prefs
  • Cookie name matching is case-sensitive (cartID does not match CartID).
  • If a cookie name contains dots, the collector replaces them with underscores.

This collector only gathers request data and does not update visitor data. Personalization is not supported for this collector, and no characteristic or UI plugin is provided.

RequestParamsCollector

This collector is included by default with the Relevance Module. It saves values of request parameters specified in the params property as targeting request data.

Property nameTypeExample
paramsMulti-valued Stringq, query, search
  • Parameter name matching is case-sensitive (Q does not match q).
  • Dots in parameter names are replaced with underscores.

This collector only collects request data and does not update visitor data. Personalization is not supported, and no characteristic or UI plugin is provided.

EngagementCollector

Info: The EngagementCollector is available in brXM 16.2.0 and later.

This collector integrates with the Segmentation feature in Bloomreach Engagement. Configuration is required.

Prerequisites

  • Contact your Bloomreach Customer Success Manager to enable the "BrX Integration" feature in your Engagement account.
  • Ensure you have access to Engagement projects with the Project Admin role.

Expose Segmentations in Engagement

To use a segmentation for content personalization in Bloomreach Content:

  1. In Engagement, go to Analyses > Segmentations.
  2. Use the Show only exposed toggle to view segmentations available for content personalization.
  3. To expose a new or unexposed segmentation, edit the segmentation, click the three dots in the top right, and select Expose > Content personalization.

Segmentation menu showing Expose to Content Personalization option

Set Up API Access in Engagement

  1. In Engagement, navigate to Project settings > Project > Access management > API.
  2. Create a private API group.
  3. Save the API secret for later use.
  4. Under Group permissions, select the Brx tab and ensure Content integration is checked.

Group permissions Brx tab with Content integration checked

Configure Engagement API in Bloomreach Content

Set the following system properties in your Bloomreach Content environment:

Property nameDescription
engagement.project.idEngagement project token
engagement.api.base.urlEngagement API base URL
engagement.api.key.idEngagement API key ID
engagement.api.secretEngagement API secret
  • For local development with Cargo, add these properties to the <systemProperties> section of the cargo.run profile in the root POM.
  • For Cloud or on-premise deployments, add these to the properties file.

Integrate the Engagement Tracking Snippet

The EngagementCollector requires the Engagement tracking snippet to be present on your site.

  1. In Engagement, go to Settings > Web integration.
  2. Copy the tracking snippet.
  3. Add the snippet to your site's HTML.

For a standard implementation project created with the Maven archetype, add the snippet to the <head> section of repository-data/webfiles/src/main/resources/site/freemarker/myproject/base-layout.ftl.

Share Feedback
Page: /build/enterprise-plugins/targeting-relevance/add-the-collectors-bundle-to-a-project
Section: Build
Category *