Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (19 loc) · 349 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 349 Bytes

attribution-ruby

attribution = Attribution::Client.new(ENV['PROJECT_ID']) attribution.track( event: "Charge Credit Card", user_id: USER_ID, properties: { revenue: 14.99 } )

attribution.alias( user_id: USER_ID, previous_id: PREVIOUS_ID )

attribution.identify( user_id: USER_ID, traits: { email: 'test@example.com' } )