HSAnet / qt-google-analytics

Qt5 classes for providing Google analytics usage in a Qt/QtQuick application
Other
54 stars 27 forks source link

ga4 support #24

Open 564398053 opened 2 years ago

564398053 commented 2 years ago

Starting July 1, 2023, Universal Analytics will no longer process new data in standard properties. Get started now, set up and migrate to Google Analytics 4 properties.

https://developers.google.com/analytics/devguides/collection/protocol/ga4/verify-implementation?client_type=gtag

ichlubna commented 2 years ago

Can't we just use the new tracking number (without the UA) in this framework? EDIT: My bad, I see that the API has changed. I ended up writing my own simple event sender for GA4.

dprotti commented 1 year ago

Hi all. Are there plans to provide support for G4 properties? Either on this same project or as a fork.

@ichlubna your simple event sender looks like a great aid however lacks OS detection which is a must for many of us.

ichlubna commented 1 year ago

@ichlubna your simple event sender looks like a great aid however lacks OS detection which is a must for many of us.

Glad you like it. OS detection should be simple I think in Qt. The purpose of my sender is just to simply send the tracked info.

Spark-NF commented 1 year ago

For those interested, I made a GA4 client for Qt here: Spark-NF/qt-google-analytics It supports user properties, and should detect most user platforms (using a generated User-Agent as well as the User-Agent Client Hints specification).

I have it running fine in a few of my apps, but feel free to open issues / PRs if you notice something's up with it.