-
Task
-
Resolution: Done
-
Should have
-
None
-
5
-
Analytics, Posts
-
Sprint #230
-
pluto
Summary
With the implementation of Mixpanel we are modifying the approach to Web Analytics to include "Focus Metrics". One of these metrics is Active Monthly Readers on post pages. In order to tell whether a reader has read a post we would like to implement a dataLayer Variable for "reading_time": the time in milliseconds expected to read a post according to the number of characters or words. This is already optionally displayed on Posts, but the idea would be to have it as a DLV for all posts regardless of whether it is displayed.
The goal with this is to use reading_time as a conditional trigger in GTM depending on the length of the post. We would trigger an event called post_read once the user spends X amount of time on the page.
Requirements
- dataLayer variable for reading_time for all Posts
- Add the dataLayer variable regardless on whether it's being displayed in the frontend
Resources
- I'm not sure how we calculate it currently, we could use what we have or follow Medium's calculations