customerio / customerio-ruby

A ruby client for the Customer.io event API.
https://customer.io/docs/api/
MIT License
64 stars 75 forks source link

Add support for anonynmous events #70

Closed swastik closed 3 years ago

swastik commented 3 years ago

This PR adds support for sending anonymous events. These anonymous events can later be associated / identified with an existing customer. It'll be a breaking change as we're removing the old anonymous_track method.

Usage
client = Customerio::Client.new(…)
client.track_anonymous(anonymous_id, "test_event", { ... })

We don't generate anonymous IDs. The user has to generate them and pass them to the track_anonymous method.