Configuring web analytics
Web analytics provide a way to measure and later analyze key metrics of your website such as visits, page views, traffic sources and more. The web analytics are built into Xperience and you can access the data directly in the administration interface.
To be able to work with metrics in the Web analytics application, you need to have the permissions for the Web analytics module.
First, you need to enable web analytics:
In order to correctly log incoming traffic from search engines, you need to configure individual search engines in the system:
Logging of web analytics is anonymous and does not store personal data of your site’s visitors. However, if you need to ensure extremely strict data protection compliance, you can customize the system and make logging of web analytics depend on the visitor’s consent or another condition:
Additionally, you can use the web analytics API to add tracking of custom actions as web analytics:
You can also configure the system to automatically delete old web analytics data that is no longer needed:
How web analytics work
After you set up and enable web analytics, the system performs the tracking on the side of the live site application using JavaScript and logging endpoints.
When a tracked event (such as a page view) occurs, a record is logged in the application’s memory. The system periodically processes the analytics data from the memory and saves it into the database as a batch operation. By default, analytics data is processed every 10 seconds. If you wish to adjust the processing interval to optimize your site’s memory or database performance, add the CMSWebAnalyticsProcessingInterval key into the appSettings section of your live site application’s web.config file.
<add key="CMSWebAnalyticsProcessingInterval" value="30" />
The logged analytics data is then loaded from the database and presented in the administration interface using reports (defined through the Reporting application).