NullPointerException
NullPointerException

Reputation: 37577

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

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"

Upvotes: 0

Views: 156

Answers (2)

Sascha
Sascha

Reputation: 947

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);

Upvotes: 1

joet3ch
joet3ch

Reputation: 2502

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

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

Upvotes: 3

Related Questions