如何从 Google 报告中获取每页浏览量 API

How to get per-page views from Google Reporting API

我正在尝试使用 Google 报告 API 和查询构建工具来获取每个 URL 页面浏览量的报告。

我有一个简单的博客(自定义 CMS,不是 wordpress),每个月我用它来发布一堆 post。我想在我的仪表板中获得每个 post.

旁边的(综合浏览量)数字
  1. 这可能吗?
  2. 这是否需要我在 GA 中创建自定义维度,如果需要,是哪个维度?

提前致谢。

I have used the Query Explorer to try and build a query that would give me views per page. I actually want a trend(?) of views per post over a period of one month, so I could use the datapoints to create a sparkline for each post

Select ga:date 和 ga:pagePath 作为维度,ga:pageviews 作为指标。按 ga:pagePath 排序。您不需要任何自定义维度。