Download the PHP package innoweb/silverstripe-googleanalytics without Composer
On this page you can find all versions of the php package innoweb/silverstripe-googleanalytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innoweb/silverstripe-googleanalytics
More information about innoweb/silverstripe-googleanalytics
Files in innoweb/silverstripe-googleanalytics
Package silverstripe-googleanalytics
Short Description Adds Google Analytics to the site using Gtag or Google Tag Manager.
License BSD-3-Clause
Homepage http://github.com/xini/silverstripe-googleanalytics
Informations about the package silverstripe-googleanalytics
silverstripe-googleanalytics
Overview
Adds Google Analytics to the site supporting:
- Global Site Tag (gtag.js)
- Google Tag Manager (GTM)
The module is derived from Shea's analytics module for multisites and supports single site, multisites and configured-multisites setups.
Requirements
- Silverstripe CMS 5.x
Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the 4.x release line. For Silverstripe 3, please see the 3.x release line.
Installation
Install the module using composer:
Add <% include Innoweb/GoogleAnalytics/GoogleAnalyticsHead %>
in the head
and <% include Innoweb/GoogleAnalytics/GoogleAnalyticsBody %>
right after the opening body
tag in your
main page template.
Then run dev/build.
Usage
All settings can be configured from the CMS.
In your SiteConfig (or the config of your Site when using multisites) you find a tab 'Google Analytics'. Select the analytics type you have setup for your GA account and add the ID. Done.
All GA code only gets inserted in live mode.
License
BSD 3-Clause License, see License