gpt4 book ai didi

google-analytics - 如何获取未设置值的维度(自定义变量)的结果?

转载 作者:行者123 更新时间:2023-12-03 15:29:18 24 4
gpt4 key购买 nike

我正在使用自定义变量来跟踪订单 ID。为了将分析数据聚合到数据仓库中,我想选择一些以自定义变量作为维度的指标。但是,如果我这样做,我将不会获得未设置变量的条目(例如,未导致销售的 session )。我也需要得到这些。

我可以编写一个过滤器或分段来仅选择没有特定自定义变量的条目吗?我试过了:

segment=dynamic::ga:customVarValue1==

但这似乎不起作用(它没有返回任何结果)。

基本上我正在寻找等效于 where ga:customVarValue1 is null在 sql 中。

最佳答案

简而言之,正如谷歌代表所解释的那样,不可能获得空集数据:

For some dimensions, GA uses the default value of (not set). Custom Variable do not have a default value, so if a hit does not have a custom variable associated with it, all the other dimensions in the query are not added to the reports.



最初的答案有点令人困惑,但是当您在两行之间阅读时,它表明它们在运行聚合时会丢弃这些“空”值。

正如他所解释的,“正确”方法是为您要报告的任何行设置默认值:

If you need to see the (not set) value, you could try sending a default value for custom variables.

For example if you use visitor level custom vars to track member vs non-member, you should always set non-member as a default for everybody; then modify to member once they register.



详情在这里: http://groups.google.com/group/google-analytics-data-export-api/browse_thread/thread/cd078ddb26ca18d5?pli=1

关于google-analytics - 如何获取未设置值的维度(自定义变量)的结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7374550/

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