简体   繁体   English

如何使用Google Analytics(分析)API检索特定日期访问的页面列表?

[英]How do I retrieve a list of the pages visited on a particular day using the Google Analytics API?

We use Google Analytics on our site to track page views, and I am interested in getting a list of which pages were viewed on a given day. 我们使用我们网站上的Google Analytics(分析)来跟踪页面浏览量,我很想获得在一天中浏览过哪些页面的列表。 I'm not looking for the number of times a page was viewed primarily, as I know that this information is available if we need it. 我不是在寻找主要浏览页面的次数,因为我知道此信息在我们需要时可用。 Rather I want a list of all of the unique URLs visited on the site for a given day. 相反,我想要一个列表,列出给定的一天在网站上访问的所有唯一URL。 Is there a way to do this? 有没有办法做到这一点?

TL;DR TL; DR

You can query the landing page dimension and visitor metric to get that data. 您可以查询目标网页的维度和访问者指标以获取该数据。 For more info here is Google Analtyics query explorer and dimensions/metrics reference 有关更多信息,请参见 Google Analtyics 查询浏览器尺寸/指标参考

Slightly longer answer: 答案略长:

Here is the dimension you would want to use. 这是您要使用的尺寸。

ga:landingPagePath

Here is the metric you would want to use. 这是您要使用的指标。

ga:visitors

This will give a report of the urls for the date range you want and the amount of traffic it got. 这将为您提供所需日期范围的网址及其获得的点击量的报告。 If you don't care about the actual traffic you can just remove that once the data is pulled. 如果您不关心实际流量,则只需在提取数据后将其删除即可。

Here is more info/examples about google's data api's for python 这是有关python的Google数据API的更多信息/示例

If you are familiar with using the API, selecting these two dimenions: 如果您熟悉使用API​​,请选择以下两个维度:

  • Page
  • Date 日期

and any of the relevant page-level metrics (pageviews, unique pageviews, etc.) will product the desired report. 以及任何相关的网页级指标(网页浏览量,唯一身份网页浏览量等)都会生成所需的报告。

Try using this link to shared-report from GA Query Explorer , I believe those are the numbers you want. 尝试使用此链接从GA Query Explorer共享报告 ,我相信这些就是您想要的数字。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Analytics(分析)查询,检索用户在会话期间访问过的所有页面 - Google Analytics query,retrieve all pages visited by a user during a session 如何使用Google Analytics维度在多个表单页面中跟踪用户ID? - How do I track userID across multiple form pages using Google Analytics Dimensions? 如何知道特定用户在特定会话中访问了多少页面 - how to know how many pages a particular user visited in a particular session 我如何跟踪使用PHP中的Cookie访问的最近5页 - how can i track last 5 pages visited using cookies in php 如何配置Google Analytics API v3 - How do I configure Google Analytics API v3 如何使用Google Adsense或Analytics(分析)API来获取各个页面的利润? - how can I take the profit of the individual pages with google adsense or analytics api? 如何使用Google Analytics API获取“平均会话持续时间”和“每次访问查看的平均页面” - How to get 'average session duration' and 'Average pages viewed per visit' using google analytics api 如何使用PHP API客户端检索公司的Google日历资源? - How do I retrieve Google Calendar Resources for my company using the PHP API client? Google Analytics API如何检索下一页数据 - Google Analytics API how to retrieve next page of data 如何检索Google Calendar Resources PHP API客户端? - How do I retrieve Google Calendar Resources PHP API client?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM