[WordPress] 外掛分享: Takasworks Access Analytics

首頁 › 外掛目錄 › Takasworks Access Analytics
WordPress 外掛 Takasworks Access Analytics 的封面圖片
全新外掛
安裝啟用
—
尚無評分
2 天前
最後更新
—
問題解決
WordPress 6.4+ PHP 7.4+ v1.5.1 上架:2026-11-27

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Takasworks Access Analytics」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Takasworks Access Analytics provides an on-site dashboard for understanding traffic to your WordPress website.
Features include:

Track page views, visitors, and sessions.
Review popular pages and referrer sources.
View device categories.
Exclude selected logged-in user roles from tracking.
Configure access-log retention.
Optionally use first-party cookies to distinguish returning visitors and sessions.
Connect Google Search Console to view search queries, clicks, impressions, click-through rate, and average position.
Optionally estimate visitor countries using a locally stored DB-IP Lite country database when the server does not provide a Cloudflare country header. This feature is disabled by default.

Google Search Console is optional. The access analytics dashboard works without connecting a Google account. Search query reports are available only after an administrator configures Google OAuth and connects an account with access to the relevant Search Console property.
This plugin does not use Google Analytics. It does not collect or store visitors’ IP addresses. For country estimation, the visitor IP address is read from the web server request and checked against a local DB-IP Lite database; it is not sent to DB-IP or stored in the access log. When an administrator enables country estimation, the country database is downloaded from DB-IP and updated about once a month. Search terms are not extracted from referrer URLs; search query reporting is provided by the Google Search Console API after connection.
Google Search Console Setup
Google Search Console integration is optional and requires your own Google Cloud OAuth credentials.

Create or select a project in Google Cloud Console.
Enable the Google Search Console API for the project.
Configure the OAuth consent screen and create an OAuth client ID for a Web application.
Add your site’s callback URL to the OAuth client’s authorized redirect URIs. The callback URL is your WordPress admin URL followed by admin-post.php?action=takaacan_google_oauth_callback. For a standard installation, it looks like https://example.com/wp-admin/admin-post.php?action=takaacan_google_oauth_callback. Use the actual URL for your site.

Add the following constants to wp-config.php, replacing the example values with your own credentials and the exact Search Console property URL or property identifier.
php
define( 'TAKAACAN_GOOGLE_CLIENT_ID', 'YOUR_GOOGLE_CLIENT_ID' );
define( 'TAKAACAN_GOOGLE_CLIENT_SECRET', 'YOUR_GOOGLE_CLIENT_SECRET' );
define( 'TAKAACAN_SEARCH_CONSOLE_SITE_URL', 'https://example.com/' );

In WordPress, open ‘Access Analytics’ > ‘Search Console Settings’ and select ‘Connect to Google’.

The Google account used for authorization must have access to the Search Console property specified in TAKAACAN_SEARCH_CONSOLE_SITE_URL. Keep the OAuth client secret private. Do not publish it or add it to a public repository.
The plugin requests read-only access to Search Console data. It stores the authorization tokens encrypted in the WordPress database using the site’s WordPress authentication salts.
Privacy
This plugin records website usage data in the WordPress site’s own database. Depending on the site’s configuration, recorded data can include:

Page URL (query strings and URL fragments are removed), page title, post ID, and post type.
Date and time of the visit.
Referrer URL without its query string, referrer domain, and source category.
Device category and browser User-Agent string.
A random visitor identifier and session identifier.
The WordPress user ID for logged-in visitors. Administrators and editors are excluded by default; other role exclusions can be configured.
The IP address field is not populated by this plugin. If the server does not provide a Cloudflare country header, the plugin may use the visitor IP address in memory for a local lookup against the DB-IP Lite country database. The IP address is not transmitted to DB-IP and is not stored by the plugin. The country code returned by the lookup may be stored in the access log. Country estimation is disabled by default. When an administrator enables it, the country lookup data is downloaded from DB-IP and stored locally in the WordPress uploads directory.

The plugin can set two first-party cookies when cookie tracking is enabled: takaacan_visitor_id, which can remain for up to one year, and takaacan_session_id, which is a browser-session cookie. A session is continued when the next visit occurs within 30 minutes of the previous access; otherwise, a new session identifier is created. Cookie tracking is enabled by default on a new installation. Site administrators can disable it in the plugin settings. When disabled, random identifiers are generated for each tracking request and these cookies are not used.
To limit abusive requests, the plugin keeps short-lived counters (about one minute) in WordPress transients. The counter key is a salted hash of the visitor identifier cookie or, when no cookie is available, of the connecting IP address and User-Agent. The raw IP address is not stored.
Access logs are retained for 90 days by default. The administrator can select a retention period of 30, 90, 180, 365, or 730 days. Expired logs are removed by a scheduled daily cleanup task. Aggregated daily and monthly statistics are stored separately and may remain after individual access logs are deleted. The plugin integrates with the WordPress personal data export and erasure tools. For a registered WordPress user, access records associated with that user’s account can be exported or erased. Anonymous visitor records cannot be matched to a person’s email address by these account-based tools.
If an administrator connects Google Search Console, the plugin requests read-only access to Search Console data using Google’s OAuth service and Search Console API. Google account authorization tokens are stored encrypted in the site’s WordPress database. Search performance data retrieved from Google is stored in the site’s database. Disconnecting the account asks Google to revoke the stored authorization token and removes the local connection data. The site owner can also review connected third-party access in their Google Account settings.
Google’s services are subject to Google’s own terms and privacy policy:
* https://policies.google.com/privacy
* https://developers.google.com/webmaster-tools
The site owner is responsible for describing this processing in their privacy policy, selecting appropriate settings, and obtaining any consent required by applicable laws.
Country lookup uses the DB-IP Lite database under the Creative Commons Attribution 4.0 International License. The plugin displays the required attribution link on its analytics administration pages: https://db-ip.com.
External services
This plugin connects to the following external services only in the situations described below. It does not send visitor access logs to any external service.
Google OAuth 2.0 and Google Search Console API (optional)
Used only after an administrator configures their own Google OAuth credentials and chooses “Connect to Google”. The plugin sends OAuth authorization, token exchange, token refresh and token revocation requests to accounts.google.com and oauth2.googleapis.com, and requests Search Analytics data for the configured property from www.googleapis.com. The data sent includes the OAuth client ID and redirect URI, the requested read-only scope, the Search Console property URL, and the requested date range and report dimensions. Nothing is sent until an administrator connects the account.

Google Terms of Service: https://policies.google.com/terms
Google Privacy Policy: https://policies.google.com/privacy

DB-IP Lite country database (optional, disabled by default)
Used only after an administrator enables country estimation in the plugin settings. The web server downloads the country database file from download.db-ip.com (for example https://download.db-ip.com/free/dbip-country-lite-YYYY-MM.csv.gz) right after the feature is enabled and then about once a month. The request is a plain file download and does not include visitor data. Visitor IP addresses are never sent to DB-IP; lookups are performed locally.

DB-IP: https://db-ip.com
License of the database: Creative Commons Attribution 4.0 International, https://creativecommons.org/licenses/by/4.0/

Third-party libraries

Chart.js 4.5.1 (MIT License), bundled locally in assets/vendor/chart.js/ and used to draw the charts in the admin screens. The license file is included. Source code: https://github.com/chartjs/Chart.js
DB-IP Lite country database (Creative Commons Attribution 4.0 International). It is not bundled; it is downloaded only when an administrator enables country estimation. See “External services”.

延伸相關外掛

文章
Filter
Mastodon