Can we integrate Google Analytics with android library project - android

This is just a library project that is going to be distributed as an aar file. When an app is made using this library, I want to be able to see the device info and stuff in my Google Analytics Dashboard.
I however don't want the app developer to add anything to his code to provide me these analytics.
I wanna know if such a thing is possible. I could'nt find a solid answer to this question in any website.

Related

Could not integrate google analytics in android app to use Attribution feature

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.

Which guide to use for Google Analytics for Android app

While i was trying to find the developers guide for adding Google Analytics for Android app, i found 2 guids.
with a json configuration file which required to have a Project created with Google Services
The link for this is https://developers.google.com/analytics/devguides/collection/android/v4/app
with global_tracker.xml and without configuration (json) file.
https://developers.google.com/analytics/devguides/collection/android/v4/
Not sure which guide to follow. on other forums i have seen people using the (2) guide. and was wondering if i need the json configuration file at all.
After researching and trying it out, i had to use Option (2) to have it working
https://developers.google.com/analytics/devguides/collection/android/v4/
I don't need the json file. I don't even need the global_tracker unless i want to change the default settings.

Writing to Google Drive from an Android app

I'm working on an Android app where I need to write to a Google Drive spreadsheet. There's a quick start video on "Google Developers Live" that seems to go through most of the required steps, but for the library usage they just say to click some button in Eclipse. I'm not using Eclipse though and would like to make this work with a maven project.
What libraries are required and how can I get them all using maven?
Here's the part of the video I'm talking about: http://youtu.be/Ied1CjJ0iP0?t=9m41s
Also, I've found this SO post and the latest edit says to use the Drive API V2 but a google api client is linked. I'm not exactly sure what's needed or if perhaps something has changed since then.
You should use the Google API Java Client. Downloads for Drive are here: https://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API

Open source Google analytics lib for android

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/

Does Google Drive integrate with Android through code?

I have spent some hours searching for Android phone integrations with Google Drive through code. But I am not able to figure it out. I want to make a app in which when I press a button, my specific file is uploaded and stored in Google Drive.
Currently, GoogleDrive is not integrated with Android. However, this is something they are working on and say it will be here "soon". The services theyre working on is called Google Play Services.
You can also currently use the java client library to accomplish what you need for now.
Just a warning, there aren't many great examples out there so its somewhat difficult to figure out.

Categories

Resources