nswdpc/silverstripe-analytics-chooser

Analytics chooser extensions for site settings.

Maintainers

Package info

github.com/nswdpc/silverstripe-analytics-chooser

Type:silverstripe-vendormodule

pkg:composer/nswdpc/silverstripe-analytics-chooser

Transparency log

Statistics

Installs: 2 904

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 1

v1.0.0 2026-08-03 04:36 UTC

This package is auto-updated.

Last update: 2026-08-03 04:37:16 UTC


README

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

Currently supported:

  • GA4
  • 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 <head>

<% include NSWDPC/AnalyticsChooser/Implementation %>

Document <body>

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

  • PD Web Team

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.