Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7605

Implement page_date dataLayer variable on page load for Posts

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.140.0
    • 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.

      Resources

            mleray Maud Leray
            jmarubay Julia Marubayashi
            Molly Marcott Molly Marcott
            Osong Agberndifor Osong Agberndifor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: