Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72094

Google Analytics does not work properly when SPA(senna) is enabled

    Details

      Description

      Google Analytics page views are not sent to the Google Analytics service for page navigation when SPA(senna) is enabled. This is due to the fact that Google Analytics requires an additional set of operations to occur on page navigation changes within the portal via the SPA engine.

      The solution is to add the lines of code as specified by Google in the following document.
      https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications

      These lines can be added as part of a senna page navigation event, in this case 'endNavigation'.

        Attachments

          Activity

            People

            • Assignee:
              lu.liu Lu Liu
              Reporter:
              david.rison David Rison
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 13 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP14
                7.0.0 DXP SP3
                7.0.3 CE GA4
                7.0.X EE
                Master