We can be more precise and conservative by using the backend
satellite/analytics service. We also no longer need client-side Segment
scripts.
Change-Id: Ic5fb18bea2d388b586ad773e26027d69bde87294
This is a very simple endpoint which allows the satellite UI client to
notify the console server that an event has occurred. We will use this
to track when users have completed certain tasks that can't be tracked
server-side (e.g. generating gateway credentials, setting a passphrase)
As part of this change, one client side event is implemented to use the
endpoint - when the user clicks the button to create gateway credentials
after making a new access grant.
Change-Id: Ic8fa729f1c84474788e1de84c18532aef8e8fa3c
WHAT:
we want to track how many people click Generate Gateway Credentials button
WHY:
user tracking
Change-Id: Iad6a38a552f5773bbea7c07bac3562365a5f57d9
* Inject segment snippet
* Add page tracking on components mounted
* Use router state to send tracking data to segment.io
Move router tracking into router file
* Create plugin for analytics
* Add plugin
* Add .env file for segment track id
* Replace custome plugin with vue-segment-analytics package
* Rename .env file to not be used for production
* Add DNT check before tracking
clean up code
* move tracker to be above page reload
* Inject segment snippet
* Add page tracking on components mounted
* Use router state to send tracking data to segment.io
Move router tracking into router file
* Create plugin for analytics
* Add plugin
* Add .env file for segment track id
* Replace custome plugin with vue-segment-analytics package
* Rename .env file to not be used for production
* Add DNT check before tracking
clean up code
* move tracker to be above page reload