php-ga-measurement-protocol
php-ga-measurement-protocol copied to clipboard
Google Analytics 4
At the moment I am using the library to work with Google Analytics. Will it work with version 4? And what you need to do? Would it be sufficient to specify the version?
$analytics = new Analytics(true);
$analytics->setProtocolVersion ('4');
This functionality means https://ga-dev-tools.appspot.com/ga4-event-builder/
@ZherebcovSergey have you tested out? is this library working with GA4?
I have tested today and it's not working with GA4...
Any update on this? Would be nice if we can make it work with the new version.
Any updates on this? I am also curious to know if this works with GA4
Are there any plans to make this library compatible to the latest GA4 Measurement Protocol (Google Analytics 4) ?
Just a note on this comment:
This functionality means https://ga-dev-tools.appspot.com/ga4-event-builder/
The source of this page can be found here (https://github.com/googleanalytics/ga-dev-tools) and it is a frontend solution in TypeScript (JS).
This would be good to know as Universal Analytics will no longer be supported as of July 2023. And if not, any suggestions of alternative approaches would be gratefully received. I've just implemented this on a site which uses "virtual pages" using AJAX and it works really well.
This would be good to know as Universal Analytics will no longer be supported as of July 2023. And if not, any suggestions of alternative approaches would be gratefully received. I've just implemented this on a site which uses "virtual pages" using AJAX and it works really well.
I think this library seems to supports GA4. You can check it too
https://github.com/br33f/php-GA4-Measurement-Protocol
This would be good to know as Universal Analytics will no longer be supported as of July 2023. And if not, any suggestions of alternative approaches would be gratefully received. I've just implemented this on a site which uses "virtual pages" using AJAX and it works really well.
I think this library seems to supports GA4. You can check it too
https://github.com/br33f/php-GA4-Measurement-Protocol
Thank you. That looks promising!
There's also this package which looks promising https://github.com/aawnu/php-ga4