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

Piwik Analytics code is inserted into pages incorrectly, and is displayed at the top of the page

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.3.6 CE GA7
    • Fix Version/s: None
    • Component/s: Analytics
    • Labels:
      None
    • OS:
      openSUSE 13.1
    • JDK:
      Amazon Corretto 8
    • Application Servers:
      Apache Tomcat 9.0.x

      Description

      This occurs on a brand new instance of Liferay 7.3.6 CE.  It is easily reproducible from the current download liferay-ce-portal-tomcat-7.3.6-ga7-20210301155526191.

      Steps to Reproduce

      In a brand new installation, after the setup wizard:

      1. Open the site menu pane
      2. Expand Configuration
      3. Click on Site Settings
      4. Click on the Advanced tab
      5. Enter any code in the Piwik text area: <script></script> is enough
      6. Click Save

      Expected Results
      The Piwik script code would be inserted into the page as a functioning script.

      Actual Results
      The Piwik script code it surrounded with quotes, so that the browser treats it as text and displays it on the top of every page.

      Note: This is more than an annoyance in my case as I have almost 200 sites with Piwik analytics code.   So I would have to touch each one, remove the code from the settings, and build something in the theme to add the Piwik code (which is also different for each site).

       

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            scott.mcintosh@icfi.com Scott McIntosh
            Participants of an Issue:
            Recent user:
            Scott McIntosh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              40 weeks, 4 days ago

                Packages

                Version Package