code8
code8

Reputation: 103

Get Google Analytic View Id

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

Answers (2)

Josh
Josh

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

The Real Fake Admin
The Real Fake Admin

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

Related Questions