Search by

quire / analytics

dpoposki

Analytics for Quire: Google Analytics 4, loaded only once visitors allow it, and events marked in plain HTML.

Package info

github.com/quirecms/analytics

Homepage

Issues

Type:quire-extension

pkg:composer/quire/analytics

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

v0.3.0 2026-11-13 19:42 UTC

This package is auto-updated.

Last update: 2026-11-13 19:44:57 UTC


README

Analytics for Quire: Google Analytics 4, loaded only once visitors allow it, and events marked in plain HTML.

It runs through quire/privacy: Google Analytics is a service visitors are asked about ("Analytics"), the site's Content-Security-Policy allows Google's tag for it, and the privacy notice lists it. The owner turns it on by setting the measurement ID in the admin's settings ("Analytics"), or with bin/console quire:settings:set quire-analytics.ga4_id G-ABC123DEF4.

  • gtag.js directly, never Tag Manager. Consent Mode v2, basic: it loads only with consent; advertising, Google signals and ad personalisation are off.
  • The page's address and the referrer go without their query string, except campaigns (utm_*) and the parameters the owner keeps (quire-analytics.ga4_keep).
  • Nothing is sent from previews, a theme being tried, error pages, sign-in and account pages, the admin, outside production, or on another domain than the site's own (quire/privacy's test mode).
  • Withdrawing stops it and removes its cookies.
  • Events: <a href="/contact" data-quire-event="contact_click" data-quire-event-place="footer"> sends contact_click with {place: "footer"}, only once the visitor allowed analytics.

See the documentation.

License: MIT.