Using Web-Analytics Tools

For created brands, you can use various web analytics tools to track screen usage using screen identifiers.

To configure the use of a web analytics tool for a brand:

  1. In the PCP, go to System > Settings > Brands in the Branding group.
  2. Click the name of the brand for which you want web data to be collected and analyzed.
  3. Switch to the Web-analytics Integration tab and click Edit.
  4. Fill out the Tracking code field with the necessary tracking instructions.

    For example, for Google Analytics, it may be:

    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','googleAnalytics');
    googleAnalytics('create', 'UA-XXXXXX-X', 'auto'); // replace UA-XXXXX-X with your account ID
    googleAnalytics('send', 'pageview', {'page': '/ui/' + window.screenContext.screenId });
    </script>

    where UA-XXXXX-X is the identifier of your Google Analytics account.

    Important: A Google Analytics account (or another analytics tool account) needs to be created beforehand.

  5. Click Submit. Your instructions are saved.