In order to separate statistics from devices with different form-factors I'd like to incorporate subdomain tracking - is there any relevant feature on Android GA SDK ?
P.S. If I'm not mistaken this feature is accessed with setDomainName method in JS API consumer.
Thanks.
Why not just utilize Advanced Segments in Google Analytics which will keep everything in the same profile, but will let you use segmentation to filter the data you want in reports?
For example, you can create a segment to filter all user agents of a certain string:
INCLUDE BROWSER MATCHING REGEXP ^(Your_custom_user_agent)$
Related
I am integrating my Android application with Google Analytics and was wondering what kind of security measures should be taken to avoid my analytics data being deliberately polluted by bad people. Sure, GA data is not production-critical, and there are (hopefully) not too many people running around who do such things just for fun, but still - within reason, I'd like to apply whatever preemptive measures there are.
Right now the only thing that comes to mind is that I should avoid the tracking id falling into bad hands.
Google search results I found only talk about:
protecting the tracking id for webpages - not so much talk about how to do the same for Android applications
setting up a GA filter to include traffic data for my own webpage only - again, this is just for webpages...
When submitting hits from my app, there seem to be two ways for the data to reach the GA servers:
If Google Play Services is not installed, putHit runs and fires an HTTPS query with the hit data. If log level is set to debug, I can see this happening, and the data in the ADB logs, along with the tracking id.
If GPS is installed, that will take care of dispatching presumably also over HTTPS.
So this leads me to think that the best I can do on the application front is to make sure log level is above debug (which is a good idea regardless) and to encrypt the tracking id to at least make it difficult to extract from the APK.
On the GA front, I have not found anything similar to the webpages-filtering solution.
Is there anything else I can do?
After you login into: Google Analytics
Under Admin > View > Filter > New Filter > Custom - you could possibly choose to filter by Application Id.
Application Id i believe is the package name you set in your manifest file.
Again this is not fool-proof:
Anyone else can setup the same Application Id too, but it will require more effort.
Google Analytics - shud hv provided a better way to solve this.
I am using GoogleAnalytics SDK for Android and IOS. i have created a PhoneGap application. Now i would like to get Unique visitors or users of my application.
I am using following code for GoogleAnalytics
GoogleAnalytics ga = GoogleAnalytics.getInstance(cordova.getActivity());
Tracker tracker = ga.getDefaultTracker();
tracker = ga.getTracker("UA-00000000-0");
GAServiceManager.getInstance().setDispatchPeriod(10);
ga.setDefaultTracker(tracker);
Is there any way to get unique users based on his UserID?
Though this isn't an answer on how to accomplish what you want in Google Analytics, here is how you can accomplish what you want with a different tool. Quantcast Measure for Apps has a PhoneGap plugin that will provide you with unique users and user retention based on a user ID that your provide.
Links:
Read More about Quantcast Measure for Apps
Get the Quantcast PhoneGap plugin on Github
Details on how to track users based on your user ID
You'll be able to produce cohort-based total uniques and user retention analysis. If you have a website, you'll be able to do the same cross-platform.
Disclaimer - I work at Quantcast
I am building an Android app that uses Google Analytics to record various Events and Screens throughout the app. The Engagement Flow dashboard is quite striking but I'd like to export the data and play with it on my own. How can I write my app so that I can extract the data that is used in the Engagement Flow dashboard using the Google Core Reporting API?
Currently, I am using sendEvent and sendView to track Events and Screens respectively in the Engagement Flow. I'm guessing my approach is working because the report works correctly in the Google Analytics UI, but I can't get the data out using the Core Reporting API for Android. I am fairly confident this is doable because I've been able to access the data using the query explorer for our website with the ga:previousPagePath and ga:pagePath dimensions (see screenshot below), but the same thing does not work for the Android SDK. I can get some data out using an undocumented ga:screenName dimension, but the corresponding ga:previousScreenName (and any permutation thereof) does not exist. Thoughts?
For what its worth, others have had similar questions in case its useful:
How to get “Visitors Flow” data from Google Analytics GAPI API?
Get Google Analytics "Visitors Flow" data from API
According to Google-Analytics, as of now this feature is not available.
I have a few questions regarding android market(Google play). How can I list my published application by accessing from my google account? What I have done so far is using my application package name as a query string to search my application and display all information which I used android market api to do it. Is there another better way to display all my published or installed applications by accessing from my google accounts?
My second question is about detecting number of downloading and installations of my published application. I have found only google analytics so far(for free) which I need to embedded some codes to monitoring my application. Is it possible for me to access those information from android market publish page . I have found that publish page contains information that I need.
Edited: For second question, I would like to obtain statistical information without adding any new code to my application. Is it possible to provide only google account to grant the permission to get those information?
My application is published. If I am using google analytics to monitoring my application do I need to start my counting from zero?
Sorry for my English and my little knowledge about this.
Thanks in advance..
Edited: .. I have found an application, called "analytics" that is what exactly I want to do. But I still cannot figure it out how it works..
The only place you will find this kind of information is on your Developer page. That said, if I were wanting to do what you are, I would put up an app on App Engine that either parsed my Dev page on request, or on a schedule. I mention App Engine as personal preference here, you could obviously use anywhere you can host scripts on.
You can then do what you like with the data you have collected, and your app can request this from your site. Assuming you have no qualms with publicising these numbers, you wouldn't need to scare users by authenticating, and would just need a plain html request.
Edit:
In your language of choice, you would need to request your developer page (the one that lists apps and their install count) and would also need to authenticate as yourself to get it. It's for this reason I would use your own hosting if you can. I can't be more specific than this, as I don't know what language you're most likely to be using. It should be trivial to find out how to do an html request and step through the page in whatever language it is though. App Engine pages are written in Java or Python and deployed to the server, while other obvious options are PHP or Perl. On my own server I would most likely use Perl as it's ideal for ripping up html with regexps.
when providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.
I'm guessing the answer is no - but it doesn't help to ask.
The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.
This is possible only for the use case of referral tracking, using the Analytics Tracking for Mobile Apps SDK. The documentation will have more details, but the basic steps are:
Create referral-tagged market deep link URLs using this tool.
Use these links on web sites that you want to track referrals from.
When a user downloads your app using the referral link, the referral info is stored.
Upon first run of your app, use the Analytics SDK to track a 'first-run event' using trackEvent. If your app was downloaded with referral info, this event (and all future event and pageview tracking) will be tagged with the referral info.
In Analytics, you'll be able to filter these events on campaign/referral info.
I think you can change a bit the scenario of the anlytics referral tracking to pass parameters to your app during installation if you need...
You have to declare a custom receiver for com.android.vending.INSTALL_REFERRER in the custom receiver parse the url from the market.
If you want the analytics to work as well, is better if you extend the com.google.android.apps.analytics.AnalyticsReceiver and call the super.onReceive
There are two parameters that are optional in the referral the campaign term and the campaign content so I will put there the information you want to pass
I worked a bit on this and I wrote a post where I explain even how to test it : http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001