# Forward analytics

Hypertune provides two ways to forward flag evaluations, experiment exposures, and analytics events to your own data warehouse or analytics system:

1. Custom local logging callback
2. Custom remote logging endpoint

## Option 1: Custom local logging callback

You can [define a custom local logging callback](https://docs.hypertune.com/sdk-reference/local-logging) 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](https://docs.hypertune.com/concepts/hypertune-edge) via the following endpoint: `https://gcp.fasthorse.workers.dev/logs`

You can [change this endpoint](https://docs.hypertune.com/sdk-reference/remote-logging#change-the-remote-logging-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

<table><thead><tr><th width="138.44921875"></th><th>Custom local logging callback</th><th>Custom remote logging endpoint</th></tr></thead><tbody><tr><td>Pro</td><td>Simple integration with client-side SDKs of third-party analytics providers.</td><td>Ensures you don't lose any data due to ad blockers or network restrictions in the browser.</td></tr><tr><td>Con</td><td>Some data may be lost due to ad blockers or network restrictions in the browser.</td><td>Server-side integration may be more complex depending on data destination.</td></tr></tbody></table>
