Segment
Setup
Sign up for Segment.io and create a Segment.io project for your web application.
Add the JavaScript Tracking Snippet to your site.
During development and testing it is often helpful to use the debug version of analytics.js. Follow the instructions here to enable it.
Install the target:
Usage
Event Definitions
Don't see your event listed? Please submit a pull request to the Redux Beacon repository with the missing event. Use the source of the existing event-helpers
to guide your work. If you need any support feel free to make the pull request with all you're able to do. We can fill in the gaps from there.
pageView
Docs:
https://segment.com/docs/sources/website/analytics.js/#page
The last line of the tracking snippet analytics.page();
hits Segment.io with a page view that matches the first loaded route. If you're tracking page views using Redux Beacon, be sure to remove this line so the initial page load isn't recorded twice.
event
Docs:
https://segment.com/docs/sources/website/analytics.js/#track
alias
Docs:
https://segment.com/docs/sources/website/analytics.js/#alias
group
Docs:
https://segment.com/docs/sources/website/analytics.js/#group
identify
Docs:
https://segment.com/docs/sources/website/analytics.js/#identify
reset
Docs:
https://segment.com/docs/sources/website/analytics.js/#reset-logout
Last updated