Snowplow Ruby Tracker 0.1.0 released
We are happy to announce the release of the new Snowplow Ruby Tracker. This is a Ruby gem designed to send Snowplow events to a Snowplow collector from a Ruby or Rails environment. This post will cover installing and setting up the Tracker, and provide some basic information about its features:
The Snowplow Ruby Tracker is published to RubyGems, the Ruby community’s gem hosting service. This makes it easy to install the Tracker locally, or add it as a dependency into your own Ruby app.
To install the Tracker locally:
To add the Snowplow Ruby Tracker as a dependency to your own Ruby gem, edit your gemfile and add:
The Snowplow Ruby Tracker is compatible with Ruby versions 1.9.3, 2.0.0, and 2.1.0. The setup page has more information on the Tracker’s own dependencies.
Require the Snowplow Tracker like this:
Initialize a Tracker like this:
Set some additional information:
And fire some events:
For in-depth usage information on the Snowplow Ruby Tracker, see the wiki page.
The functionality and architecture of the Snowplow Ruby Tracker is very similar to that of the Snowplow Python Tracker. It has support for the same Snowplow events, and custom contexts can be attached to every event.
Since this is the first release of the Ruby Tracker, we’re keen to hear people’s opinions. If you have an idea for a new feature or want help getting things set up, please get in touch. And raise an issue if you spot any bugs!