Google Analytics 追踪器 javadoc

31

我在哪里可以找到Google Analytics for Android的javadoc?我在项目主页上搜索了一下,但是无论如何都找不到。


2
我不确定是否存在。你想要做什么? - sho
2
几乎每个方法都在网站上用详细的描述进行了说明 - 你有什么具体要找的吗? - CrackerJack9
@bizso09,我只是问一下,因为似乎没有一个明确的答案,但如果你有具体的问题,可能会有人能够给你一个具体的答案 :) - CrackerJack9
1
我有点和你情况类似。主要功能在提供的示例代码中已经包含,但我只是想知道有哪些选项适用于我。有很多跟踪方法,比如 setDryRun()。我猜这只是标志,会在分析网站的某个地方显示出来。我只是不知道它们具体是做什么的,很好奇。 - Tim
5个回答

6

您可以在“GoogleAnalyticsAndroid.zip”文件中的“javadocs.zip”文件中找到适用于Android的Google Analytics javadocs,其中包含“libGoogleAnalyticsV2.jar”。 在此处下载。


1


1

有一个 Google Code 页面专门针对 Anaylytics,它展示了如何使用 API。Analytics-api-sample。你可能需要从 SVN 中检出才能使用它。


0

我所接触到的最接近文档的内容是从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.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接