Tutorial for configuring an analytics export destination and configuration
Analytics export is a premium feature that is not enabled for organizations by default. Make sure you reach out to [email protected] to enable this integration before configuring one for your organization.
Introduction
Analytics exports consist of two main components:
Properties define the type of data to export as well as the frequency for delivering the data.
Destinations define the cloud storage (bucket) that will receive the data and the credentials to connect to them.
Configure an analytics export
To configure an analytics export, send a POST /marketplace/integrations request with the type of destination to use, the credentials, data type, and the ID of the organization that will host it.
POST https://api.didomi.io/v1/marketplace/integrations?organization_id=YOUR_ORG_IDBODY{"type_id": "analytics-exports-s3","authentication": {"account_id":"0000000000" },"properties": {"frequency":1 },"mappings": []}
The API will return something similar to:
The destination's bucket_name is the name of the created AWS S3 bucket where your Didomi data will be delivered. Assuming the AWS IAM role returned as bucket_access_role_arn is required to get the correct credentials to read the created AWS S3 bucket.
GCP storage
If you are configuring a GCP Storage Bucket destination instead, you must set the type to analytics-exports-gcp and specify the GCP bucket name, your project ID, and the JSON key in the config payload:
The current version of the Didomi export configurations only support daily incremental exports (1 day frequency).
This will schedule a daily analytics export that will deliver the delta updates of the organization's consent data to the configured destination. The first batch will be delivered 24 hours after the creation date of the export configuration.