Sha256: 476674cb25eabbcc31979c69ad610e0bcf7419952b547b7347c74f5bc3f8264c
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
# fluent-plugin-mixpanel [![Build Status](https://travis-ci.org/hakobera/fluent-plugin-mixpanel.png?branch=master)](https://travis-ci.org/hakobera/fluent-plugin-mixpanel) ## Component ### MixpanelOutput [Fluentd](http://fluentd.org) plugin to send event track data to [mixpanel](https://mixpanel.com). ## Installation Install with gem or fluent-gem command as: ``` # for fluentd $ gem install fluent-plugin-mixpanel # for td-agent $ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-mixpanel ``` ## Configuration ### MixpanelOutput MixpanelOutput needs mixpanel's `project_token`, that can get from your mixpanel project settings. You should also specify property key name by `distinct_id_key` and `event_key`. ```xml <match output.mixpanel.*> type mixpanel project_token YOUR_PROJECT_TOKEN distinct_id_key user_id event_key event_name </match> ``` If record like this: ```rb { user_id: "123", event_name: "event1", key1: "value1", key2: "value2" } ``` above settings send to the following data to mixpanel, using [mixpanel-ruby](https://github.com/mixpanel/mixpanel-ruby) gem. ```rb tracker = Mixpanel::Tracker.new(YOUR_PROJECT_TOKEN) tracker.track("123", "event1", { key1: "value1", key2: "value2" }) ``` ## Contributing 1. Fork it ( http://github.com/hakobera/fluent-plugin-mixpanel/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 new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-mixpanel-0.0.1 | README.md |