Reputation: 103
I have JavaScript function to return list of google analytics account names for a given email address. I want to get view Id by giving account name or account Id.Is there any API or way to do this?
Upvotes: 0
Views: 497
Reputation: 431
Considering using Account Summaries instead. It should give you a list of all accounts/properties/views. I think it will work better for you use case.
There is also a javascript example for calling it here.
Upvotes: 1
Reputation: 35
I know that there aren't many JavaScript examples in these but have you tried checking out the official Google Analytics API and documentation? It makes things so much easier when you can go off of the given options and then convert them to JavaScript.
Upvotes: 1