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

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책