错误的用户数Google Reporting API v3 [英] Wrong count of users Google Reporting API v3

查看:58
本文介绍了错误的用户数Google Reporting API v3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用

来自查询浏览器

Google Analytics(分析)网站报告

例如,如果您想查看此报告,则必须包括在此处可以看到的所有维度和指标,以便在API中获得相同的结果.您不能只选择登录页面和会话并期望数字匹配.这又不是一个关系数据库,而是一个多维数据库.

还请记住要确保您检查的日期至少早48小时.未使用48小时的数据尚未完成处理,可能会导致您的电话号码丢失.

对于链接到评论的人,您将需要以下内容

  ga:landingPagePathga:usersga:newUsersga:sessionsga:bounceRatega:pageviewsPerSessionga:avgSessionDurationga:goal1ConversionRatega:goal1Completionsga:goal1Value 

I use Google Analytics core Reporting v3. I request data from Google Analytics.

Request:

metrics = "ga:sessions,ga:users"
dimensions = "ga:landingPagePath"
filter = "ga:channelGrouping=@Organic"
precision = "higher_precision"

Results

{.... // 7 rows with landing pages
....
ga:users: "39"
....
containsSampledData: false}

BUT in the Google analytics website I see count of users = 34 for the same period.

If I delete dimensions = "ga:landingPagePath" from request, I get right count of users like in the UI (34 users).

How can I get data with dimensions = "ga:landingPagePath" and right count of users like in the UI for the one request?

解决方案

The Google analytics database is a mulit dimensional database. It is NOT a relational database.

You can not compare things that are not exactly the same. Create a request in the Google analytics website that has exactly the same dimensions and metrics and date ranges and the data should return close to what you get in the API. There will always be a few errors especially with calculated columns.

You cant look at two different requests and expect to see the same numbers it doesn't work that way.

From the Google analytics website

From query explorer

Google Analytics website report

If you for example want to see this report You are going to have to include all of the dimensions and metrics you can see here in order to get the same results back in the API. You cant just take Landing pages and sessions and expect the numbers to match up. This is again not a relational database its a multi dimensional database.

Also remember to be sure that the dates you are checking are at least 48 hours old. Data under 48 hours old has not completed processing and may cause your numbers to be off.

For the one you have linked in comments you would need something like this

ga:landingPagePath
ga:users
ga:newUsers
ga:sessions
ga:bounceRate
ga:pageviewsPerSession
ga:avgSessionDuration
ga:goal1ConversionRate
ga:goal1Completions
ga:goal1Value

这篇关于错误的用户数Google Reporting API v3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆