Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. ContactAnalytics = Segment::Analytics.new(
  2. write_key: ENV.fetch('CONTACT_SEGMENT_API_KEY') {
  3. 'br19iNgB1bpntlntugXRkGpK64M9pCvO'
  4. },
  5. on_error: Proc.new { |status, msg| print "Segment (Contact): #{msg}" }
  6. )
  7.  
  8. ContactAnalytics.track(
  9. user_id: 'test',
  10. event: 'test'
  11. )
Add Comment
Please, Sign In to add comment