android - How to use Google Analytics track referrer install from Google Play? -
- add libgoogleanalytics.jar project's /libs directory.
add following permissions project's androidmanifest.xml manifest file:
<uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.access_network_state" />
add following code snippet project's androidmanifest.xml manifest file:
<!-- used install referrer tracking --> <receiver android:name="com.google.android.apps.analytics.analyticsreceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.install_referrer" > </intent-filter> </receiver>
but never entered ua-xxxxx-yy id. id entered pageviews , events tracking this:
tracker.startnewsession("ua-xxxxx-yy", this);
google analytics android sdk readme says: (note: not start googleanalyticstracker in application oncreate() method if using referral tracking).
referrer tracking put id or not? if need, how? if not, why?
at first, seemed strange me google require need install referrer tracking incorporate 2 permissions might otherwise unneeded, plus library, apps, given information needed track referrers available on google play servers, , presumably accessed there via web-based interface, similar 1 used track purchases on chrome web store. when consider app-based analytics interface not cover purchases via gp web pages, case doing seems more convincing.
this omission still seems odd in general case of tracking arbitrary referrer, discovered in specific case referrer trying track comes adwords ad, there seems easier means of tracking google play app installs not require modifications app. of set through adwords interface, not through google play, , not through modifications app.
you did not indicate whether referrers adwords or other source or sources, i'll provide information, in case useful.
this page
http://support.google.com/adwords/bin/answer.py?hl=en&answer=1722054
describes how set conversion tracking of google play app sales via adwords. page:
tracking mobile app downloads google play doesn't require adding code snippet. can done no changes app's code. follow steps below.
sign in adwords account @ http://adwords.google.com
click "tools , analysis" tab, , click "conversions" tab.
click "+ new conversion" button. name conversion, select "mobile app download" , click "save , continue". enter package name. (you can find package name looking app in google play. it's part of base url identifies application: "https://play.google.com/store/apps/details?id="
click "save , continue".
on next screen, click "done".
your mobile app downloads conversion data start showing rest of conversion data within 24 hours.
note: mobile application download tracking android work if links in click-to-download or mobile app extension ads point directly google play store. third-party tracking urls not supported @ time.
Comments
Post a Comment