Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. Tracking CLI
  6. Additional Information

Additional Information

Under the hood

There is no buffering in the Snowplow Tracking CLI – each event is sent as an individual payload whether GET or POST.

Under the hood, the app uses the Snowplow Golang Tracker.

The Snowplow Tracking CLI will exit once the Snowplow collector has responded. The return codes from snowplowtrk are as follows:

  • 0 if the Snowplow collector responded with an OK status (2xx or 3xx)
  • 4 if the Snowplow collector responded with a 4xx status
  • 5 if the Snowplow collector responded with a 5xx status
  • 1 for any other error

Building

Add snowplowtrk and its package dependencies to your go src directory:

$ go get -v github.com/snowplow/snowplow-tracking-cli

Once the get completes, you should find your new snowplowtrk executable sitting inside $GOPATH/bin/.

To update snowplowtrk dependencies, use go get with the -u option.

$ go get -u -v github.com/snowplow/snowplow-tracking-cli