Golang tracker setup - OXYGEN-MARKET/oxygen-market.github.io GitHub Wiki

HOME > SNOWPLOW SETUP GUIDE > Step 2: setup a Tracker > Golang Tracker

Contents

1. Overview

The Snowplow Golang Tracker lets you add analytics to your Golang-based apps and servers.

Ready? Let's get started.

Back to top

2 Tracker compatibility

The Snowplow Golang Tracker has been built and tested using Golang versions 1.3, 1.4, 1.5 and 1.6.

Back to top

3. Setup

The Tracker is hosted on Github and versions of the Tracker are fetched using gopkg.

To get the package, execute:

$host go get gopkg.in/snowplow/snowplow-golang-tracker.v1/tracker

To import the package, add the following line to your code:

import "gopkg.in/snowplow/snowplow-golang-tracker.v1/tracker"

The current version of the Snowplow Golang Tracker is 1.1.0.

Back to top

Done? Now read the Golang Tracker API to start tracking events.

⚠️ **GitHub.com Fallback** ⚠️