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

              team-echo Product Team Echo
              allen.ziegenfus Allen Ziegenfus
              Jonathan McCann Jonathan McCann
              Laszlo Pap Laszlo Pap
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 38 weeks, 1 day 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
                  7.4.13 DXP GA1
                  Master