• Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:


      This feature provides customers with a way to disable JS tracking conditionally, by setting a global variable. This approach is similar to the one provided by Google Analytics (see

      By setting:


      <script>window['content-targeting-disable-track'] = true;</script>


      the JS tracking client will stop tracking user events. For example, a customer could set this variable to true initially, and wait for the user to accept the site conditions before it is set to false.

      The variable is not set by default, which means the JS tracking is enabled and behaves as in previous versions of Audience Targeting.

      Steps to validate:

      1. Install the latest version of Audience Targeting on Liferay 7.1
      2. Login as an admin
      3. Open the browser Dev Tools and monitor Network activity
      4. Reload any site page and assert that the Network activity monitor shows a track request with some user events
      5. Go to Configuration > Site Settings 
      6. Go to the Advanced tab, go to the Analytics section and in the Piwik input, enter the JS snippet previously described, including the script opening and closing tags (see screenshot). Save changes.
      7. Reload any site page and assert that the Network activity monitor does not show a track request.






            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: