GA数据与GA Dashbaord和GA API不同

时间:2016-07-29 08:00:45

标签: java google-analytics-api google-analytics-v4

我正在尝试从GA Java AP获取GA数据。当我获取特定URL的数据时,其页面查看数据和在页面数据表格API上花费的时间在相同的时间范围内是不同的。

对于一个网址,我得到了这个区别。

这是查询

{
dateRanges=[{
    endDate=2016-07-28,
    startDate=2016-07-28
}],
dimensionFilterClauses=[{
    filters=[{
        dimensionName=ga: pagePath,
        expressions=[/53433409.cms],
        operator=REGEXP
    }]
}],
dimensions=[{
    name=ga: pagePath
},
{
    name=ga: hostname
}],
metrics=[{
    alias=PageViews,
    expression=ga: pageviews
},
{
    alias=TimeOnPage,
    expression=ga: timeOnPage
}],
samplingLevel=LARGE,
viewId=123
}  

回复

{
"reports": [{
    "columnHeader": {
        "dimensions": ["ga:pagePath",
        "ga:hostname"],
        "metricHeader": {
            "metricHeaderEntries": [{
                "name": "PageViews",
                "type": "INTEGER"
            },
            {
                "name": "Time On Page",
                "type": "TIME"
            }]
        }
    },
    "data": {
        "isDataGolden": true,
        "maximums": [{
            "values": ["16996",
            "1360186.0"]
        }],
        "minimums": [{
            "values": ["76",
            "391.0"]
        }],
        "rowCount": 5,
        "rows": [{
            "dimensions": [" x.x.com/articleshow_comments/53433409.cms",
            " x.x.com"],
            "metrics": [{
                "values": ["76",
                "391.0"]
            }]
        },
        {
            "dimensions": [" x.x.com/life-style/home-garden/abc/amp_articleshow/53433409.cms",
            " x.x.com"],
            "metrics": [{
                "values": ["681",
                "14714.0"]
            }]
        },
        {
            "dimensions": [" x.x.com/life-style/home-garden/abc/articleshow/53433409.cms",
            " x.x.com"],
            "metrics": [{
                "values": ["88",
                "3228.0"]
            }]
        },
        {
            "dimensions": [" x.x.com/life-style/home-garden/abc/articleshow/53433409.cms",
            " x.x.com"],
            "metrics": [{
                "values": ["14361",
                "1272052.0"]
            }]
        },
        {
            "dimensions": ["m.x.x.com/life-style/home-garden/abc/articleshow/53433409.cms",
            "m.x.x.com"],
            "metrics": [{
                "values": ["16996",
                "1360186.0"]
            }]
        }],
        "samplesReadCounts": ["999997"],
        "samplingSpaceSizes": ["12608639"],
        "totals": [{
            "values": ["32202",
            "2650571.0"]
        }]
    }
}]

}

Java API:
PV:32000
花费的时间总计:2642623

从仪表板
 PV:31000
花费的时间总计:5397828

从28个中午到29个中午的时间范围,因为GA始终是绝对日期。

dateRanges = [{endDate = 2016-07-28,startDate = 2016-07-28}

有没有人见过这种问题。我的采样水平很大但仍不包括所有样品 我们有高级帐户。

由于 Virendra Agarwal

0 个答案:

没有答案