PHPackages                             kunoichi/ga-communicator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kunoichi/ga-communicator

ActiveLibrary

kunoichi/ga-communicator
========================

Communicate with Google Analytics API.

3.7.1(1y ago)111.8k↓50%1[3 PRs](https://github.com/kuno1/ga-communicator/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.2CI passing

Since Jun 12Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/kuno1/ga-communicator)[ Packagist](https://packagist.org/packages/kunoichi/ga-communicator)[ RSS](/packages/kunoichi-ga-communicator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (43)Used By (0)

Google Analytics Communicator
=============================

[](#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:

Let your WordPress communicate with Google Analytics API.

Description
-----------

[](#description)

This plugin has custom functions to connect with Google Analytics.

**NOTICE:** [Google will stop Universal Analytics(UA) at July 1st, 2023](https://support.google.com/analytics/answer/11583528). Since then, you will be able to create only Google Analytics 4(GA4) accounts. API for UA is [Core Reporting API](https://developers.google.com/analytics/devguides/reporting/core/v4?hl=ja), and one for GA4 is [Google Analytics Data API](https://developers.google.com/analytics/devguides/reporting/data/v1). This API change is a breaking change. Please see [our wiki](https://github.com/kuno1/ga-communicator/wiki/MIgrate-to-Google-Analytics-Data-API-for-GA4) to check what you should do for the migration.

### Default Feature

[](#default-feature)

- Setting screen. You can check the connection and set up GA tags.
- Popular posts widget.

### Register Service Account and Setup

[](#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](https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php?hl=ja)).

A service account is like a bot with email and performs like a virtual Google account.

1. 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.
2. Get **private key** in JSON format for the service account.
3. Enable **Analytics Reporting API** and **Google Analytics API** for the project.
4. 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.
5. Go to your WordPress admin **Setting &gt; 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

[](#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](https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet).

Please visit our [Wiki](https://github.com/kuno1/ga-communicator/wiki) to find many code examples.

Installation
------------

[](#installation)

### From Plugin Repository

[](#from-plugin-repository)

Click install and activate it.

### Via Composer

[](#via-composer)

You can install this plugin as a composer library. See our [Wiki](https://github.com/kuno1/ga-communicator/wiki/Install-via-Composer).

FAQ
---

[](#faq)

### Where can I get support?

[](#where-can-i-get-support)

Please create a new ticket on the support forum.

### How can I contribute?

[](#how-can-i-contribute)

Create a new [issue](https://github.com/kuno1/ga-communicator/issues) or send [pull requests](https://github.com/kuno1/ga-communicator/pulls).

Changelog
---------

[](#changelog)

### 3.7.1

[](#371)

- Fix setting error on individual activation under network install.

### 3.0.0

[](#300)

- Add [Google Analytics Data API](https://developers.google.com/analytics/devguides/reporting/data/v1) support. [Core Reporting API](https://developers.google.com/analytics/devguides/reporting/core/v4?hl=ja) will be deprecated in 2023.
- Drop support for PHP 5.6

### 2.0.0

[](#200)

- Works as a single WordPress plugin.

### 1.0.0

[](#100)

- First release as composer library.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance54

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~45 days

Recently: every ~67 days

Total

36

Last Release

587d ago

Major Versions

1.1.1 → 2.0.02021-09-17

2.0.4 → 3.0.02022-12-19

PHP version history (3 changes)1.0.0PHP ^7.0|^5.6

2.0.4PHP &gt;=5.6

3.1.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84587?v=4)[Takahashi Fumiki](/maintainers/fumikito)[@fumikito](https://github.com/fumikito)

---

Top Contributors

[![fumikito](https://avatars.githubusercontent.com/u/84587?v=4)](https://github.com/fumikito "fumikito (158 commits)")[![ko31](https://avatars.githubusercontent.com/u/84167?v=4)](https://github.com/ko31 "ko31 (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

---

Tags

google-analyticswordpresswordpress-plugin-gawordpress-pugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kunoichi-ga-communicator/health.svg)

```
[![Health](https://phpackages.com/badges/kunoichi-ga-communicator/health.svg)](https://phpackages.com/packages/kunoichi-ga-communicator)
```

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k191.4M997](/packages/google-apiclient)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
