Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 953 Bytes

File metadata and controls

29 lines (17 loc) · 953 Bytes

Adding a New Analytics Module

This document describes how to add a new analytics module to Prebid Server.

1. Define config params

Analytics modules are enabled through the Configuration.

2. Implement your module

Your new module org.prebid.server.analytics.{module}AnalyticsReporter needs to implement the org.prebid.server.analytics.AnalyticsReporter interface.

3. Add your implementation to Spring Context

In order to make Prebid Server aware of the new analytics module it needs to be added to the Spring Context in org.prebid.server.spring.config.AnalyticsConfiguration as a bean.

Example

The log module is provided as an example. This module will write dummy messages to a log.

It can be configured with:

analytics:
  log:
    enabled: true

Prebid Server will then write sample log messages to the log.