Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ContactAnalytics = Segment::Analytics.new(
- write_key: ENV.fetch('CONTACT_SEGMENT_API_KEY') {
- 'br19iNgB1bpntlntugXRkGpK64M9pCvO'
- },
- on_error: Proc.new { |status, msg| print "Segment (Contact): #{msg}" }
- )
- ContactAnalytics.track(
- user_id: 'test',
- event: 'test'
- )
Add Comment
Please, Sign In to add comment