Segment.Spec.Track (Peacemaker v3.3.5-rc.7) View Source
Builds a token for interfacing with the custom tracking events on Segment. Each event needs to have a validate_token/2 method defined.
Example Usage:
Track.build()
|> Track.set_user_id(Peacemaker.Accounts.find_one(email: "kawika@wealthfit.com"))
|> Track.set_event("wf-new-trial")
|> Tracker.send_event()
Link to this section Summary
Functions
Creates a token that will be used to track billable events.Link to this section Types
Specs
Link to this section Functions
Creates a token that will be used to track billable events.