mixpanel

A library for sending events to Mixpanel mixpanel analytics
0.3.1 Latest release released

mixpanel-crystal

GitHub release Travis GitHub license

mixpanel-crystal is a library for tracking events on Mixpanel from your crystal applications.

Installation

Add this to your application's shard.yml:

dependencies:
  mixpanel:
    github: petoem/mixpanel-crystal

Usage

require "mixpanel"

# Use Mixpanel::Tracker to track events in your application. To track an event, use
tracker = Mixpanel::Tracker.new "YOUR_TOKEN"
tracker.track "Signup", Mixpanel::Event::Properties{"username" => "Pino", "Age" => 2}

You can also take a look at the specs for more examples or generate documentation with crystal docs command.

Contributing

  1. Fork it ( https://github.com/petoem/mixpanel-crystal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • petoem Michael Petö - creator, maintainer
mixpanel:
  github: petoem/mixpanel-crystal
  version: ~> 0.3.1
License MIT
Crystal 0.31.1

Authors

Dependencies 0

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently