ContiDigital

payload plugin ga4 ecommerce

by ContiDigital
Analytics
v3
^3.37.0
MIT

Overview

Summary generated from the README

Connects Payload to the Google Analytics 4 Data API using a service account. It adds an analytics dashboard route, injects an Analytics tab into configured collections, and mounts typed API endpoints. Includes caching, retry with backoff and rate limiting. Requires Payload 3.37 or newer, and recharts for the admin charts.

Features

  • Admin analytics route with KPI cards, timeseries chart, top pages, sources and events
  • Automatic Analytics tab on configured collections showing per-URL metrics and period comparison
  • Tracked business event reporting such as purchase and add_to_cart
  • Database-backed or Redis cache with LRU eviction and cache-bypass controls
  • Outbound concurrency queue with retries and inbound per-IP rate limiting
  • Ten API endpoints covering reports, realtime visitors, metadata and cache clearing

Use cases

  • Show page and product traffic metrics to editors directly in the Payload admin
  • Track ecommerce events and top traffic sources for a Payload storefront
  • Expose GA4 data through access-controlled endpoints for custom dashboards

From the author

GA4 analytics plugin for Payload CMS with admin dashboards, record analytics, caching, and retry/rate-limit controls.

Installation

npm i payload-plugin-ga4-ecommerce

10

Stars

0

Forks

1

Open Issues

6 months ago

Last Updated

115

Weekly Downloads

v1.1.0

npm Version

506.5 KB

Unpacked Size

1

Dependencies

GitHub stars

10+1 since Sep 7

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 202610
Dec 5, 202610
Dec 4, 202610
Dec 3, 202610
Dec 2, 202610
Dec 1, 202610
Nov 30, 202610
Nov 29, 202610
Nov 28, 202610
Nov 27, 202610
Nov 26, 202610
Nov 25, 202610
Nov 24, 202610
Nov 23, 202610
Nov 22, 202610
Nov 21, 202610
Nov 20, 202610
Nov 19, 202610
Nov 18, 202610
Nov 17, 202610
Nov 16, 202610
Nov 15, 202610
Nov 14, 202610
Nov 13, 202610
Nov 12, 202610
Nov 11, 202610
Nov 10, 202610
Nov 9, 202610
Nov 8, 202610
Nov 7, 202610
Nov 6, 202610
Nov 5, 202610
Nov 4, 202610
Nov 3, 202610
Nov 2, 202610
Nov 1, 202610
Oct 31, 202610
Oct 30, 202610
Oct 29, 202610
Oct 28, 202610
Oct 27, 202610
Oct 26, 202610
Oct 25, 202610
Oct 24, 202610
Oct 23, 202610
Oct 22, 202610
Oct 21, 202610
Oct 20, 202610
Oct 19, 202610
Oct 18, 202610
Oct 17, 202610
Oct 16, 202610
Oct 15, 202610
Oct 14, 202610
Oct 13, 202610
Oct 12, 202610
Oct 11, 202610
Oct 10, 202610
Oct 9, 202610
Oct 8, 202610
Oct 7, 202610
Oct 6, 202610
Oct 5, 202610
Oct 4, 202610
Oct 3, 202610
Oct 2, 202610
Oct 1, 202610
Sep 30, 202610
Sep 29, 202610
Sep 28, 202610
Sep 27, 202610
Sep 26, 202610
Sep 25, 202610
Sep 24, 202610
Sep 23, 202610
Sep 22, 202610
Sep 21, 202610
Sep 20, 202610
Sep 19, 202610
Sep 18, 202610
Sep 17, 202610
Sep 16, 202610
Sep 15, 202610
Sep 14, 202610
Sep 13, 20269
Sep 12, 20269
Sep 11, 20269
Sep 10, 20269
Sep 9, 20269
Sep 8, 20269
Sep 7, 20269
npm weekly downloads

97−78 since Sep 7

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 6, 202697
Dec 5, 202699
Dec 4, 202674
Dec 3, 202664
Dec 2, 202655
Dec 1, 202662
Nov 30, 202671
Nov 29, 2026191
Nov 28, 2026248
Nov 27, 2026271
Nov 26, 2026306
Nov 25, 2026310
Nov 24, 2026305
Nov 23, 2026343
Nov 22, 2026224
Nov 21, 2026168
Nov 20, 2026146
Nov 19, 2026152
Nov 18, 2026143
Nov 17, 2026163
Nov 16, 2026135
Nov 15, 2026135
Nov 14, 2026136
Nov 13, 2026153
Nov 12, 2026119
Nov 11, 2026115
Nov 10, 202694
Nov 9, 202676
Nov 8, 202678
Nov 7, 202681
Nov 6, 202662
Nov 5, 202668
Nov 4, 202686
Nov 3, 202686
Nov 2, 202689
Nov 1, 202697
Oct 31, 202693
Oct 30, 2026145
Oct 29, 2026129
Oct 28, 2026105
Oct 27, 2026111
Oct 26, 2026108
Oct 25, 202699
Oct 24, 2026106
Oct 23, 202639
Oct 22, 202657
Oct 21, 202667
Oct 20, 202663
Oct 19, 202666
Oct 18, 202679
Oct 17, 202671
Oct 16, 202677
Oct 15, 202666
Oct 14, 202660
Oct 13, 202661
Oct 12, 202668
Oct 11, 202661
Oct 10, 202655
Oct 9, 202659
Oct 8, 202663
Oct 7, 202669
Oct 6, 202674
Oct 5, 202668
Oct 4, 202664
Oct 3, 202663
Oct 2, 202667
Oct 1, 202673
Sep 30, 202666
Sep 29, 202668
Sep 28, 202671
Sep 27, 202666
Sep 26, 202663
Sep 25, 202667
Sep 24, 202657
Sep 23, 202665
Sep 22, 202679
Sep 21, 2026118
Sep 20, 2026127
Sep 19, 2026145
Sep 18, 2026134
Sep 17, 2026178
Sep 16, 2026179
Sep 15, 2026155
Sep 14, 2026138
Sep 13, 2026147
Sep 12, 2026175
Sep 11, 2026180
Sep 10, 2026165
Sep 9, 2026166
Sep 8, 2026188
Sep 7, 2026175

Each point is npm's rolling 7-day download count.

Health Score

44/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1172903255-root.svg)](https://payloaddirectory.dev/plugins/1172903255-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1172903255-root"><img src="https://payloaddirectory.dev/badge/1172903255-root.svg" alt="Payload Directory"></a>
Updated May 10, 2026Created Mar 4, 2026Published May 10, 2026

README

payload-plugin-ga4-ecommerce

Production-grade Google Analytics 4 reporting for Payload CMS v3.

Originally built as a custom integration for Fine's Gallery, a high-traffic marble and stone ecommerce storefront running Payload CMS in production. Extracted and open-sourced as a standalone plugin for any Payload v3 project that needs real GA4 analytics inside the admin panel.

Ships a full GA4 Data API service layer with admin analytics UI, per-record collection analytics, tiered caching, bounded concurrency, retry with exponential backoff, in-flight request deduplication, and dual-layer rate limiting in a single Payload plugin.

Also fully compatible with the official Payload Ecommerce Template. See Ecommerce Template Setup below.

Production Demo

Analytics dashboard and per-record analytics running on Fine's Gallery in production.

Features

Analytics dashboard: dedicated admin route with KPI cards (views, visitors, sessions, bounce rate, average session duration), global timeseries chart, top landing pages, top pages, top traffic sources, top events, and live visitor count.

Record-level analytics: automatic "Analytics" tab injected into configured collections (products, categories, pages, blog posts, etc.) showing per-URL aggregate metrics, timeseries chart, period-over-period comparison with percentage deltas, and traffic source breakdown for that specific record.

Business event tracking: configure tracked event names (purchase, add_to_cart, phone_call, begin_checkout_process, submit_order, etc.) and get prioritized event reporting in the dashboard.

Full GA4 Data API coverage: runReport, runRealtimeReport, getMetadata, and checkCompatibility, all exposed as typed Payload endpoints with full request validation.

Tiered caching: two strategies:

  • payloadCollection: DB-backed cache with LRU eviction (default, zero infrastructure)
  • redis: distributed cache for multi-node deployments with race-safe eviction

Includes admin UI cache-bypass refresh controls, request-level useCache: false support, and an admin-gated cache clear endpoint for operational cache invalidation.

Dual-layer rate limiting: outbound bounded concurrency queue with in-flight request deduplication to protect GA4 API quotas; inbound per-IP, per-route sliding window to protect your endpoints from abuse.

Retry with backoff: exponential backoff + full jitter for transient GA4 failures (HTTP 429/500/502/503/504, gRPC RESOURCE_EXHAUSTED / UNAVAILABLE / DEADLINE_EXCEEDED). Configurable max retries and delay caps.

GA4 quota visibility: optional includePropertyQuota returns GA4 PropertyQuota data with responses so you can monitor token consumption.

Installation

Requires Node ^18.20.2 || >=20.9.0 and Payload CMS ^3.37.0.

pnpm add payload-plugin-ga4-ecommerce

Optional peer dependencies:

PackageWhen required
@payloadcms/next, @payloadcms/ui, react, react-domAdmin analytics UI (usually already present in Payload admin apps)
rechartsAdmin analytics UI charts
rediscache.strategy: 'redis'

Quick start

import { buildConfig } from 'payload'
import { payloadGa4AnalyticsPlugin } from 'payload-plugin-ga4-ecommerce'

export default buildConfig({
  plugins: [
    payloadGa4AnalyticsPlugin({
      propertyId: process.env.GA4_PROPERTY_ID!,
      getCredentials: async () => ({
        type: 'keyFilename',
        path: process.env.GA4_CREDENTIALS_PATH!,
      }),
      collections: [
        { slug: 'products', getPathname: (doc) => `/products/${doc.slug}` },
        { slug: 'pages', getPathname: (doc) => `/${doc.slug}` },
      ],
    }),
  ],
})

That's it. The plugin mounts 10 API endpoints, injects an Analytics sidebar route, and adds an Analytics tab to each configured collection.

Each collection entry needs either pathnameField (a field name containing the URL path) or getPathname (a function that builds the path from the document). The plugin uses this to query GA4 for that specific page's analytics.

Ecommerce Template Setup

If you're using the official Payload Ecommerce Template, add the plugin after ecommercePlugin() in your plugins array (since ecommercePlugin creates the products collection):

// src/plugins/index.ts
export const plugins: Plugin[] = [
  seoPlugin({
    /* ... */
  }),
  formBuilderPlugin({
    /* ... */
  }),
  ecommercePlugin({
    /* ... */
  }),

  // Add after ecommercePlugin
  payloadGa4AnalyticsPlugin({
    propertyId: process.env.GA4_PROPERTY_ID!,
    getCredentials: async () => ({
      type: 'keyFilename',
      path: process.env.GA4_CREDENTIALS_PATH!,
    }),
    collections: [
      { slug: 'products', getPathname: (doc) => `/products/${doc.slug}` },
      { slug: 'pages', getPathname: (doc) => `/${doc.slug}` },
      { slug: 'categories', getPathname: (doc) => `/categories/${doc.slug}` },
    ],
  }),
]

The template's products, pages, and categories collections all use Payload's built-in slugField(), and Products and Pages already use a tabs layout, so auto-injection works with zero additional configuration.

Production ecommerce configuration

Full example for a production ecommerce storefront with Redis caching, role-based access, and business event tracking:

payloadGa4AnalyticsPlugin({
  propertyId: process.env.GA4_PROPERTY_ID!,

  getCredentials: async () => {
    // JSON string from secret manager (recommended for production)
    if (process.env.GA4_CREDENTIALS_JSON) {
      return {
        credentials: JSON.parse(process.env.GA4_CREDENTIALS_JSON),
        type: 'json',
      }
    }
    // File path fallback (Docker volumes, local dev)
    return {
      path: process.env.GA4_CREDENTIALS_PATH!,
      type: 'keyFilename',
    }
  },

  // Disable gracefully when credentials aren't available (CI, tests)
  disabled: !process.env.GA4_PROPERTY_ID,

  // Role-based access: admin and SEO roles only
  access: ({ user }) =>
    Boolean(user && user.roles?.some((r: string) => ['admin', 'seo'].includes(r))),

  admin: {
    mode: 'route', // sidebar route, not dashboard injection
    navLabel: 'Analytics',
    route: '/analytics',
  },

  // Map collections to their public URL paths for per-record analytics
  collections: [
    { slug: 'products', getPathname: (doc) => `/products/${doc.slug}` },
    { slug: 'categories', getPathname: (doc) => `/categories/${doc.slug}` },
    { slug: 'pages', getPathname: (doc) => `/${doc.slug}` },
    { slug: 'blog', getPathname: (doc) => `/blog/${doc.slug}` },
  ],

  // Track ecommerce + lead-gen events
  events: {
    trackedEventNames: [
      'purchase',
      'add_to_cart',
      'begin_checkout_process',
      'submit_order',
      'phone_call',
      'product_inquiry',
    ],
    reportLimit: 10,
  },

  // Redis cache for multi-node deployment
  cache: {
    enabled: true,
    strategy: 'redis',
    redis: { url: process.env.REDIS_URL!, keyPrefix: 'ga4' },
    aggregateTtlMs: 5 * 60_000, // 5 minutes
    timeseriesTtlMs: 5 * 60_000,
    maxEntries: 2_000,
  },

  // Conservative rate limiting for production
  rateLimit: {
    enabled: true,
    maxConcurrency: 2, // 2 concurrent GA4 calls per node
    maxQueueSize: 100,
    maxRequestsPerMinute: 120, // per IP per route
    maxRetries: 3,
    baseRetryDelayMs: 250,
    maxRetryDelayMs: 4_000,
    jitterFactor: 0.2,
    requestTimeoutMs: 10_000,
    includePropertyQuota: true,
  },

  source: { dimension: 'sessionSource' },
})

GA4 setup

  1. In Google Cloud Console, enable the Google Analytics Data API.
  2. Create a service account and generate a JSON key file.
  3. In GA4 Admin > Property Access Management, grant the service account Viewer access.
  4. Note your numeric GA4 property ID (GA4 Admin > Property Settings).
Environment variableRequiredDescription
GA4_PROPERTY_IDYesNumeric GA4 property ID
GA4_CREDENTIALS_JSONOne of theseRaw JSON string of service account key
GA4_CREDENTIALS_PATHOne of theseFile path to service account JSON key

Admin integration modes

ModeBehavior
route (default)Dedicated sidebar route at /admin/analytics
dashboardPanel injected into the admin dashboard
bothSidebar route + dashboard panel
headlessEndpoints only, no admin UI

route is recommended for production apps with role-based custom dashboards (sales, warehouse, accounting, etc.) since it avoids layout conflicts.

Record-level analytics

When collections is configured, the plugin injects an "Analytics" tab into each collection's edit view showing:

  • Aggregate KPIs for that record's URL (views, visitors, session duration)
  • Timeseries chart (views + visitors over time)
  • Period-over-period comparison with percentage deltas
  • Top traffic sources for that specific page

Manual UI placement (optional)

By default (autoInjectUI: true), the plugin appends an "Analytics" tab to the end of your collection's existing tabs, or appends a root field if no tabs exist. Most projects should use this and skip this section entirely.

If you need the analytics panel in a specific tab position (e.g. second tab instead of last) or with a custom label, set autoInjectUI: false and place AnalyticsUIPlaceholder exactly where you want it:

import { AnalyticsUIPlaceholder, payloadGa4AnalyticsPlugin } from 'payload-plugin-ga4-ecommerce'

// In plugin config:
payloadGa4AnalyticsPlugin({
  autoInjectUI: false,
  /* ... */
})

// In a collection's field layout: analytics as the second tab with a custom label:
fields: [
  {
    type: 'tabs',
    tabs: [
      { label: 'Content', fields: [{ name: 'title', type: 'text' }] },
      { label: 'Insights', fields: [AnalyticsUIPlaceholder] },
      {
        label: 'SEO',
        fields: [
          /* ... */
        ],
      },
      {
        label: 'Settings',
        fields: [
          /* ... */
        ],
      },
    ],
  },
]

At config build time, the plugin replaces the placeholder with the fully hydrated analytics field. The placeholder itself never renders.

getAnalyticsField() and getAnalyticsTab() are also exported for programmatic construction when you need even more control.

API endpoints

Default full Payload API path: /api/analytics/ga4. The plugin api.basePath option controls the /analytics/ga4 portion.

MethodPathDescription
GET/healthPlugin status and configuration snapshot
POST/global/aggregateSite-wide KPI metrics for a timeframe
POST/global/timeseriesSite-wide metrics over time
POST/page/aggregatePer-URL KPI metrics for a timeframe
POST/page/timeseriesPer-URL metrics over time
POST/reportProperty breakdown (page, landing page, country, device, source, event)
GET/metadataAvailable GA4 dimensions and metrics
POST/compatibilityCheck metric/dimension compatibility
GET/liveReal-time active visitor count
POST/cache/clearClear the configured analytics cache

Available metrics

views visitors sessions sessionDuration bounceRate eventCount

Available timeframes

7d 30d 6mo 12mo currentMonth

Available report properties

page landingPage country device source event

Quota data

When rateLimit.includePropertyQuota is enabled, GA4 report responses include a propertyQuota object with quota status fields such as tokensPerDay, tokensPerHour, concurrentRequests, and serverErrorsPerProjectPerHour.

Cache bypass and clearing

Analytics POST endpoints accept useCache: false to bypass reads and writes for a single request. The admin UI exposes this as Refresh Without Cache.

POST /cache/clear clears the configured analytics cache using the same access control and inbound rate-limit pipeline as the other analytics endpoints. It does not call GA4. The response is a CacheClearResult with status: 'cleared' | 'disabled'.

Example requests

# Site-wide KPIs with period comparison
curl -X POST http://localhost:3000/api/analytics/ga4/global/aggregate \
  -H 'Content-Type: application/json' \
  -d '{"timeframe":"30d","metrics":["views","visitors","sessions","bounceRate"],"comparePrevious":true}'

# Site-wide KPIs bypassing cache for this request
curl -X POST http://localhost:3000/api/analytics/ga4/global/aggregate \
  -H 'Content-Type: application/json' \
  -d '{"timeframe":"30d","useCache":false}'

# Per-product analytics
curl -X POST http://localhost:3000/api/analytics/ga4/page/aggregate \
  -H 'Content-Type: application/json' \
  -d '{"pagePath":"/products/marble-fireplace-mantel","timeframe":"30d","comparePrevious":true}'

# Traffic sources for a specific page
curl -X POST http://localhost:3000/api/analytics/ga4/report \
  -H 'Content-Type: application/json' \
  -d '{"property":"source","pagePath":"/products/marble-fireplace-mantel","timeframe":"30d"}'

# Top landing pages
curl -X POST http://localhost:3000/api/analytics/ga4/report \
  -H 'Content-Type: application/json' \
  -d '{"property":"landingPage","timeframe":"30d"}'

# Live visitors
curl http://localhost:3000/api/analytics/ga4/live

# Clear the analytics cache
curl -X POST http://localhost:3000/api/analytics/ga4/cache/clear

Cache strategies

payloadCollection (default)

Uses a hidden Payload collection as cache storage. Shared across all app instances on the same database. LRU eviction via accessedAt timestamps with throttled expired-entry cleanup. No additional infrastructure.

redis

Distributed LRU cache using Redis sorted sets. Atomic eviction, race-safe for multi-node duplicate deletes. Requires cache.redis.url and the redis npm package installed in your project. Recommended for horizontally scaled deployments.

pnpm add redis
cache: {
  enabled: true,
  strategy: 'redis',
  redis: { url: 'redis://localhost:6379', keyPrefix: 'ga4' },
  aggregateTtlMs: 5 * 60_000,
  timeseriesTtlMs: 5 * 60_000,
  maxEntries: 2_000,
}

Rate limiting

Outbound (GA4 API protection)

Bounded concurrency queue (maxConcurrency default: 4). In-flight request deduplication means identical concurrent queries share one GA4 API call. Retry with exponential backoff + full jitter on transient failures. Queue overflow returns HTTP 429.

Inbound (endpoint abuse protection)

Per-route, per-client sliding window (60 seconds). Client IP resolved from x-forwarded-for / x-real-ip headers. Falls back to shared bucket without proxy headers.

Security note: IP resolution relies on a trusted reverse proxy. Deploy behind nginx, Cloudflare, or your cloud provider's load balancer.

Serverless environments

Both layers are per-node / per-process. In serverless (Vercel, AWS Lambda):

  • Limits are not globally coordinated across invocations.
  • Use redis cache strategy for cross-invocation consistency.
  • Conservative settings recommended: maxConcurrency: 1, maxRetries: 1, strict access policy.

Security

  • Anonymous requests denied (HTTP 403).
  • Default access: admin-only. Override with access option.
  • Inbound rate limiting on all endpoints (HTTP 429 on abuse).
  • Input validation on all endpoints (metrics, timeframes, paths, content types).
  • Error responses sanitized; full details to server logs only.

Lifecycle

The plugin registers SIGINT, SIGTERM, and beforeExit hooks to gracefully destroy GA4 clients, Redis connections, and limiter state.

createAnalyticsService() is exported for custom runtime integration and exposes destroy().

Configuration reference

type PayloadGA4AnalyticsPluginOptions = {
  /** Numeric GA4 property ID (required) */
  propertyId: string

  /** Async credential provider (required) */
  getCredentials: (args: { payload: null | Payload; req?: PayloadRequest }) => Promise<
    | {
        credentials: { client_email: string; private_key: string; project_id?: string }
        type: 'json'
      }
    | { path: string; type: 'keyFilename' }
  >

  /** Disable the plugin without removing it (default: false) */
  disabled?: boolean

  /** Custom access control (default: admin-only) */
  access?: (args: {
    payload: Payload
    req: PayloadRequest
    user: PayloadRequest['user']
  }) => boolean | Promise<boolean>

  /** Auto-inject Analytics tab into collections (default: true) */
  autoInjectUI?: boolean

  /** Collections with per-record analytics */
  collections?: Array<{
    slug: string
    pathnameField?: string
    getPathname?: (doc: Record<string, unknown>) => string
  }>

  admin?: {
    mode?: 'route' | 'dashboard' | 'both' | 'headless' // default: 'route'
    navLabel?: string // default: 'Analytics'
    route?: `/${string}` // default: '/analytics'
  }

  api?: {
    basePath?: `/${string}` // default: '/analytics/ga4'
  }

  cache?: {
    enabled?: boolean // default: true
    strategy?: 'payloadCollection' | 'redis' // default: 'payloadCollection'
    collectionSlug?: string // default: 'ga4-cache-entries'
    redis?: { url: string; keyPrefix?: string }
    aggregateTtlMs?: number // default: 300000 (5 min)
    timeseriesTtlMs?: number // default: 300000 (5 min)
    maxEntries?: number // default: 1000
  }

  rateLimit?: {
    enabled?: boolean // default: true
    maxConcurrency?: number // default: 4
    maxQueueSize?: number // default: 100
    maxRequestsPerMinute?: number // default: 120
    maxRetries?: number // default: 3
    baseRetryDelayMs?: number // default: 250
    maxRetryDelayMs?: number // default: 4000
    jitterFactor?: number // default: 0.2
    requestTimeoutMs?: number // default: 10000
    includePropertyQuota?: boolean // default: true
  }

  events?: {
    trackedEventNames?: string[] // default: []
    reportLimit?: number // default: 10
  }

  source?: {
    dimension?: 'sessionSource' | 'firstUserSource' | 'source' // default: 'sessionSource'
  }
}

Local development

git clone https://github.com/ContiDigital/payload-plugin-ga4-ecommerce.git
cd payload-plugin-ga4-ecommerce
pnpm install
cp dev/.env.example dev/.env
# Set GA4_PROPERTY_ID and GA4_CREDENTIALS_PATH in dev/.env
pnpm dev
CommandDescription
pnpm devDev server with Turbopack
pnpm lintESLint (zero-warning policy)
pnpm test:intUnit + integration tests
pnpm test:coverageTests with v8 coverage
pnpm buildType declarations + SWC compilation
pnpm pack:smokePackage + install verification
pnpm release:checkFull pre-release gate

CI/CD

CI (PR + push to main): lint, tests, coverage, build, pack smoke, matrix tested on Node 18 + 20. Optional GA4 live smoke test when secrets are configured.

Release (on v*.*.* tags): verifies tag/version alignment and main branch membership, runs full quality gates, publishes to npm with provenance, creates GitHub release.

GitHub secrets

SecretRequired forDescription
GA4_PROPERTY_IDCI (optional)GA4 property for live smoke tests
GA4_CREDENTIALS_JSONCI (optional)Service account JSON for live smoke tests
NPM_TOKENReleasenpm publish token

Contributing

See CONTRIBUTING.md.

License

MIT

Similar plugins