Adding a New Analytics Service
Liferay DXP includes support for Google Analytics and Piwik for analyzing traffic on your site. If you require a different analytics service, you can add it for your site.
Adding the New Analytics Service
-
Open the Global Menu () and go to Control Panel → Instance Settings.
-
Select Analytics under the Platform heading.
-
Enter the name of any additional service you want to add in the Analytics field provided.
Adding the Tracking Code for your Analytics Service
-
Once you have entered the name, open the Site Menu and go to Configuration → Settings → Advanced → Analytics page for the site where you wish to add analytics.
NoteIn Liferay DXP 7.1 and 7.2, navigate to Configuration → Site Settings → Advanced → Analytics in the Site Menu.
-
Copy the JavaScript tracking code provided by your analytics platform into the corresponding field for your service.
Now all pages on the selected site contain the tracking script and send analytics data to your analytics platform.