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

GTM: Investigate why script not loading when 'Enforce Cookies' is enabled

    XporterXMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.24.0
    • Labels:
    • Story Points:
      8
    • Sprint:
      Sprint #49, Sprint #50
    • Section:
      Admin Panel
    • P4 site:
      Netherlands
    • Track:
      Development

      Description

      In Netherlands production the google tag manager script (Google Tag Manager Identifier planet4 setting) sometimes is included in the page response and sometimes not.
      I suspect that it has to do with the 'Enforce Cookies policy' planet4 setting being enabled.

      If 'Enforce Cookies policy' planet4 setting is enabled, the user has to consent to cookies in order for the gtm script to be included.
      I think the problem is that the cookie's value (cookie: greenpeace=2) does not make it to the application and the app serves the cached content.

      Investigate why it is happening and if possible change the way that gtm script is included in page.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              sdeshmuk Sagar Deshmukh
              Reporter:
              kdiamant Kyriakos diamantis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: