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

Cannot add analytics scripts via site settings

    Details

      Description

      Due to some escaping code added in https://issues.liferay.com/browse/LPS-123822 it is no longer possible to add an analytics script to a page.

      Steps to reproduce.

      1. Login as admin
      2. Go to Site-> Configuration-> Settings-> Advanced ->ANALYTICS
      3. Find the Piwik configuration and add this javascript:

      <script> console.log("piwik")</script>

      4. Save and visit the home page

      Expected Result:

      When visiting the home page, the Javascript console contains a log entry "piwik"

      Actual Result:

      The code "<script> console.log("piwik")</script>" is shown at the top of the page

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-echo Product Team Echo
              Reporter:
              allen.ziegenfus Allen Ziegenfus
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
              Engineering Assignee:
              Laszlo Pap
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                28 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP98
                  7.0.X
                  7.1.10 DXP FP23
                  7.1.10.6 SP6
                  7.1.X
                  7.2.10 DXP FP12
                  7.2.X
                  7.3.7 CE GA8
                  7.3.10 DXP FP2
                  7.3.X
                  7.4.0 CE GA1 DXP 7,4
                  Master