Forward analytics
Hypertune provides two ways to forward flag evaluations, experiment exposures, and analytics events to your own data warehouse or analytics system:
Custom local logging callback
Custom remote logging endpoint
Option 1: Custom local logging callback
You can define a custom local logging callback with the logsHandler
option when calling createSource
that captures flag evaluations, experiment exposures, and analytics events, and forwards them to an analytics SDK in the browser, for example to Segment.
Option 2: Custom remote logging endpoint
By default, all flag evaluations, experiment exposures, and analytics events are sent to Hypertune Edge via the following endpoint: https://gcp.fasthorse.workers.dev/logs
You can change this endpoint with the remoteLogging.endpointUrl
option when calling createSource
. Point it to your own server endpoint where you can forward data to your own warehouse or analytics system, and optionally to Hypertune Edge too.
Comparison
Pro
Simple integration with client-side SDKs of third-party analytics providers.
Ensures you don't lose any data due to ad blockers or network restrictions in the browser.
Con
Some data may be lost due to ad blockers or network restrictions in the browser.
Server-side integration may be more complex depending on data destination.
Last updated