Registry /
analytics / segmentio-analytics-go-v3
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
✓ gopkg.in/segmentio/analytics-go.v3
Track an event with Segment
package main
import (
"fmt"
"gopkg.in/segmentio/analytics-go.v3"
)
func main() {
client, _ := analytics.New("YOUR_WRITE_KEY")
defer client.Close()
client.Enqueue(analytics.Track{
Event: "Test Event",
UserId: "user123",
})
fmt.Println("Event tracked")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
3.3.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.