Collectors

Note: For definitions of collector, visitor, and visit, see Relevance Concepts and Terminology.

Configuration

Collectors are configured in the Java Content Repository (JCR) at the following path:

/targeting:targeting/targeting:collectors

Each child node under this path represents a collector. The node name serves as the collector's ID. Each collector node requires the following property:

  • targeting:className: The fully qualified Java class name of the collector implementation.

Example configuration:

/targeting:targeting/targeting:collectors: /geo: jcr:primaryType: targeting:collector targeting:className: com.onehippo.cms7.targeting.collectors.GeoIPCollector

Some collectors support additional configuration properties. For details, see Collector Configurations.

Available Collectors

The following collectors are included by default:

Class Name*Collected Targeting DataUpdate Frequency
ChannelCollectorIDs of all visited channelsEvery request
DayOfWeekCollectorDay of the week when a channel is visited (based on server time)Every request
DocumentTypesCollectorTypes of documents viewed by the user (relative content beans of visited pages)Every request
GeoIPCollectorVisitor's city, country, continent, latitude, and longitude (based on IP address)Every new visit
GroupsCollectorGroup membership of a logged-in visitorEvery request
PageViewsCollectorURLs of visited pagesEvery request
ReferrerCollectorReferring web page that led the visitor to the siteFirst visit
ReturningVisitorCollectorIndicates if the visitor has previously visited the siteEvery new visit
TagsCollectorAll tags on documents viewed by the user (tags on relative content beans of visited pages)Every request
SiteSearchKeywordsCollectorKeywords used in site searchesEvery request

* All collectors listed above are in the com.onehippo.cms7.targeting.collectors package.

To quickly configure commonly used collectors, you can use the Collectors Bundle.

REST Service

All targeting data collected for the current user is accessible through the Relevance REST service. The Content Management System (CMS) uses this REST service to display data in the Content audiences application.

Info: This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

Share Feedback
Page: /build/enterprise-plugins/targeting-relevance/collectors
Section: Build
Category *
Collectors | Bloomreach Content Documentation