Integration with Segment.com

Integration with Segment.com

1. Create account in Segment.com and login: https://app.segment.com/login

2. Go to yours workspace

3. Click on "Sources"

4. Click on "Add source"

5. Type "Ruby" on search field and then select "Ruby"

6. Click "Connect" button

7. Fill any name and click "Add Source"

8. Copy the "Write Key"

9. Go to Bots.Business app. Select bot -> Edit. Paste Write Key

10. Do bot restarting

11. Tracking

Automatic tracking for: new user, user last seen

BJS example: Segment.trackEvent({ event: 'Ordered', properties: {title: 'mega product', price: 10 } })