Download the PHP package arillo/silverstripe-googleanalytics without Composer
On this page you can find all versions of the php package arillo/silverstripe-googleanalytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arillo/silverstripe-googleanalytics
More information about arillo/silverstripe-googleanalytics
Files in arillo/silverstripe-googleanalytics
Package silverstripe-googleanalytics
Short Description Silverstripe Google analytics
License MIT
Homepage https://github.com/silverstripe-googleanalytics
Informations about the package silverstripe-googleanalytics
arillo/silverstripe-googleanalytics
Adds google analytics tracking script to your site, if it is in production (live) mode.
Requirements
SilverStripe ^4.0
For a SilverStripe 3.x compatible version of this module, please see the 1.x branch, or 0.x release line.
Setup
Google analytics
To make it work, you have to define AO_GA_TRACKING_CODE
environment variable.
Add the following into the <head>
section of your template:
Google analytics 4
To make it work, you have to define AO_GA4_TRACKING_CODE
environment variable.
Add the following into the <head>
section of your template:
Customize
You can overwrite GoogleAnalytics.ss
(or GA4.ss
) on project basis, if you need some different behaviour.
Google tag manager
To make it work, you have to define AO_GTM_CODE
environment variable.
Add the following into the <head>
section of your template:
After the opening <body>
tag:
Customize
You can overwrite GoogleTagManager.ss
on project basis, if you need some different behaviour.
Changelog
1.0.0
- SS4 compat
1.0.1
- added GTM
1.0.2
- added GA4