starmessage / libSoftMeter

Application analytics (software usage analytics) for Windows, MacOS and IOS software
https://www.starmessagesoftware.com/softmeter
Other
50 stars 23 forks source link

Test, adapt SoftMeter for sending statistics to a Google Analytics 4 ("G-xxxx") property (not Universal Analytics, "UA-xxxx-y") #14

Closed starmessage closed 1 year ago

starmessage commented 3 years ago
liuying1129 commented 2 years ago

Universal Analytics will no longer process new data in standard properties beginning July 1, 2023. Prepare now by setting up and switching over to a Google Analytics 4 property.

Excuse me, When will it be supported?

starmessage commented 2 years ago

We are working on GA4 compatibility, to get it ready in time. There is no ETA yet.

ArcticLampyrid commented 2 years ago

Any progress?

starmessage commented 1 year ago

This is the 2.0.0 beta version, adding support for Google Analytics 4 properties (Measurement ID in the form of G-xxxxxxxx) libSoftmeter v2.0.0 beta.zip

Changes needed in your program:

Missing functionality in this version:

liuying1129 commented 1 year ago

No version 2.0 demo for delphi

liuying1129 commented 1 year ago

I hope to see the richer documents of version 2.0 as soon as possible

starmessage commented 1 year ago

SoftMeter version 2.0.1 was released. https://github.com/starmessage/libSoftMeter/tree/master/bin The Delphi, C/C++ samples will soon be updated. The only change needed (apart of cource of replacing the UA-xxxxx property number with the G-xxxxxx property) is to call the setOptions() function to pass your API secret. (see comment above). As always, the setOptions() must be called before the start() function is called.

starmessage commented 1 year ago

Instructions on how to setup your GA4 property to collect application usage data from SoftMeter and the creation of custom dimensions for the SoftMeter PRO metadata. https://www.starmessagesoftware.com/blog/create-configure-ga4-google-analytics-property-softmeter

liuying1129 commented 1 year ago

I use delphi to test. When calling the start() function, if the parameter appVersion is null, version 1.0 is normal, but version 2.0 crashes

starmessage commented 1 year ago

Thanks for reporting this. It is fixed and will be available in the next version. However, the parameters of the start() function should not be NULL. You must pass valid strings.

We are closing this issue as it is specific to the GA4 compatibility. Please open new issues for any bug or improvement that you want to report.