A module to add Google Analytics (UA, v4) & Tag-Manager (just script version but not noscript iframe) & Clarity Trackingcode per SiteConfig in CMS
- silverstripe/cms ^4
- silverstripe/siteconfig ^4
- lerni/klaro-cookie-consent
Composer is the recommended way of installing Silverstripe modules.
composer require lerni/silverstripe-googleanalytics
Run dev/build
This module allows XML files to be uploaded into assets.
Set the Tracking IDs in yoursite.tld/admin/settings and you're set.
- Trackingcodes are only shown in live-mode.
- opt-out may use
lerni/klaro-cookie-consent