I am trying to add users to my Google Analytics account through the API but the code yields this error:
invalid accountId: [email protected]."
Where I got account Id. Isn't It mean for user's Email ?
0
votes
AccountId is the id of the Google Analytics account. User e-mail is wrapped inside a userRef object. See the examples here: developers.google.com/analytics/devguides/config/mgmt/v3/…
– Eike Pierstorff
Why don't you show your code here?
– Deepak N
1 Answers
0
votes
Account User Links: insert adds a new user to the given account if the user has fewer than 100 accounts.
Go to the admin section of the Google Analytics website.
You will find your account ID under basic Account settings.