最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Get json from google analytics - Stack Overflow

programmeradmin4浏览0评论

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: /[email protected]&password=demo123&site=www.opentracker&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.

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/api/trends/[email protected]&password=demo123&site=www.opentracker&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.

Share Improve this question edited Apr 18, 2015 at 17:54 asked Apr 18, 2015 at 17:21 user2812495user2812495
Add a ment  | 

3 Answers 3

Reset to default 2

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./embed-api/third-party-visualizations/

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

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

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

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 -

发布评论

评论列表(0)

  1. 暂无评论