-
Notifications
You must be signed in to change notification settings - Fork 500
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
Does this plugin work with the new Google Analytics 4? #589
Comments
@peter-rosendahl I am in the same situation as you are right now. I have a project ready for production and looked all over the web, like everywhere and test all kinds of stuff, but with no luck. There is someone who found a solution on this? I know that the version for cordova/capacitor is kind of the same on ionic v5, so pls, who has a working version, could you lend a hand with an update and simple/basic example with init and page views and events? We will be forever in debt to you and we will send you at least a beer. Thank you, |
After spending a day looking into this, it appears that developers have not informed us that Google Analytics no longer works with this plugin for apps. It sure would be nice if someone would just add a note here so we don't burn so much time. If you want to use google analytics now you must do so by setting up a firebase app, use firebase analytics, and then connect your firebase account to google analytics. I haven't figured out how to do all this yet. It involves setting up separate config files for ios and android then firebase will tell you where to place it in your project and what settings files to change. Then you can get a different plugin that should work... we will see... |
@pjschrock Even I was also spent hours, and fortunately, I have an old account UA-xxxx with views which works fine for me. Need to see when either this plugin gets updated or achieved with a notice. |
You can still create a UA tracking ID in Google Analytics https://support.google.com/analytics/answer/10269537?hl=en |
Hi guys, Any updates on this issue? Would be great to share any solutions if there are any. Thank you in advance. |
New Warning from Google : Please let us know if there is any update on this issue ? |
Sorry, I am back I was looking into the issue and found this: Check if your Google Analytics property is impacted
Also For more info: About continue this project, it will not because the new GA4 is base on the firebase platform and there is already a pluging for firebase components. |
@danwilson Anything on this? |
:You can migrate to GA4 property in google: "If you still rely on Universal Analytics, we recommend that you prepare to use Google Analytics 4 going forward." |
Does the plugin stay the same, and you just change the property? Is that what you are saying @victorsosa ? |
yes, that's the point. They just changed the ID format of the GA property |
window.ga.startTrackerWithId("UNIVERSAL_ID") works , but window.ga.startTrackerWithId("GA4_ID") does not work (no data showing in realtime .) @victorsosa can you guide if there is any change needed in above code ? |
@acedigibits this library is not supported GA4. |
Is there any library that supports Google analytics 4 (GA4) for ionic apps?
|
Very informative! This is such a useful plugin by Dan Wilson. I did notice you can still set up both a Universal ID and new G4 tracking ID (at same time) using advanced options when setting up a new property in analytics. So you should be able to use the Universal ID in this plugin till next July 2023, then hopefully fall back to the G4 tag in a new way which may develop. |
Yep this is working, just set this up in a Cordova app using this plugin. Real-time tracking is picking up Universal ID. |
@aerialglasgow can you show you setting and code so other could do the same? |
Universal ID was working and will continue to work. Point is that GA4 IDs are not working, which is mandatory after July 2023. So if this plugin cannot work on GA4 is there an alternative ? |
Hi @victorsosa @acedigibits, I didn't change my use of the plugin (which does still work) I only wanted to point out that after checking this out the Universal ID is still available, but under Advanced Options when creating the property in Analytics. I don't know of an alternative for GA4 unfortunately. I'm not sure if this plugin can be modified to accept GA4 ID's, possibly, I haven't looked at the code. |
Is there a solution to use GA4 with this plugin ? |
npm notice Publishing to https://registry.npmjs.org/ |
Please @danwilson. Community need you. Is possible update the plugin for GA4? Thank you very much! |
|
It looks like GA4 support is being tracked in #613 |
I'm facing challenges implementing Google Analytics tracking on my Ionic 5/Cordova app.
In the documentation of this plugin I can see that the plugin requires a UA-xxxxxxxxx-x ID. But with the new version 4 (rolled out in october 2020), Google Analytics have split up the streaming procedures between web, Android and iOS, meaning that the above ID only works for websites - they even declare in their documentation for setting up Google Analytics that their Universal Analytics property no longer supports app measurement. So it seems that if you're creating a Google analytics property today, it won't work with the original procedure that is described in this plugin's documentation.
So, my question is this: Is there a workaround for this plugin to work with this new version of Google Analytics? Or is it being developed now as we speak?
Being a newcomer to this plugin, it really does look fascinating with all of its possibilities, so I hope (and pray) that this plugin will live on and prosper through challenges like this one.
The text was updated successfully, but these errors were encountered: