Google Analytics Communicator
WordPress plugin to Communicate with Google Analytics API.
by Kunoichi INC. · github.com/kuno1/ga-communicator · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/kuno1/ga-communicator/releases/download/3.7.1/ga-communicator.zipReadme
Google Analytics Communicator
Tags: google-analytics, api
Contributors: tarosky, Takahashi_Fumiki
Tested up to: 6.2
Requires at least: 5.9
Requires PHP: 7.2
Stable Tag: nightly
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
Let your WordPress communicate with Google Analytics API.
Description
This plugin has custom functions to connect with Google Analytics.
NOTICE: Google will stop Universal Analytics(UA) at July 1st, 2023. Since then, you will be able to create only Google Analytics 4(GA4) accounts. API for UA is Core Reporting API, and one for GA4 is Google Analytics Data API. This API change is a breaking change. Please see our wiki to check what you should do for the migration.
Default Feature
- Setting screen. You can check the connection and set up GA tags.
- Popular posts widget.
Register Service Account and Setup
To communicate with Google Analytics, WordPress needs permission to do so.
Service Account works as permission.
Get the service account key at Google API Console(document).
A service account is like a bot with email and performs like a virtual Google account.
- Create a service account. You may be requested to create a new project, or else you can also use an existing project. The bot belongs to the project.
- Get private key in JSON format for the service account.
- Enable Analytics Reporting API and Google Analytics API for the project.
- Copy the service account's email address and add it to a member of your Google Analytics account, properties, or profiles. It depends on your Google Analytics permission policy.
- Go to your WordPress admin Setting > Google Analytics Setting and save the private key that you get in step 2.
NOTICE: Save whole credentials including empty line with ⌘+A and ⌘+C. Otherwise, your key will be considered invalid by Google's API.
If the service account is valid, you can see your Google Analytics Properties in your WordPress Admin screen.
Custom Use
If the setup is ready, you can communicate with Google Analytics through the function ga_communicator_get_report( $config ). It's a utility function to access batchGet API.
Please visit our Wiki to find many code examples.
Installation
From Plugin Repository
Click install and activate it.
Via Composer
You can install this plugin as a composer library. See our Wiki.
FAQ
Where can I get support?
Please create a new ticket on the support forum.
How can I contribute?
Create a new issue or send pull requests.
Changelog
3.7.1
- Fix setting error on individual activation under network install.
3.0.0
- Add Google Analytics Data API support. Core Reporting API will be deprecated in 2023.
- Drop support for PHP 5.6
2.0.0
- Works as a single WordPress plugin.
1.0.0
- First release as composer library.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 3.7.1 | Oct 8, 2024 | ga-communicator.zip | 168 |
| 3.7.0 | Jul 19, 2024 | ga-communicator.zip | 12 |
| 3.6.3 | Feb 19, 2024 | ga-communicator.zip | 12 |
| 3.6.2 | Feb 14, 2024 | ga-communicator.zip | 2 |
| 3.6.1 | Jan 11, 2024 | ga-communicator.zip | 10 |
| 3.5.2 | Jul 5, 2023 | ga-communicator.zip | 20 |
| 3.5.1 | Jun 30, 2023 | ga-communicator.zip | 6 |
| 3.5.0 | Jun 21, 2023 | ga-communicator.zip | 7 |
| 3.4.2 | Jun 20, 2023 | ga-communicator.zip | 2 |
| 3.4.1 | Jun 16, 2023 | ga-communicator.zip | 6 |
| 3.4.0 | Jun 16, 2023 | ga-communicator.zip | 5 |
| 3.3.1 | Jun 8, 2023 | ga-communicator.zip | 7 |
| 3.2.1 | Jun 1, 2023 | ga-communicator.zip | 5 |
| 3.2.0 | May 29, 2023 | ga-communicator.zip | 4 |
| 3.1.0 | May 24, 2023 | ga-communicator.zip | 5 |
| 3.0.0 | Dec 19, 2022 | ga-communicator.zip | 15 |
| 2.0.4 | Dec 2, 2022 | ga-communicator.zip | 6 |
| 2.0.3 | Nov 1, 2021 | ga-communicator.zip | 7 |
| 2.0.2 | Sep 24, 2021 | ga-communicator.zip | 7 |
| 2.0.1 | Sep 17, 2021 | ga-communicator.zip | 5 |
| 1.1.1 | Jan 15, 2021 | ga-communicator.zip | 2 |
| 1.1.0 | Dec 29, 2020 | ga-communicator.zip | 1 |
| 1.0.4 | Oct 20, 2020 | ga-communicator.zip | 1 |
| 1.0.3 | Oct 19, 2020 | ga-communicator.zip | 2 |
| 1.0.2 | Jun 13, 2020 | ga-communicator.zip | 2 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.