谷歌分析API如何使用维度和指标深入了解内容
我正在为自己编写一个程序,我想在其中列出谷歌分析的内容深入分析。获取谷歌分析内容钻取中显示的详细信息的维度和指标是什么?
I am writing a program for myself in which i want to list the content drilldown of google analytics. what is the dimension and metrics to get that detail like shown in google analytics content drill down?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太清楚您所说的内容钻取的含义。但是当我进入 Google Analytics -> 时,内容->内容深入分析,我得到一个表格,其中在第一列中列出了所有页面路径。您在此处使用的维度为 ga:pagepath。当然,您可以选择您想要的任何指标(例如访问量、网页浏览量、新访问量、跳出率等)。
现在,在 Google Analytics 上,我发现您可以进一步深入研究特定的页面路径,它将列出调用该页面的查询参数的所有变体。例如,如果您有一个页面路径 vieworders.php,则可能会列出以下内容:
但在 API 中,它返回带有关联参数的页面页面(即,它不会将页面路径与查询分开)。您必须为此编写自己的例程。
I am not entirely clear by what you mean with content drilldown. But when I go into Google Analytics -> Content -> Content Drilldown, I get a table which lists in the first column all page path. The dimension you would use here would be ga:pagepath. And of course you could select any metric you desire (e.g. visits, pageviews, new visits, bounces, etc).
Now on Google Analytics I see you can further drill down on a particular pagepath and it will list out all variations with respect to query parameters that page was called with. For example, if you had a pagepath vieworders.php, you might have the following listed:
But in the API it returns the pagepage with the associated parameters (i.e. it does not separate the pagepath from the queries). You would have to write your own routine for this.