Welcome to our new beta documentation experience! Let us know what you think below, under "Was this article helpful?" 👍 👎

Analytics Export Service

Prev Next

The Analytics Export Service allows the automated download of Interaction Analytics and Granular Analytics reports — including an A/B testing variant option for Interaction Analytics — via a download link. From a technical perspective, it's a REST API calling an export service. This allows it to be compatible with any BI (Business Intelligence) system.

Availability

The analytics data export is a premium add-on feature.

HTTP request

To export the analytics data, send an HTTP GET request with the following format: {serviceUrl}/download/v2/analytics/{analyticsId}/{filePrefix}

Parameters:

  • serviceUrl = https://data-export.service.usercentrics.eu

  • analyticsId = An aggregator of different settingsId values. The analytics ID will be provided by Usercentrics Support upon request.

  • filePrefix = Analytics file prefix, defines the output file’s format and content. Example: interaction-2026-01-01

Example request:

curl --location --request GET 'https://data-export.service.usercentrics.eu/download/v2/analytics/analyticsID/interaction-2026-01-01' \
--header 'X-API-Key: your_key'

To generate your HTTP request, you can use the Swagger documentation.

In response, you will get a JSON file, containing an array of download links which are valid for 15 minutes. Example response:

{
    "downloadUrls": [
        "https://storage.googleapis.com/analytics-raw-data-aggregation/analyticsId/file-1?auth=token",
        "https://storage.googleapis.com/analytics-raw-data-aggregation/analyticsId/file-2?auth=token"
    ]
}

filePrefix

The filePrefix defines the output file’s format and content. Usercentrics provides analytics for Interaction Analytics and Granular Analytics on a monthly, weekly and daily basis. The file prefix varies for the different aggregation types and aggregation frequency.

Aggregation type

The aggregation type defines, which analytics you want to receive via the API. The two following options are available:

  • Interaction Analytics: {Aggregation} = interaction

  • Granular Analytics: {Aggregation} = granular

  • Interaction + A/B testing Analytics: {Aggregation} = interaction-abvariant

Frequency

The following table explains how to work with the different aggregation frequencies:

Frequency

Start date and end date

Format

Example

Availability

Monthly analytics

Use the first date of the month as a start date and the last date of the month as a second date

{Aggregation}-YYYY-MM-DD-YYYY-MM-DD

interaction-2026-04-01-2026-04-30

On the 1st of every month at around 8am UTC.

Weekly analytics

Use Monday as start date and Sunday as second date

{Aggregation}-YYYY-MM-DD-YYYY-MM-DD

granular-2026-04-04-2026-04-10

On every Monday at around 8am UTC.

Daily analytics

Use the exact date on which you want the analytics

{Aggregation}-YYYY-MM-DD

interaction-2026-04-01

The next day at around 8am UTC.

Authentication

To authenticate, send the API key either via header or query parameter:

  • HTTP Header: x-api-key: 'your_key'

  • Query parameter: apiKey=your_key

Your individual key will be provided by Usercentrics Support upon request. Read this knowledge base article to learn how to receive it.

How can I get access to the export service?

To get access to the analytics export service, please reach out to your customer success manager or to the Support team. Please make sure to provide the following information:

  • Configurations (settingsId values) the export should be provided for.

  • Frequency of the reports: Monthly / weekly / daily.

  • Aggregation types:

      • Interaction Analytics: {Aggregation} = interaction

      • Granular Analytics: {Aggregation} = granular

      • Interaction + A/B testing Analytics: {Aggregation} = interaction-abvariant

After the analytics data export has been activated for you, you will receive your analyticsId and authentication credentials. You can also find a more detailed how-to-guide in this knowledge base article.

What does the report look like?

Interaction Analytics Raw Data Export



The following event types are available for Interaction Analytics:

Event type

Description

CMP_SHOWN

Triggered when the CMP is shown

ACCEPT_ALL

Triggered by clicking the Accept All button

DENY_ALL

Triggered by clicking the Deny All button

SAVE

Triggered by clicking the Save button

MORE_INFORMATION_LINK

Triggered by clicking the More Information button

IMPRINT_LINK

Triggered by clicking the Imprint link

PRIVACY_POLICY_LINK

Triggered by clicking the Privacy Policy link

When using the interaction-abvariant aggregation type, the file includes an additional abvariant column, indicating which A/B test variant (e.g. variant0, variant1) the entry belongs to.

Granular Analytics Raw Data Export

Granular Analytics Export Example Report

There are two different possible values for consent:

Value

Description

0

Opt-out

1

Opt-in

Values for action in the raw data:

Value

Description

0

Accept All (onAcceptAllServices)

1

Deny All (onDenyAllServices)

2

Essential change: indicated service as essential that wasn’t before and vice versa (onEssentialChange)

3

User is visiting the website for the first time (onInitialPageLoad)

4

A bot script is detected or a CCPA CMP first visited or where we accept all implicitly for non EU users (onNonEURegion)

5

Session restored (onSessionRestored) deprecated

6

Tcf string change (onTcfStringChange)

7

Granular Accept or Granular Deny (onUpdateServices)

8

Mobile session restore (onMobileSessionRestore)