climatemind-backend icon indicating copy to clipboard operation
climatemind-backend copied to clipboard

analytics endpoint

Open rodriguesk opened this issue 1 year ago • 0 comments

User story

We need user interaction tracked through an endpoint so we can improve their experience by tracking user journeys. We have historically been using google tag manager to track clicks but are switching now to have a dedicated endpoint for it.

Acceptance criteria

  • [ ] /analytics POST endpoint with Header: X-Session-Id and body of category, action, label, eventValue, eventTimestamp, and pageUrl
  • [ ] includes documentation
  • [ ] unit test for adding an event

rodriguesk avatar Nov 22 '23 00:11 rodriguesk