gpt4 book ai didi

google-analytics-api - 查询 Google Analytics API 以获取特定页面的统计信息(按页面过滤)

转载 作者:行者123 更新时间:2023-12-04 05:41:49 24 4
gpt4 key购买 nike

此查询按流量来源提供访问量;

https://www.google.com/analytics/feeds/data?ids=ga%3A123456&dimensions=ga%3Asource%2Cga%3Amedium&metrics=ga%3Avisits&sort=-ga%3Avisits&start-date=2009-08-12&end-date=2009 -08-26&max-results=50

但是,当指定过滤器时: ga:pagePath==/Default.aspx - 我得到零结果

https://www.google.com/analytics/feeds/data?ids=ga%3A123456&dimensions=ga%3Asource%2Cga%3Amedium&metrics=ga%3Avisits&filters=ga%3ApagePath%3D%3D%2FDefault.aspx&sort=-ga%3Avisits&start -date=2009-08-12&end-date=2009-08-26&max-results=50

如何过滤 ga:pagePath?

最佳答案

query1.Dimensions = "ga:date,ga:pagepath"
query1.Metrics = "ga:pageviews"
query1.Sort = "ga:date,ga:pagepath"
query1.GAStartDate = "2010-09-01"
query1.GAEndDate = "2010-09-10"
query1.Filters = "ga:pagePath=~/abc*"

希望这对你有用。

关于google-analytics-api - 查询 Google Analytics API 以获取特定页面的统计信息(按页面过滤),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1339153/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com