Provide basic Google Analytics integration for SilverStripe CMS.
Provide basic Google Analytics integration for SilverStripe CMS.
$ composer require studiobonito/silverstripe-google-analytics
Copy the 'silverstripe-google-analytics' folder to the root of your SilverStripe installation.
The module provides a global template variable $GoogleAnalytics
that can be used to insert the tracking code into any
page template. This global variable uses the tracking ID specified in the CMS in the Setings > Google Analytics
tab.
Google suggests placing tracking code in your document <head>
as in the example below. However this module leaves that
choice to the developer.
<head>
<title>Example.com</title>
$GoogleAnalytics
</head>
$ phpunit
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The BSD-2-Clause License. Please see License File for more information.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem