Download the PHP package syntro/silverstripe-google-analytics without Composer
On this page you can find all versions of the php package syntro/silverstripe-google-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download syntro/silverstripe-google-analytics
More information about syntro/silverstripe-google-analytics
Files in syntro/silverstripe-google-analytics
Package silverstripe-google-analytics
Short Description Adds Google Analytics to your page
License BSD-3-Clause
Informations about the package silverstripe-google-analytics
Silverstripe Google Analytics
Adds Google Analytics to your Website. Uses syntro/silverstripe-klaro
for consent management.
Installation
To install this module, run the following command:
Usage
After installing, you have to configure analytics to use your datastream:
After that, Silverstripe will serve Google Analytics after the user has given consent.
Configuration
You can use the following options on Syntro\SilverstripeGoogleAnalytics\Config
to influence how the analytics script is loaded:
klaro_create_default_purpose
: if true, a new purpose will be createdklaro_purposes
: Add the created service to additional purposes. If 'klaro_create_default_purpose' is true, the 'analytics' purpose will be appended.klaro_enabled_by_default
: if true, the generated service will be enabled by default. WARNING: enabling this will most likely violate GDPR rules
Styling klaro!
This Module uses klaro! for consent management via the syntro/silverstripe-klaro
module. We recommend checking that module out for information on how to style the
consent-window.
All versions of silverstripe-google-analytics with dependencies
silverstripe/framework Version ^4
syntro/silverstripe-klaro Version ^1