Registry / analytics / segmentio-analytics-go

segmentio-analytics-go

JSON →
library3.1.0+incompatiblegogounverified

Go client library for sending analytics events to Segment.

go get github.com/segmentio/analytics-go
INSTALL
IMPORT
SIG · SEGMENTIO-ANALYTIC
S
segmentio-analytics-go
analyticsgov3.1.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

analytics
github.com/segmentio/analytics-go

Initializes a Segment client and sends a track event.

package main import ( "github.com/segmentio/analytics-go" ) func main() { client, _ := analytics.New("YOUR_WRITE_KEY") defer client.Close() client.Enqueue(analytics.Track{ Event: "Test Event", UserId: "user_123", }) }
Debug
Known issues
breakingVersion 3.x uses a different API than 2.x; check migration guide.
fix
Use analytics.New instead of analytics.NewWithConfig.
affects: >=3.0.0
Upgrade
Version history
3.1.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
segmentio-analytics-go — go get segmentio-analytics-go · libregistry