8ctopus / php-gtag
experimental gtag.js implementation in php
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5|^10.0
README
Experimental Google Analytics 4 gtag.js php implementation for server side tracking.
why?
Google Analytics 4 measurement protocol is limited in what it can measure.
The objective of this library is to use the much more powerful gtag.js API for server side measurements.
I'm using the library for some personal projects (tracking of PayPal sales) and it works, however it's far from a perfect replication of what gtag.js does. Use it at your own risk.
Contributions welcome!
install
composer require 8ctopus/php-gtag
demo
Check demo.php
on how to use it.