我在哪里可以找到Google Analytics for Android的javadoc?我在项目主页上搜索了一下,但是无论如何都找不到。
您可以在“GoogleAnalyticsAndroid.zip”文件中的“javadocs.zip”文件中找到适用于Android的Google Analytics javadocs,其中包含“libGoogleAnalyticsV2.jar”。 在此处下载。
Google Analytics v4的Javadoc文档可以在此处找到:
https://developer.android.com/reference/com/google/android/gms/analytics/package-summary.html
Android Google Analytics 的完整文档在这里:
https://developers.google.com/analytics/devguides/collection/android/v4/
我所接触到的最接近文档的内容是从EasyTrackerAndroid_1.0.zip的ReadMe.txt中找到的这里。
ReadMe中的摘录:
ga_api_key (String) - the account ID used for tracking. You need this set for
EasyTracker to start tracking your application.
ga_debug (Bool) - Set to true if you wish to see debug messages from the
GoogleAnalytics library in the Android log. Default is false.
ga_dryRun (Bool) - Set to true if you want to test your tracking code without
actually sending data to Google Analytics. Default is false.
ga_anonymizeIp (Bool) - Set to true to remove the last octet of the device's IP
Address from tracking data. Default is false.
ga_sampleRate(Integer) - Set to a number between 0 and 100, inclusive. Zero
will turn off all tracking while 100 will have every
application instance track. Any number in between will
limit the number of application instances that actually
send tracking data to approximately that percentage.
Default is 100.
ga_dispatchPeriod (Integer) - Set to the time period in seconds to wait between
dispatches. Setting to zero will turn off
automatic dispatching. Default is 60.
ga_auto_activity_tracking (Bool) - Set to true to track time spent in each
Activity. Set to false to track application-
level information only. Default is false.
setDryRun()
。我猜这只是标志,会在分析网站的某个地方显示出来。我只是不知道它们具体是做什么的,很好奇。 - Tim