Registry / networking / theiconic-php-ga-measurement-protocol

theiconic-php-ga-measurement-protocol

JSON →
library2.9.0phppackagistunverified

Send data to Google Analytics from the server using PHP. This library fully implements GA measurement protocol.

composer require theiconic/php-ga-measurement-protocol
INSTALL
IMPORT
SIG · THEICONIC-PHP-GA-M
T
theiconic-php-ga-measurement-protocol
networkingphpv2.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use TheIconic\PhpGaMeasurementProtocol\Client;

Send a pageview hit to Google Analytics.

use TheIconic\PhpGaMeasurementProtocol\Client; $client = new Client('UA-XXXXX-Y'); $client->sendPageview('/home', 'Homepage');
Debug
Known issues
gotchaGoogle Analytics Universal Analytics is deprecated; consider GA4.
fix
Migrate to GA4 Measurement Protocol.
affects: >=2.9.0
Upgrade
Version history
2.9.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
theiconic-php-ga-measurement-protocol — pip install theiconic-php-ga-measurement-protocol · libregistry