-
Task
-
Resolution: Fixed
-
Should have
-
None
-
3
-
Analytics
-
Sprint #245
-
phobos
Summary
The page_date parameter is used in both Google Analytics and Mixpanel tracking plan, but currently it has been implemented using a custom javascript code through Google Tag Manager. The code often needs to be 'customised' by NROs since dates are shown in different formats depending on the site configuration (eg. dd/mm/yyyy or mm/dd/yyyy).
We should standardise this in the Planet 4 dataLayer to secure a better quality reporting.
Requirements
- Implement a page_date dataLayer variable in Planet 4 page load with the value standardised in the format:
- An ISO formatted date YYYY-MM-DDTHH:MM:SS in UTC e.g. Last Purchase = "2022-10-30T13:30:25", Last Login = "2022-10-29".
- All timestamps need to be sent in UTC timezone in an ISO format.
- Add this new variable on Posts post type existing dataLayer array.
Obs: If we don't have the timestamp information in Wordpress, we can try sending it with a unique timestamp for all posts.