design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Analytics best practice in Thinkmill design systems

Open gwyneplaine opened this issue 5 years ago • 0 comments

We've identified the reasons to capture analytics in the style guide, however there are a lot of ways to do this poorly, we need to outline what the recommended method is for adding analytics to design system components at Thinkmill, this might include answers to the following questions:

  • Is React.Context the best place to propagate analytics events? Why?
  • If yes, what is the best method for exposing this context to all our components
  • If no, what alternative mechanism should we use and why?
  • Should there be an analytics package, if yes what should it contain?
  • What patterns do we leverage to effectively propagate events for each component in their differeing usage contexts?

gwyneplaine avatar Nov 06 '19 02:11 gwyneplaine