Question

How do I add page statistics tracking in CQ5?

Answer, Resolution

Similar to the Geometrixx site you can add the /libs/foundation/components/page/stats.jsp file to the end of the body of your all your pages (most likely via adding it to a global template jsp.

...
<cq:include script="/libs/foundation/components/page/stats.jsp" />
</body>

You can configure the URL for tracker.js under /libs/wcm/core/config.author/com.day.cq.wcm.core.stats.PageViewStatistics/pageviewstatistics.trackingurl for author and /libs/wcm/core/config.publish/com.day.cq.wcm.core.stats.PageViewStatistics/pageviewstatistics.trackingurl for publish.

Applies to

CQ 5.X

Za ta izdelek je bila izdana neprenosljiva licenca za priznanje avtorstva, nekomercialno uporabo in skupno rabo pod enakimi pogoji 3.0  Objav v storitvah Twitter™ in Facebook ne urejajo pogoji pogodbe Creative Commons.

Pravna obvestila   |   Pravilnik o zasebnosti v spletu