Server SDKv1.xApache 2.0
Go SDK
github.com/acai/analytics-go is the Go server SDK with a plugin architecture, an Identify builder, and configurable retry and storage.
Installation
Initialise
Track events
Identify users
Plugins
Config reference
| Field | Type | Default | Description |
|---|---|---|---|
APIKey | string | required | Your project API key. |
ServerURL | string | US endpoint | Collector endpoint. |
UseBatch | bool | false | Use the /batch endpoint. |
FlushInterval | time.Duration | 10s | Periodic flush interval. |
FlushQueueSize | int | 200 | Max events per batch. |
FlushMaxRetries | int | 12 | Max retry attempts. |
ConnectionTimeout | time.Duration | 10s | HTTP connection timeout. |
OptOut | bool | false | Disable all event sending. |
ExecuteCallback | func(ExecuteResult) | nil | Called after each event is processed. |
