Analytics can provide you with important and interesting information about how your website is being used.
You can also configure your own instance of the Generic Analytics Snippets to define a new service configurations.
The information is then collected by means of small snippets of code that are added to the web pages. For example:
Scripts must not be enclosed in script tags.
Such snippets enable data to be collected and reports generated. The actual data collected depends on the provider and the actual code snippet used. Example statistics include:
- how many visitors over time
- how many pages visited
- search terms used
- landing pages
The Geometrixx-Outdoors demo site is configured so that the attributes provided in the Page Properties are appended to the html source code (just above the </html> endtag) in the corresponding js script.
If your own /apps do not inherit from the default page component (/libs/foundation/components/page) you (or your developers) have to make sure that the corresponding js scripts are included, for example by either including cq/cloudserviceconfigs/components/servicescomponents, or using a similar mechanism.
Without this, none of the services (Generic, Analytics, Target, etc) will work.
The snippet can now be seen if you view the Page Source for the page.
After a suitable period of time has elapsed, you will be able to view the statistics that have been collected.
If the configuration is attached to a page that has child pages, the service is inherited by those as well.