Title: Takasworks Access Analytics
Author: takasworks
Published: <strong>November 28, 2026</strong>
Last modified: November 28, 2026

---

Search plugins

![](https://ps.w.org/takasworks-access-analytics/assets/banner-772x250.png?rev=3832354)

![](https://ps.w.org/takasworks-access-analytics/assets/icon-256x256.png?rev=3832354)

# Takasworks Access Analytics

 By [takasworks](https://profiles.wordpress.org/takasworks/)

[Download](https://downloads.wordpress.org/plugin/takasworks-access-analytics.1.5.1.zip)

 * [Details](https://wordpress.org/plugins/takasworks-access-analytics/#description)
 * [Reviews](https://wordpress.org/plugins/takasworks-access-analytics/#reviews)
 *  [Installation](https://wordpress.org/plugins/takasworks-access-analytics/#installation)
 * [Development](https://wordpress.org/plugins/takasworks-access-analytics/#developers)

 [Support](https://wordpress.org/support/plugin/takasworks-access-analytics/)

## Description

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.

 1. Create or select a project in Google Cloud Console.
 2. Enable the Google Search Console API for the project.
 3. Configure the OAuth consent screen and create an OAuth client ID for a Web application.
 4. 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.
 5. 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.
 6. `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/' );
 7. 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”.

## Installation

 1. Upload the `takasworks-access-analytics` folder to the `/wp-content/plugins/` directory,
    or install the plugin ZIP through the WordPress Plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen.
 3. Open the Takasworks Access Analytics dashboard in the WordPress admin area.
 4. Review the settings, including user exclusions, cookie use, and log retention.
 5. To use Google Search Console reports, complete the optional OAuth setup below and
    connect your Google account.

## FAQ

### Do I have to submit my Google OAuth app to Google for verification?

No, not if you only use it for your own sites. Takasworks Access Analytics connects
with an OAuth app that you create yourself in your own Google Cloud project. Set
the app’s publishing status to “In production” so that the connection does not expire
after 7 days. Google may show an “unverified app” warning when you connect; this
is expected for an app you created yourself.

### Google says I must complete the Branding page before I can publish my OAuth app. What do I enter?

Open “Branding” in Google Auth Platform and fill in the app name, a support email
address, your site’s URL as the app home page, the URL of your site’s privacy policy
page, your site’s domain under “Authorized domains”, and a developer contact email.
Leave the app logo empty. Then save, and publish the app from the “Audience” page.
The setup guide inside the plugin lists these steps.

### Why do I have to reconnect to Google every few days?

OAuth apps in “Testing” status lose their authorization after 7 days. Open Google
Auth Platform, go to “Audience” and publish the app. The step-by-step setup guide
inside the plugin explains this.

### Does this plugin require Google Search Console?

No. The access analytics dashboard works without connecting Google Search Console.
Search query performance reports require an administrator to configure Google OAuth
and connect a Google account with access to the relevant property.

### Does this plugin collect IP addresses?

No. The plugin does not populate the IP address field in its access logs.

### Can I disable tracking cookies?

Yes. Open the plugin settings and disable tracking cookies. When disabled, the plugin
does not use its visitor or session cookies.

### How long are access logs stored?

The default retention period is 90 days. Administrators can choose 30, 90, 180, 
365, or 730 days.

### Can personal access records be exported or erased?

Yes. The plugin integrates with the WordPress personal data export and erasure tools
for access records associated with a registered WordPress user. Anonymous visitor
records cannot be identified by email address through these tools.

### Does the plugin send visitor analytics data to Google?

No. The plugin stores its visitor access logs in the site’s own WordPress database.
Google is contacted only for the optional Google Search Console connection and retrieval
of Search Console performance data.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Takasworks Access Analytics” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ takasworks ](https://profiles.wordpress.org/takasworks/)

[Translate “Takasworks Access Analytics” into your language.](https://translate.wordpress.org/projects/wp-plugins/takasworks-access-analytics)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/takasworks-access-analytics/),
check out the [SVN repository](https://plugins.svn.wordpress.org/takasworks-access-analytics/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/takasworks-access-analytics/)
by [RSS](https://plugins.trac.wordpress.org/log/takasworks-access-analytics/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.5.1

 * Scripts and styles are now loaded with the WordPress enqueue functions.
 * All function, class, option, table and hook names now use the longer prefix “
   takaacan”.
 * Updated the bundled Chart.js library to 4.5.1.
 * Translations are handled through translate.wordpress.org (translation files are
   no longer bundled).

#### 1.5.0

 * The plugin has a new name, Takasworks Access Analytics, and a new folder name.
   Settings and collected data are kept. If you used an earlier copy, deactivate
   it before activating this one.

#### 1.4.7

 * Code quality: replaced direct file deletion with wp_delete_file(), escaped table
   names and status labels, added translator comments and sanitized server variables,
   following the Plugin Check report.

#### 1.4.6

 * Setup guide: added the “Branding” step that Google requires before an OAuth app
   can be published (app name, support email, home page, privacy policy link and
   authorized domain), and a troubleshooting entry for the “complete the configuration
   on the Branding page” message.

#### 1.4.5

 * All admin screens are now translatable: the plugin ships with English as the 
   source language and a complete Japanese translation.
 * Dates in the admin screens follow the language (for example “November 10, 2026”
   in English).
 * Corrected the “Fetch now” hint text so that it matches the name of the save button.

#### 1.4.4

 * Rewrote the Google Search Console setup guide: it now explains how to publish
   your OAuth app (to avoid the 7-day reconnection) and what the “unverified app”
   warning means.
 * The setup guide is now translatable and ships with a Japanese translation (English
   and Japanese).
 * Added English versions of the setup guide images.

#### 1.4.3

 * Fixed: visitor and access-history times in the admin screens were shifted by 
   the site’s UTC offset. They now match the site’s timezone setting.

#### 1.4.2

 * Country estimation: the settings screen now shows the last download error and
   has a “fetch now” button.
 * Country estimation: the footer status no longer says the database will be fetched
   automatically when the feature is turned off.
 * Country estimation: downloads now follow safe redirects, ignore blank lines and
   report why a download failed.

#### 1.4.1

 * Search analysis: the comparison period now follows the access-log retention period,
   so page views are no longer under-counted.
 * Search analysis: low-CTR detection now compares each page with the expected CTR
   for its average position.
 * Search analysis: page-to-post lookups are cached to keep the admin screen fast.
 * Country estimation is now opt-in. Downloads are paused for six hours after a 
   failure and fall back to the previous month’s database when the current one is
   not yet available.
 * Fixed: the Search Console pages table is now removed on uninstall when data deletion
   is enabled.
 * Fixed: duplicate page URLs from Search Console no longer cancel the whole sync.
 * Hardened the settings nonce handling and removed an unused Domain Path header.

#### 1.4.0

 * Added Google Search Console connection and search performance reporting.
 * Improved access analytics administration and reporting.
 * Search query reports use Google Search Console data when connected.

## Meta

 *  Version **1.5.1**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [analytics](https://wordpress.org/plugins/tags/analytics/)[dashboard](https://wordpress.org/plugins/tags/dashboard/)
   [google search console](https://wordpress.org/plugins/tags/google-search-console/)
   [statistics](https://wordpress.org/plugins/tags/statistics/)[traffic](https://wordpress.org/plugins/tags/traffic/)
 *  [Advanced View](https://wordpress.org/plugins/takasworks-access-analytics/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/takasworks-access-analytics/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/takasworks-access-analytics/reviews/)

## Contributors

 *   [ takasworks ](https://profiles.wordpress.org/takasworks/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/takasworks-access-analytics/)