There are 2 approaches we can take to support Analytics in TDS.
- TDS components have no idea of that there is any analytics going on.
- TDS components are
capable
of emitting analytics events to component, given a well known named hook (i.e. a prop).
Both these approaches have pros and cons. Which I will briefly discuss below, along with code samples. Please take some time to think about these approaches. There's no TLDR! Also, its a long writeup. Please forgive the typos and let me know so I can fix them. I am hoping we can get on a call and discuss this proposal.