Maintainers should follow the following steps to be able to monitor site traffic using Google Analytics service.
Haiku Analytics (haiku.analytics) is the Haiku add-on to provide better control over site statistics.
After installing haiku.analytics, the Site Administrator gets access to the configuration of this at SITE_URL/@@haiku-analytics-manage (also accessible through the site setup) where you can paste Google Analytics tracker code, select plugins to track events or add simple visit counter. Full list of available options:
Visit counter: This is a simple tool to gather all unique page hits. It is really simple, it just counts all the hits from the moment it has been enabled. These numbers can be used to sort portal items by their popularity. The Site Administrator can change this number by going to page and editing the 'Visit counter' field on the 'Analytics' tab.
Visit counter content types:
Only selected content types are enabled, hits are counted for them.
Visit counter position:
A small label with the hits number can be deployed next to the page title, under the page header or placed in page footer.
Visit counter visibility:
Counter can be visible for all the site guests, logged in users or just Site Administrators