I want to implement Google Analytics in my android app. I'm not interested in eCommerce and Global Tracking. All I want to track is the screens visited and events generated by users.
Tried using Google Analytics V3 and it works fine.
Want to migrate to V4 (Should I?).
Google Analytics V4 is now integrated with Google Play Services, which is HUGE. I now get this 65K method problem in android.
Found a good article on that here. The Google Play Services Modular structure is for Gradle. I'm using Eclipse with the android SDK.
Is there any similar work around? Why add the huge library when you just want to use a part of it?
Related
I want to use google analytics for Install referrer and traffic source attribution for Android App.
I have linked my Firebase project with google analytics. I can see these projects while login in Google analytics.
To integrate google analytics i need ga_trackingId that starts with "UA-". I searched for same on google analytics dashboard but could not find it. I also tried to search for measurement id that starts with "G-". But could not fing that too.
I searched for solution on internet but could not find it.
Please help me on this to integration part so that i can use attribution feature of google analytics for android app.
One of the requirements to use Attribution is to link a View.
Views exist for Universal Analytics and not for Google Analytics 4.
The apps (Android/iOS) work with Google Analytics 4 and not with Universal Analytics.
So you can't use Attribution for the app, currently.
It is an answer that may not be what you were hoping for but at least you do not waste any more time looking for a solution that currently does not exist.
I recently started playing with Firebase, but I cannot completely understand its relation with Google Play Services. I know that Firebase is a mobile platform, and on Android it is based on Google Play Services, but why there are some modules with the same name of the ones of Google Play Services?
For example, in my build.gradle I can have:
com.google.android.gms:play-services-auth:9.4.0
com.google.android.gms:play-services-ads:9.4.0
but also:
com.google.firebase:firebase-auth:9.4.0
com.google.firebase:firebase-ads:9.4.0
I see that on Firebase documentation there is the list of available components (and note that the last one is actually a Google Play Services module):
com.google.android.gms:play-services-appindexing:9.4.0
The same list for Google Play Services is much longer, so some modules are not available using only Firebase dependencies. Which dependencies should I use and why? Can I use mixed dependencies?
On this new Firebase (from May 18th), Google added a few existing services to it. Google Play Services already had features like: Analytics, AdMob, Test Lab, etc. And you could use them from your Google Developer Console.
But then, they decided to merge some of those features with firebase. This way, you can have all of the features "together" on your Firebase Console. They are now unified to give your users a better experience and to help you (as a developer) easily manage your project.
So, if you want to use firebase, you should use the firebase dependencies. The Google play dependencies are meant for projects created on the Google Developer Console.
I'm a new Android developer, I recently encountered a problem on updating my app to Android 5.0. Same issue here: Android 5.0 (L) Service Intent must be explicit in Google analytics
According to that solution, I'm gonna updating from google analytics V2 to V4 (google play service). But the painful part is seems for every page, I need to change the tracking code. There are around 30 pages(activities and fragments) in my app, this is really not scalable, and easy to make regression bugs.
I was wondering is there any better way to do the migration? Thanks.
I created a small class, it's have same siganture of v2 in the body it's call a v4 methods, you can check it at my
gist
I am using Google Analytics v4 in Android application but i want to know:
What is difference between Google Analytics v3 and Google Analytics v4 ?
In the v4 Google Analytics API has a number of helper classes and configuration options which can make getting up and running fairly straight forwards.
YOu can get more info here
I need to report some events from my android app to GA, but main requirement is not to use API lib in dependencies - all analytics-related code should be encapsulated in my app package (actually it is not an app, but SDK). So I'm looking for some pieces of code for constructing Google Analytics API queries. Can anyone advice something?
See Manually sending data to Google Analytics
A Java library (designed for desktops, but it should probably work in Android) can be found here: http://code.google.com/p/jgoogleanalytics/