douduidui1046 2016-09-01 07:30
浏览 198
已采纳

使用谷歌分析API - “入门”教程

So I'm all new to using Google API's, so bear with me :)

I've started with the tutorial for getting started with google embed analytics API, at this link: https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started

Just for notice, I'm working in PHP.

By following the tutorial, I've made it possible to sign in to the google account, and my page displays the logged in google account, and displays 3 dropdown menus, 1 for 'account', 1 for 'property' and 1 for 'view'.

Now when I look at the tutorial site, you have the option to select entities from these drop downs, and furthermore theres a graph displayed below.

Image from tutorial site: https://developers.google.com/analytics/images/embed-api-screenshot.png

However, In my case, I have my logged in account displayed, but my 3 drop down menus are empty, meaning I cant select anything(In the tutorial a 'store' is selected), and furthermore, I have no graph/chart displayed below.

My app looks like this:

enter image description here

I'm guessing that I need to set these things up in my google dashboard somehow, but I'm not sure as to how I should go about this? If anyone knows what I'm doing wrong, it would be greatly appreciated! :)

  • 写回答

1条回答 默认 最新

  • douyu0725 2016-09-01 09:12
    关注

    Eike was completely correct - I needed to setup a GA account, and register a website. GA had some info that I followed, which included putting a certain script on my website, to allow tracking of my site.

    I Now have a working implementation, so thanks to Eike! :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!