user2812495
user2812495

Reputation:

Get json from google analytics

I've a website with google analytics implemented. Everything shows fine on google analytics page eg. pageviews, gender, age.... but I need to get this data in JSON form for creating my own dashboard on my website. Simply, I need to get age and gender data via the URL link. Something like here: http://api.opentracker.net/api/trends/[email protected]&password=demo123&site=www.opentracker.net&period=1d There is any solution to make this ? PS: google analytics is implemented on page X and I'm making the dashboard on page Y. Thanks.

Upvotes: 0

Views: 14431

Answers (3)

software.wikipedia
software.wikipedia

Reputation: 719

I struggled with this for some time and could not do it so I had done some manual steps that could help people who want to do once in a while - here are the steps I followed -

Upvotes: 0

Carlos Neves
Carlos Neves

Reputation: 67

1º GET YOURAPIKEY - https://developers.google.com/url-shortener/v1/getting_started

2º Use link below with your XXXXXX goo.gl short link

https://www.googleapis.com/urlshortener/v1/url?shortUrl=http:// goo.gl/XXXXXX&projection=FULL&key=YOURAPIKEY

Upvotes: 0

Philippe Sawicki
Philippe Sawicki

Reputation: 862

There is no webservice specifically designed to export JSON data, but you can use the Google Analytisc Embed API to obtain the same results.

For an example, and some open-source code from Google, you might want to check out https://ga-dev-tools.appspot.com/embed-api/third-party-visualizations/

Upvotes: 2

Related Questions