开发者

How to put the ID of Google Analytics on my Android App?

开发者 https://www.devze.com 2023-04-07 10:00 出处:网络
I have this ID for my GA account: "UA 25832113-1" ok, but... how I have to put it on my app? Which format?

I have this ID for my GA account: "UA 25832113-1"

ok, but... how I have to put it on my app? Which format?

A -开发者_高级运维> "UA 25832113-1"

B -> "UA-25832113-1"

C -> "25832113-1"


B is correct. (ie. 'UA-10876-1')

Official docs: http://code.google.com/apis/analytics/docs/concepts/gaConceptsAccounts.html#webProperty


B

if you are using the "Google Analytics SDK for Android" you shuld use something like this:

tracker = GoogleAnalyticsTracker.getInstance();
tracker.startNewSession("UA-25832113-1", this);
0

精彩评论

暂无评论...
验证码 换一张
取 消