For AI agents: a Markdown version of this page is at https://docs.snowplow.io/docs/sources/golang-tracker/setup.md. The index of all documentation pages is at https://docs.snowplow.io/llms.txt, and the index for this section is at https://docs.snowplow.io/docs/cdi/llms.txt.
Install the Golang tracker
The latest version of the Snowplow Golang Tracker is v3.1.0 which has been built and tested using Golang versions 1.19.x, 1.18.x and 1.17.x.
Setup
All of the tracker code is hosted on GitHub and versions can be fetched using Golang modules with both v2 and v3 available via this method.
To get the package, execute:
bash
$host go get "github.com/snowplow/snowplow-golang-tracker/v3/tracker"
To import the package, add the following line to your code:
go
import "github.com/snowplow/snowplow-golang-tracker/v3/tracker"