
外掛標籤
開發者團隊
② 後台搜尋「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 Google OAuth client settings or use server configuration.
Configure a compatible AI text-generation provider in WordPress Settings > Connectors.
Click Connect Google Account to connect a Google account that can read the selected GA4 property. Google may ask you to grant read-only access to that property.
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, the browser can be redirected to Google. Google may ask the administrator to grant this plugin read-only access to the selected Google Analytics property. After the browser returns, the plugin validates the local callback state and can exchange the authorization result for Google OAuth tokens.
Service endpoints used by this flow:
Google authorization endpoint: https://accounts.google.com/o/oauth2/v2/auth
Google token endpoint: https://oauth2.googleapis.com/token
Data sent to Google during this flow 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.
Google terms and privacy information:
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.
City-level regional trends, 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.
City-level regional trends, 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 can include the GA4 property ID, host filter settings, and saved Google OAuth client settings.
The plugin does not store plugin-owned AI provider API keys. AI provider credentials and provider selection are managed through WordPress Connectors.
Google OAuth token data is stored in a dedicated plugin-owned option. The option is created without autoloading on new storage. Saved credential values are not displayed again in the admin UI.
Server configuration can also provide Google OAuth client settings. Server-managed values take precedence and cannot be edited or deleted from the plugin Settings screen.
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 option and its dedicated Google OAuth token option. Provider-side access should be reviewed separately in Google account or Google Cloud settings when needed.
Database administrators, backups, server administrators, or code that can read WordPress options may be able to access stored credential values.
