Google Tag Manager
- Go to System > Site Templates > Mokonyx > Analytics tab.
- Enter your GTM Container ID (format:
GTM-XXXXXXX). - Save. The GTM snippet is automatically injected into the page head and body.
Google Analytics (GA4)
- In the Analytics tab, enter your GA4 Measurement ID (format:
G-XXXXXXXXXX). - The gtag.js script loads automatically with
anonymize_ip: truefor privacy compliance.
Smart Visitor Detection
When GTM or GA4 is active, Mokonyx automatically pushes anonymised visitor properties to the dataLayer:
- Login status (guest/registered)
- User group
- Page type (article, category, component, etc.)
These are set as GA4 user_properties for persistent session-scoped dimensions. No personally identifiable information (PII) is sent.
Print View Tracking
The component/print view automatically sends content_group: print_view to GA4, allowing you to track print and modal usage separately in your analytics.
Tracking the Administrator (Backend)
By default Mokonyx tracks only the public front end. If you also want to measure administrator (backend) usage, the companion Admin Extender plugin (System - Mokonyx Admin) can mirror your existing Google tracking into the Joomla administrator.
- Go to System > Manage > Plugins and open System - Mokonyx Admin.
- On the Analytics tab, set Track administrator to Yes (it is off by default).
- Save. The plugin injects the same GTM container and/or GA4 tag you configured on the site template - there is no separate ID to enter. If neither is configured on the site template, nothing is injected.
Keeping backend traffic separate
Administrator activity is staff activity, so Mokonyx flags every backend hit so you can segment (or exclude) it in your reports:
visitor_type = adminvisitor_group- the administrator's user grouppage_type = admin.<component>(for exampleadmin.com_content.article)
These are pushed via a moko.admin_view dataLayer event and set as GA4 user_properties. To keep your public-site metrics clean, add a GA4 filter or a Looker Studio segment that excludes visitor_type = admin.
Privacy and consent
The administrator is authenticated staff, so no cookie-consent banner is shown; Google Consent Mode grants analytics storage and denies advertising storage. Backend tracking is opt-in and can be switched off at any time from the plugin.