michaeljjames / silverstripe-google-analytics
Provides an easy way for clients to change their google analytics tracking id without making code changes
Package info
github.com/MichaelJJames/silverstripe-google-analytics
Type:silverstripe-module
pkg:composer/michaeljjames/silverstripe-google-analytics
dev-master
2017-02-21 17:01 UTC
Requires
- php: >=5.3.0
- silverstripe/cms: ^3
- silverstripe/framework: ^3
This package is not auto-updated.
Last update: 2026-03-05 02:37:32 UTC
README
silverstripe/cms: 3.1+
Installation
composer require michaeljjames/silverstripe-google-analytics dev-master
Usage
- Once installed the files are in the root of your website run a dev/build
- You will now see Two new fields in Settings/Analytics
- Place your Tracking ID into the correct field and check the enable track checkbox
- Place $SiteConfig.Analytics into Page.ss just before the closing head tag