Repository navigation
Ruby tracker setup
HOME > SNOWPLOW SETUP GUIDE > Step 2: setup a Tracker > Ruby tracker
- 1 Overview
- 2 Dependencies
- 3 Setup
- 3.1 RubyGems
- 3.2 Installation
The Snowplow Ruby Tracker lets you add analytics to your Ruby applications and gems.
Setting up the tracker should be relatively straightforward if you are familiar with Ruby development.
Ready? Let's get started.
The Snowplow Ruby Tracker is compatible with Ruby versions 1.9.3, 2.0.0, and 2.1.0.
To make the Snowplow Ruby Tracker work with as many different Ruby programs as possible, we have tried to keep external dependencies to a minimum. There are only two external dependencies currently:
- contracts - Ruby package that allows one to declare constraints on function parameters and return values.
- webmock - HTTP library used to stub requests for testing.
These dependencies can be installed from the package manager of the host system or through RubyGems.
The Snowplow Ruby Tracker is published to RubyGems, the Ruby community's gem hosting service. This makes it easy to either install the tracker locally, or to add it as a dependency into your own Ruby app.
To install the Snowplow Ruby Tracker locally:
$ gem install snowplow-tracker
To add the Snowplow Tracker as a dependency to your own Ruby gem, edit your gemfile and add:
gem 'snowplow-tracker'Done? Now read the Ruby Tracker API to start tracking events.
Home | About | Project | Setup Guide | Technical Docs | Copyright © 2012-2017 Snowplow Analytics Ltd
HOME » SNOWPLOW SETUP GUIDE » Step 2: Setup a Tracker
- Step 1: Setup a Collector
-
Step 2a: Setup a Tracker
- 2.1: Setup the ActionScript 3.0 Tracker
- 2.2: Setup the Android Tracker
- 2.3: Setup the Arduino Tracker
- 2.4: Setup the Golang Tracker
- 2.5: Setup the iOS Tracker
- 2.6: Setup the Java Tracker
- 2.7: Setup the JavaScript Tracker
- 2.8: Setup the Lua Tracker
- 2.9: Setup the .NET Tracker
- 2.10: Setup the Node.js Tracker
- 2.11: Setup the PHP Tracker
- 2.12: Setup the Pixel Tracker
- 2.13: Setup the Python Tracker
- 2.14: Setup the Ruby Tracker
- 2.15: Setup the Scala Tracker
- 2.16: Setup the Unity Tracker
- Step 2b: Setup a Webhook
- Step 2c: Setup a Data Store Source
- Step 3: Setup Enrich
- Step 4: Setup alternative data stores
- Step 5: Data modeling
- Step 6: Analyze your data!
Useful resources