Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Analytics 4 #94

Open
ZherebcovSergey opened this issue Feb 16, 2021 · 10 comments
Open

Google Analytics 4 #94

ZherebcovSergey opened this issue Feb 16, 2021 · 10 comments

Comments

@ZherebcovSergey
Copy link

ZherebcovSergey commented Feb 16, 2021

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');
@ZherebcovSergey
Copy link
Author

This functionality means https://ga-dev-tools.appspot.com/ga4-event-builder/

@dilab
Copy link

dilab commented Mar 24, 2021

@ZherebcovSergey have you tested out? is this library working with GA4?

@mindaugasva
Copy link

I have tested today and it's not working with GA4...

@yellow1912
Copy link

Any update on this? Would be nice if we can make it work with the new version.

@AronSEPAIT
Copy link

Any updates on this? I am also curious to know if this works with GA4

@chludwig
Copy link

chludwig commented Sep 30, 2021

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).

@atticus7
Copy link

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.

@san-kumar
Copy link

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

@atticus7
Copy link

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!

@8ctopus
Copy link

8ctopus commented Feb 24, 2023

There's also this package which looks promising https://github.com/aawnu/php-ga4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

9 participants