Web analytics services are responsible for getting information about the customer. These data are necessary to optimize processes and marketing. This information has many aspects:
Web analytics services are responsible to collect the business data and transfer these data to the analytics service.
Most pages of the storefront are cached. So the main pipelines of a page will not be executed again if the page has been cached. This can lead to missing tracking events when the server side tracks the events. It is important that the implementation uses uncached remote includes to trigger the events. The client-side tracking implements the analytics services call via a Java script or tracking pixels. Mostly, the client-side tracking depends on the service provider's needs.
A web analytics integration combines two major implementation tasks:
The first task can be achieved by using the Business Tracking Framework. The storefront application provides a growing set of business events.
The second task depends on the service to integrate. A comparable demo client-side integration is available at Cookbook - WebAnalytics.