-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for GA4 #2
Comments
Seems like event call to ga4 is called measurement protocol, see: https://stackoverflow.com/a/65287312/5389500 Measurement Protocol Overview The Google Analytics Measurement Protocol allows developers to make HTTP requests to send raw user interaction data directly to Google Analytics servers. |
If you want to get your Google Analytics data out you use the Reporting API |
Maybe reverse engineer gtm.js ? |
The Google Analytics Measurement protocol is used for inserting data into Google Analytics, the javascript snipet that websites use also uses the measurement protocol, as does the IOS and Android SDKs. |
This breaks down the measurement protocol for ga4 (but a bit unorganised etc) https://www.optimizesmart.com/what-is-measurement-protocol-in-google-analytics-4-ga4/ |
Big overview over the different params in ga4 measurement protocol: https://www.thyngster.com/app-web-google-analytics-measurement-protocol-version-2 |
Discussion around using GA4 w/o sdk: https://stackoverflow.com/questions/69105735/google-analytics-4-measurement-protocol-api-used-without-gtag-js-or-firebase?rq=2 |
Tip: use Postman to analyse and experiment with parameters |
You can't use "old" measurement protocol for GA4 |
Partial deciphering of custom dimension params for ga4: https://stackoverflow.com/questions/75629193/ga4-manually-sending-parameters-ua-has-such-as-geographicaloverride |
This is an online tool to build ga4 calls and also test the call: https://ga-dev-tools.google/ga4/event-builder/ |
Overview of params in ga4 event calls: https://www.simoahava.com/analytics/implementation-guide-events-google-analytics-4/ |
@eonist has funded $50.00 to this issue.
|
I am interested in working on this issue. |
@gaddevarunteja Alright. It's not easy, so I would do it if you needed support for this your self in your own projects. It would take me maybe 2-3 days with full focus to do it. Basically we are reverse engineering google analytics 4. We did it with GA3, but GA4 is a bit different. There is good evidence that this is possible ref the research in this issue. But I do caution that it might also not be possible to solve. As such the task will be incomplete and not funded. Upon completion it will be funded. Let me know if you're still interested. |
Yes, I am still interested |
Alright. I wish you good luck and I'm looking forward to using GA4 in mobile / desktop apps without googles close source sdk. 🎉 (Added bonus, We could launch this on producthunt on a weekend day if you pull it off, I think it would be very useful for other people as well, added exposure for you etc) |
Feel free to ask me things along the way. I'm happy to assist if you are stuck or unsure about something. |
Research required to solve this is in the comments bellow. It would take me 1-3 days to solve probably
🤖Human and LLM Agents are welcome to solve this🤖
(Discuss improving the bounty amount / terms of completion etc)
https://twitter.com/eoncodes
The text was updated successfully, but these errors were encountered: