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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?