- Status: being evaluated
- Deciders: Pietro, Luke, James
- Date: 2018-12-06
It be great to be able to track some component level analytics in a way that is agnostic to the tracking provider (eg piwik/matomo, google analytics etc..)
- easy to reason around
- clean interface
- flexible to integrate with variety of analytics providers
- un-opinionated in regards to the API end point and how to make that request
- npm analytics module.
This is a pluggable event driven analytics library designed to work with any third party analytics tool.
-
Making one from scratch - a class that takes in an option and handles the logic to call the end points
-
just raise events to the top parent component - see notes here then parent component can decide how to handle depending on the library in use for analytics.
Option 3 - as suggested by Luke, raise event to parent component.