GoogleAnalyticsForXamarinForms icon indicating copy to clipboard operation
GoogleAnalyticsForXamarinForms copied to clipboard

Google Analytics 4 Property

Open thedav1d opened this issue 1 year ago • 9 comments

Is there a trick to getting this to work with GA4 properties? It was working fine with the older ones (UA), but I have had no luck with a new GA4 property.

thedav1d avatar Aug 02 '22 13:08 thedav1d

No, it used old api :(

KSemenenko avatar Aug 03 '22 18:08 KSemenenko

Any plans for rewriting it to GA4 or any other packages available for that ?

JeroenBer avatar Aug 28 '22 08:08 JeroenBer

No, not for now

KSemenenko avatar Aug 28 '22 20:08 KSemenenko

I would love this too since I think the transition deadline from Google is July 1, 2023

jamesdlow avatar Sep 13 '22 22:09 jamesdlow

Any plans for rewriting it to GA4 or any other packages available for that ?

shirisha27560 avatar Apr 15 '23 14:04 shirisha27560

Also interested to learn which package you are all migrating to now that we know this one won't be updated? Thanks.

pboisso avatar Jun 27 '23 13:06 pboisso

Hi, I did some investigation before and I don't think it's possible anymore to use Google Analytics (4) without the official Google SDK's. The internals are undocumented.

I currently switched to this strategy: https://www.linkedin.com/pulse/xamarin-upgrading-from-google-firebase-analytics-v4-keith-beatty

I got it working for Android and will start on iOS soon.

Some other useful links you will run into while rewriting:

  • https://github.com/xamarin/GooglePlayServicesComponents/issues/642#issuecomment-1221520982
  • https://support.google.com/analytics/answer/9289234?hl=en#linkga
  • https://support.google.com/analytics/answer/11091025?hl=en#zippy=%2Cin-this-article

JeroenBer avatar Jun 27 '23 17:06 JeroenBer

this library is just wrapper over https requests. this is real google analytcs for mobile apps

KSemenenko avatar Jun 29 '23 19:06 KSemenenko

I know but is there any alternative ? Using Google Analytics with just http requests without GA SDK is no longer possible with GA4. So the only option left is to implement real google analytics for apps, unless you know another option ?

JeroenBer avatar Jul 14 '23 12:07 JeroenBer