【发布时间】:2019-03-08 12:49:28
【问题描述】:
我正在为 Android TV 开发应用程序,是否有可能知道我的应用程序在哪台电视上运行或在其上执行了哪些操作?
谢谢。
【问题讨论】:
标签: google-analytics android-tv leanback
我正在为 Android TV 开发应用程序,是否有可能知道我的应用程序在哪台电视上运行或在其上执行了哪些操作?
谢谢。
【问题讨论】:
标签: google-analytics android-tv leanback
查看您的应用支持的设备:
更多信息: https://support.google.com/googleplay/android-developer/answer/7353455
要跟踪在您的应用上执行的操作,您可以使用 Fabric 的 Answers 插件。 以下是您需要添加到代码中以跟踪 Answers 中的事件的示例代码:
public void onKeyMetric() {
// TODO: Use your own string attributes to track common values over time
// TODO: Use your own number attributes to track median value over time
Answers.getInstance().logCustom(new CustomEvent("Video Played")
.putCustomAttribute("Category", "Comedy")
.putCustomAttribute("Length", 350));
}
【讨论】: