-
Notifications
You must be signed in to change notification settings - Fork 62
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
Google Analytics App + Web support #48
Comments
This should be supported and documented in the readme. for example my tracking code used |
I've added some readme updates for the time until this issue is resolved. |
Thanks for the discussion here. I've never used the new App + Web property type, and don't really have a project to test this with. If someone wants to play with it and submit a PR I'd happily merge it in! |
I'm still unclear on what the guidance here is @ryanvanderpol. For example, our property ID is in the format Or like this (with the 'G-' prepended): FWIW neither work for us, but perhaps this is due to the delay in Analytics reporting? |
@nsdub When you set up your Google Analytics account, did you choose the new "Apps and Web" option? or just the "web" option? See this article for an explanation of the difference. I haven't done it myself, but my guess is choosing the "Apps and Web" option creates the Also, there is definitely a delay in data showing up in the GA reports (in my experience, about 30-120 minutes), however the "Realtime" tab should show data immediately. |
@ryanvanderpol We were migrated to the new "App + Web" option via Firebase. I just created a dummy "App", (yes, app only) property and that also has the same property ID format of I should also clarify what I mean by "not working" -- it's purely that the events don't get reported to Analytics. There doesn't seem to be any issue with initialization nor is an error being caught when an event is created. For instance...
...will log the success message. I'll continue playing with this today, including trying to use the Web property ID within the app. Will report back with any new learnings |
So @StefKors were you able to get this package to work with your "App + Web" project? |
Since it looks like this thread is dying, I wanted to provide an update to the path that we chose: Our use-case was that we wanted to log Analytic events so that we could use them in our AdWords campaigns as conversion actions. Our app uses Firebase but the OOTB conversion actions you get with Firebase (like app installs or first opens) weren't useful for the campaign optimizations we wanted to run. We decided to implement the Expo Branch package, create custom Branch events, import those events to AdWords (as a third party analytics provider), then set them as conversions. |
Looks like App + Web requires the V2 version of the Measurement Protocol to be used. Looks hard to find google documentation, but found a little guide here - Would folks be against me trying trying to dynamically change the version of the api used based on id? |
Also a link to a question posed directly to Google Analytics about proper v2 docs https://support.google.com/analytics/thread/17485766?hl=en |
Thanks for the research, @lobobabysaurus. I don't currently have an active project that I can switch to the App + Web protocol, but I'd happily review and merge in a PR if we can agree on a good way to support it without breaking existing users. |
How about a new member for the options constructor arg that drives the version that can fall back to 1 if it isnt being specified? That way it is backward compatible and Web + App consumers just need to explicitly opt it |
@lobobabysaurus that sounds good enough for me! |
Looks like Web + App is intrinsically tied to event streams in Firebase, which is partially why the HTTP endpoints don't work the same way. Not sure how to resolve without pulling in native Firebase rigging |
With the announcement of Google Analytics 4 (new name for App + Web), is there any update on this? |
Just pinging for an update on @calendarbudget's comment above? Is there support for GA 4 ids now? |
+1 |
Looking forward to GA4 support in the package. Is there any idea when it will be out? |
Still lurking this thread - any updates? I believe GA4 is replacing UA eventually so it seems pretty important this gets resolved. |
still waiting for an answer, it is pretty unclear how to setup properly right now |
Any updates with this? Universal Analytics are being sun-setted on July 1st (in 4 days) |
Is there any way to use this package for Google Analytics App + Web?
As for now, all I can see in docs is initializing like:
where
'UA-'
part strongly suggests that it's dedicated for Google Analytics Web; theTracking ID
equivalent in the App + Web property is calledPROPERTY ID
, and it is not prefixed with'UA-'
. As far as I've seen to this point, those property identifiers are 9-digits.I have tried passing the aforementioned property id as an argument to
new Analytics(property_id)
constructor with no avail.Is there anything I'm missing here, or is it common just to treat the Android / iOS app as "Web" in Google Analytics?
The text was updated successfully, but these errors were encountered: