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

Can't set Create Only Fields for Google Analytics

    Details

      Description

      While LPS-106891 introduced GA Custom Configuration, GA has some special fields that can only be set in the create method. ( https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference )

       

      Steps:
      1. Go to Site Settings/Advanced/Analytics for a site and provide a Google Analytics ID. Save.
      2. Inspect the source code of a page in that site, and you can see the

      ga('create', 'UA-XXXX-Y', 'auto')

      code having been added.
      3. Go back to the settings and put this line in the new configuration field (Google Analytics Custom Configuration ):

      {'siteSpeedSampleRate': 10}
      

      4. Inspect the code again.

      Actual result: This "Create Only Field" is not set in the create method, but after it.

      Expected result: This "Create Only Field" is set in the create method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chao.wang Chao Wang
                Reporter:
                balazs.safrany-kovalik Balázs Sáfrány-Kovalik
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
                Engineering Assignee:
                Balázs Sáfrány-Kovalik
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  20 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP18
                  7.1.X
                  7.2.10 DXP FP5
                  7.2.10.2 DXP SP2
                  7.2.X
                  7.3.1 CE GA2
                  7.3.2 CE GA3
                  Master