PHPackages                             ins0/google-measurement-php-client - 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. [API Development](/categories/api)
4. /
5. ins0/google-measurement-php-client

ActiveLibrary[API Development](/categories/api)

ins0/google-measurement-php-client
==================================

Server-Side PHP Client to communicate to Google Analytics over the Google Measurement Protocol

v2.2.0(9y ago)54360.1k↓15.4%23[5 issues](https://github.com/ins0/google-measurement-php-client/issues)[1 PRs](https://github.com/ins0/google-measurement-php-client/pulls)2BSD-3-ClausePHPPHP &gt;=5.3.3

Since Oct 15Pushed 9y ago7 watchersCompare

[ Source](https://github.com/ins0/google-measurement-php-client)[ Packagist](https://packagist.org/packages/ins0/google-measurement-php-client)[ Docs](http://www.racecore.de/)[ RSS](/packages/ins0-google-measurement-php-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (2)

GATracking
==========

[](#gatracking)

Master: [![Build Status](https://camo.githubusercontent.com/708119727848bdaf81680aa6e6ff5245f8fd63165956a61daa0b9e66e4aa8602/68747470733a2f2f7472617669732d63692e6f72672f696e73302f676f6f676c652d6d6561737572656d656e742d7068702d636c69656e742e706e673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/708119727848bdaf81680aa6e6ff5245f8fd63165956a61daa0b9e66e4aa8602/68747470733a2f2f7472617669732d63692e6f72672f696e73302f676f6f676c652d6d6561737572656d656e742d7068702d636c69656e742e706e673f6272616e63683d6d6173746572)

GATracking is a Server-Side PHP Client to communicate to Google Analytics over the Google Measurement Protocol API

### Class Features

[](#class-features)

- Array Configuration
- Async / Multi Requests
- SSL Support (not default - set over options)
- Adapter Support (sockets)
- Tests

### Tracking Features

[](#tracking-features)

- Simple
    - Page Tracking
    - Event Tracking
- Social
    - Social Tracking
- Exception
    - Exception Tracking
- Campaign
    - Campaign Tracking
- App
    - App Event Tracking
    - App Screen Tracking
- User
    - User Timing Tracking
    - User ID Tracking
- Ecommerce
    - Ecommerce Transaction Tracking
    - Ecommerce Item Tracking
- Proxy
    - Client IP Address
    - Client User Agent

Quick start
-----------

[](#quick-start)

### Install via Composer

[](#install-via-composer)

Run the following Composer command to install this package:

```
$ composer require  "ins0/google-measurement-php-client"
```

\#Requirements#

PHP &gt;= 5.3.3

Google Analytics Universal Account (more information available here )

\#Example#

see example\_files directory

Thanks
======

[](#thanks)

first GIT release .... yaahhh!

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~137 days

Recently: every ~186 days

Total

7

Last Release

3454d ago

Major Versions

v1.1.0 → v2.0.02015-01-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2622534?v=4)[Marco Rieger](/maintainers/ins0)[@ins0](https://github.com/ins0)

---

Top Contributors

[![ins0](https://avatars.githubusercontent.com/u/2622534?v=4)](https://github.com/ins0 "ins0 (18 commits)")[![bthurlow](https://avatars.githubusercontent.com/u/1750070?v=4)](https://github.com/bthurlow "bthurlow (12 commits)")[![reysharks](https://avatars.githubusercontent.com/u/1992574?v=4)](https://github.com/reysharks "reysharks (11 commits)")[![daN4cat](https://avatars.githubusercontent.com/u/636048?v=4)](https://github.com/daN4cat "daN4cat (5 commits)")[![jamiefdhurst](https://avatars.githubusercontent.com/u/524681?v=4)](https://github.com/jamiefdhurst "jamiefdhurst (2 commits)")[![vogelito](https://avatars.githubusercontent.com/u/1325863?v=4)](https://github.com/vogelito "vogelito (1 commits)")[![mablae](https://avatars.githubusercontent.com/u/389360?v=4)](https://github.com/mablae "mablae (1 commits)")[![mtricht](https://avatars.githubusercontent.com/u/7511094?v=4)](https://github.com/mtricht "mtricht (1 commits)")[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (1 commits)")

---

Tags

api-clientgooglegoogle-analyticsgoogle-measurement-protocolclientgoogleanalyticsmeasurement

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ins0-google-measurement-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/ins0-google-measurement-php-client/health.svg)](https://phpackages.com/packages/ins0-google-measurement-php-client)
```

###  Alternatives

[viniciusgava/google-translate-api

Google translate API V2 client for PHP

24447.8k6](/packages/viniciusgava-google-translate-api)[ozankurt/google-analytics

Laravel Google Analytics

7617.2k](/packages/ozankurt-google-analytics)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1143.8k1](/packages/skeeks-yii2-google-api)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1615.7k](/packages/smnandre-pagespeed-api)

PHPackages © 2026

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