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

Add support for GA4 #2

Open
eonist opened this issue Mar 23, 2023 · 19 comments
Open

Add support for GA4 #2

eonist opened this issue Mar 23, 2023 · 19 comments

Comments

@eonist
Copy link
Member

eonist commented Mar 23, 2023

  • Add support for GA4 in telemetry. It currently only supports GA3
  • Ensure that the current telemetry GA3 features works with GA4
  • Ensure GA4 is receiving data
  • Document how to setup GA4 to work with the current telemetry features. TagManager needed?

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🤖

⚠️️ Send me a DM on twitter/ or comment in this issue before embarking on this ⚠️
(Discuss improving the bounty amount / terms of completion etc)
https://twitter.com/eoncodes

@eonist eonist closed this as completed Mar 24, 2023
@eonist eonist reopened this Mar 24, 2023
@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

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.

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

If you want to get your Google Analytics data out you use the Reporting API

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

Maybe reverse engineer gtm.js ?

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

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.

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

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/

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

Big overview over the different params in ga4 measurement protocol:

https://www.thyngster.com/app-web-google-analytics-measurement-protocol-version-2

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

Tip: use Postman to analyse and experiment with parameters

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

You can't use "old" measurement protocol for GA4

ref: https://stackoverflow.com/a/68280741/5389500

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

This is an online tool to build ga4 calls and also test the call: https://ga-dev-tools.google/ga4/event-builder/

@eonist
Copy link
Member Author

eonist commented Mar 25, 2023

@IssueHuntBot
Copy link

@eonist has funded $50.00 to this issue.


@gaddevarunteja
Copy link

I am interested in working on this issue.

@eonist
Copy link
Member Author

eonist commented May 15, 2023

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

@gaddevarunteja
Copy link

Yes, I am still interested

@eonist
Copy link
Member Author

eonist commented May 16, 2023

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)

@eonist
Copy link
Member Author

eonist commented May 16, 2023

Feel free to ask me things along the way. I'm happy to assist if you are stuck or unsure about something.

@eonist eonist pinned this issue Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants