跳到内容

Headless GA4

v0.2.1

jakubkanna · 2026年4月13日 上架

Display lightweight GA4 traffic data in the WordPress dashboard for headless frontends.

正在使用
10 以下
评分
暂无
累计下载
458
最近更新
2026年11月12日
需要 WordPress 6.4+已测试到 6.9.12PHP 7.4+

贡献者

Headless GA4 adds a compact Google Analytics 4 widget to the main WordPress dashboard.

It is designed for sites where:

  • the frontend is not rendered by WordPress
  • GA4 tracking already happens on the frontend
  • WordPress only needs to read and display GA4 reporting data for admins

The plugin uses the Google Analytics Data API and a Google service account. It does not inject frontend tracking code.

Features:

  • settings page for GA4 configuration
  • dashboard widget with core traffic metrics
  • last 7 days trend chart
  • top pages and top traffic sources
  • transient caching
  • manual refresh action

Privacy

Headless GA4 does not track visitors or inject analytics scripts.

The plugin only sends server-side requests to Google when an administrator configures a GA4 property and opens the dashboard or tests the connection. Those requests use the service account credentials you provide in the plugin settings.

External services

This plugin connects to Google services to authenticate requests and fetch Google Analytics 4 report data. These requests are only made after an administrator configures the plugin and then opens the dashboard widget, refreshes the data, or uses the Test connection button.

Google OAuth token service (`oauth2.googleapis.com`)

Used to exchange the configured Google service account credentials for a short-lived access token.

Data sent: a signed JWT assertion containing the service account email, requested scope, token endpoint, issued-at time, and expiration time.

Terms of service: https://developers.google.com/terms
Privacy policy: https://policies.google.com/privacy

Google Analytics Data API (`analyticsdata.googleapis.com`)

Used to request GA4 report data for the configured GA4 property.

Data sent: the GA4 property ID, report request parameters such as date ranges, dimensions, metrics, and limits, plus the OAuth access token in the request headers.

Terms of service: https://developers.google.com/terms
Privacy policy: https://policies.google.com/privacy

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums