Analytics Routing

Routes website tracking events to Google Tag Manager, GA4 and HubSpot with consent checks

Community 0 15/wk MIT v0.1.0

Installation

pnpm add @ciphercru/payload-analytics

About

Analytics Routing lets a Payload site decide which tracking events it reports, where they go, and under what consent. Your website sends a plain event such as a contact form submission, and the plugin checks it against an event list you manage in the admin panel. Each event can be renamed, limited to certain environments, and mapped to each destination with its own parameters.

Destinations included are Google Tag Manager, Google Analytics 4 and HubSpot. Visitors who have not agreed to tracking are held back for each provider according to the consent rules you set, so the site does not send data it should not. Other providers can be added without changing the code that tracks events.

Package info

Package name
@ciphercru/payload-analytics
Latest version
0.1.0
Unpacked size
335 kB
License
MIT
Weekly downloads
15
Last publish
Oct 27, 2026

Similar plugins

More in Analytics

Creates and syncs Dub shortlinks for Payload documents as they are published

Sends Payload server errors and selected HTTP errors to Sentry with user context

Splits page traffic between variants you create in the Payload admin

Sales totals by period, product and customer for Payload ecommerce stores

Logs AI crawler visits, serves llms.txt and shows an AI visibility dashboard

Tracks AI API token spend and stops jobs when daily, monthly or per-job budgets run out