
內容簡介
此外掛利用選定的 Google Analytics (GA4) 數據,準備 AI 輔助的報告草稿。使用者可以在 WordPress 中審查、編輯並複製草稿,提供便捷的報告生成流程。
【主要功能】
• 利用 GA4 數據生成報告草稿
• 支援 AI 文本生成提供者設定
• 直觀的報告條件選擇介面
• 自動抓取 GA4 報告數據
• 支援多語言報告輸出
外掛標籤
開發者團隊
② 後台搜尋「Studio317 Report Drafts for Google Analytics」→ 直接安裝(推薦)
原文外掛簡介
This plugin uses selected Google Analytics (GA4) data to prepare an AI-assisted report draft. You can review, edit, and copy the draft in WordPress before using it. AI provider setup and credentials are managed in WordPress Settings > Connectors, where the site administrator configures the AI text-generation provider and its credentials.
This plugin is developed by Kimiya Watabe / Studio317. It is not affiliated with, endorsed by, or sponsored by Google.
This plugin is not a replacement for the Google Analytics dashboard. It provides a focused admin workflow for turning selected GA4 report data into a reviewed draft that can be edited before use.
Workflow
Initial setup:
Configure the GA4 property and optional host filter.
Configure a compatible AI text-generation provider in WordPress Settings > Connectors.
Click Connect Google Account.
Approve read-only Google Analytics access in Google.
Open Report Builder and click Create AI Report after choosing the report conditions.
New installations and sites without legacy OAuth configuration or token storage use Studio317-managed Google OAuth by default. They normally do not need a Google Cloud OAuth Client ID or Client Secret. Existing installations that already have self-managed OAuth configuration or legacy token storage remain in the legacy compatibility mode so their current connection is not disrupted.
Regular use:
In Report Builder, choose the report conditions, such as date range, comparison, and scope.
Click Create AI Report.
If the conditions are valid and Google Analytics and the configured AI provider are ready, the plugin fetches the required GA4 report data and requests a report draft through the WordPress AI Client.
Review, edit, and copy the generated draft.
If the plugin cannot continue because of report conditions, Google connection, GA4 data retrieval, or AI provider setup, it shows a message explaining the problem and stops. The selected report conditions remain available so you can correct them and try again.
Report output language follows the WordPress language setting for the administrator running Report Builder. If the user locale is unavailable, the plugin falls back to the site locale and then to English. The WordPress timezone is used for report periods and date handling, not for choosing the report language.
Supported site scope
The initial supported scope is single-site WordPress. Multisite network activation, network uninstall, and cross-site storage behavior are not covered by the initial support scope.
External Services
Studio317 Report Drafts for Google Analytics contacts third-party services only when an administrator explicitly starts Google authorization or clicks Create AI Report. Viewing Settings or Report Builder alone does not contact Google or an AI provider.
Google OAuth authorization
When an administrator clicks Connect Google Account, new installations and sites without legacy OAuth configuration or token storage use the Studio317 OAuth service to coordinate Google authorization and the token exchange. The browser is redirected to Google, where the administrator may grant read-only access to Analytics data available to the Google account. The authorization scope is https://www.googleapis.com/auth/analytics.readonly. Actual report requests use the GA4 Property ID selected in the plugin Settings.
Service endpoints used by this flow:
Studio317 OAuth service: https://oauth.s317.jp/
Google authorization endpoint: https://accounts.google.com/o/oauth2/v2/auth
Google token endpoint: https://oauth2.googleapis.com/token
The WordPress site sends the Studio317 OAuth service the site callback URL, temporary site and transaction identifiers needed for OAuth processing, request timestamps, and temporary cryptographic transaction material. When token refresh is needed, the site sends an encrypted refresh capability and signed request metadata. The Studio317 OAuth service communicates with Google’s OAuth and token endpoints and returns the authorization or refresh result to the WordPress site.
The Studio317 OAuth service does not persist per-user Google OAuth tokens or GA4 report data in its database. GA4 reporting data does not pass through the Studio317 OAuth service: Google Analytics Data API requests are sent directly from the WordPress site to Google. AI report data is not sent to the Studio317 OAuth service.
Existing installations that already use self-managed OAuth may continue in the legacy compatibility mode. Data sent to Google in that mode may include OAuth client configuration, the plugin redirect URI, requested Google Analytics read-only access, and a local state value. Data received from Google may include an authorization result and token response data. Authorization codes, token values, provider responses, and option values are not displayed in the plugin admin UI.
Terms and privacy information:
Studio317 Privacy Policy: https://business.s317.com/privacy_policy/
Studio317 Terms of Service: https://business.s317.com/legal/
Google APIs Terms of Service: https://developers.google.com/terms
Google Privacy Policy: https://policies.google.com/privacy
Google Analytics Data API
When an administrator clicks Create AI Report, the plugin first validates the selected report conditions. If Google connection settings are available, it sends requests to the Google Analytics Data API to fetch the required report data.
Service URL: https://analyticsdata.googleapis.com/
Data sent to Google may include:
GA4 property ID.
Google OAuth access token in the Authorization header.
Selected date range.
Comparison setting and comparison date range, when comparison is enabled.
Host name filter, when enabled.
Page path filter, when directory or page scope is selected.
Required metrics and dimensions for the report presets.
Data received from Google may include:
Summary metrics.
Daily trend data.
Top pages.
Traffic channels.
Traffic sources.
Regional trends by city and country, where available.
The Google Analytics Data API request body is designed not to include AI provider credentials, WordPress user identifiers, cookies, or IP addresses.
AI generation provider
When the GA4 data fetched during Create AI Report is reportable, the plugin requests a draft through the WordPress AI Client and the AI provider configured by the site administrator in WordPress Settings > Connectors.
This plugin does not define a fixed AI provider endpoint. Provider terms, privacy practices, billing, retention, and credential management depend on the AI provider configured by the site administrator through WordPress.
Data sent through the WordPress AI Client may include:
System instructions, including the selected report output language.
GA4-derived report data prepared from the selected report conditions.
Report output language and locale information resolved from WordPress locale settings.
Report data sent through the WordPress AI Client may include:
Host name.
Date range and comparison information.
Normalized path condition.
Summary metrics and calculated differences.
Daily trend data.
Top pages.
Traffic channels.
Traffic sources.
Regional trends by city and country, where available.
The report data sent through the WordPress AI Client is designed not to include the Google OAuth token, AI provider credentials, GA4 property ID, WordPress user identifiers, cookies, or IP addresses.
AI generation may consume provider usage, credits, or quota depending on the configured AI provider. Generated report text is shown for administrator review, editing, and copying. The plugin does not intentionally save generated report text. Generated report text is a draft, and administrators should review and edit it before publishing, sharing, or sending it.
Data Storage and Review
The plugin stores plugin-owned settings in the WordPress database. Stored settings include the GA4 property ID and host filter settings. Existing self-managed installations may also retain legacy OAuth client configuration for compatibility.
The plugin does not store plugin-owned AI provider API keys. AI provider credentials and provider selection are managed through WordPress Connectors.
In Studio317-managed OAuth mode, Google OAuth token material is stored in encrypted form as plugin-owned data within the WordPress site. Credential and token values are not displayed again in the plugin admin UI. Existing self-managed installations may continue to use legacy OAuth configuration and connection storage.
Temporary report data used during generation is stored briefly for the current administrator and expires automatically. Data validation runs before temporary storage and again before AI generation; missing, expired, old, or invalid report data is not sent through the WordPress AI Client.
Local Google disconnect deletes only local OAuth token data stored by this plugin. It does not contact Google, revoke provider access, delete saved OAuth client settings, or change AI provider configuration.
On single-site uninstall, the plugin deletes its main settings, legacy OAuth connection data, and Studio317-managed OAuth connection data. Uninstall and local disconnect do not revoke provider-side Google access. Provider-side access should be reviewed separately in Google Account settings when needed.
Database administrators, backups, server administrators, or code that can read WordPress options may be able to access stored credential values.
