为Analytics和跟踪设置Android应用程序 [英] Setting up Android application for Analytics and tracking

查看:106
本文介绍了为Analytics和跟踪设置Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

跟踪事件和设置网站分析似乎很容易。您可以使用Google之类的Google Analytics服务提供商创建帐户。它们会为您提供嵌入页面的javascript代码(无论您想要跟踪哪个事件),并且瞧..您已完成。

Tracking events and setting up Analytics for Websites seems easy. You create an account with one of the Analytics service providers like Google. They give you javascript code that you embed in your pages (whichever event you wish to track) and voila..you're done.

我为Android手机编写了一个原生应用程序,实际上是对实际网站的改编。现在,我需要为此本机应用程序设置Analytics和跟踪。

I have written a native application for Android phones, which is actually an adaptation of the actual web site. Now, I am required to setup Analytics and tracking for this native application.

问题:


  1. 如何设置本机应用程序分析?

  1. How to do setup a native application for Analytics?

我们有适用于原始网站的Java脚本代码(不是Google Analytics,但适用于其他引擎)。有没有办法将其合并到本机应用程序中?

We have Java Script code(not Google Analytics but for some other engine) that works for the original web site. Is there a way to incorporate that in the native application?

我知道Android通过WebViews(Webkit)支持Java Script;我的应用程序没有webview,它是原生的!

I know Android supports Java Script via WebViews(Webkit);my application does not have webviews, it is native!

我从学校开始就没有使用JavaScript,所以如果我听起来很天真,请原谅。

I have not worked on JavaScript since school so excuse me if I sound naive.

谢谢。

推荐答案

Google Analytics提供实施指南移动设备。
请参阅 http://code.google.com/ apis / analytics / docs / tracking / mobileAppsTracking.html

Google Analytics provide a guide for implementation on a mobile device. Refer to http://code.google.com/apis/analytics/docs/tracking/mobileAppsTracking.html

要开始使用,请查看指南

这篇关于为Analytics和跟踪设置Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆