nswdpc/silverstripe-analytics-chooser

Analytics chooser extensions for site settings.

Installs: 815

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:silverstripe-vendormodule

v0.3.0 2024-07-31 01:13 UTC

This package is auto-updated.

Last update: 2024-10-31 00:18:08 UTC


README

Provides a basic set of analytics services, to choose within the site settings administration area.

Currently supported:

  • GA4
  • GA3
  • GTM
  • GTM (with CSP nonce support)

Developers can provide their own service by creating a class that implements the abstract service.

Installation

composer require nswdpc/silverstripe-analytics-chooser

Usage

Once installed, your theme will need to include the templates provided by this module:

Document

<% include NSWDPC/AnalyticsChooser/Implementation %>

Document

Apply an iframe if using GTM:

<% include NSWDPC/AnalyticsChooser/GTMIframe %>

You can override these templates in your project theme, in the usual Silverstripe way.

License

BSD-3-Clause

Documentation

Configuration

None, currently

Maintainers

Bugtracker

We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.

Please review the code of conduct prior to opening a new issue.

Security

If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.

Please review the code of conduct prior to completing a pull request.