BigQuery GAP数据:购买产品A的客户购买的产品

时间:2016-03-31 17:24:28

标签: google-analytics google-bigquery

我跟着这个例子:

在BigQuery手册中购买产品A的客户购买的产品。 https://support.google.com/analytics/answer/4419694?hl=en#query7_ProductsPurchasedByCustomersWhoPurchasedProductA

信息:我在Google Analytics Premium中使用增强型电子商务,因此字段名称中包含v2。 Xes替换了我正在使用的表的原始数据集和日期

问题:现在,以下查询为我提供了每个other_purchased_products数量的虚增数字。我期待看到所有其他产品的总数,包括蓝色足球交易的客户。如果我查看Google Analytics Premium中包含蓝色足球的所有交易,他们购买的其他产品的数量不会累计?

<informaltable frame="all">
   <tgroup cols="4" align="left">
      <colspec colwidth="1*" />
      <colspec colwidth="1*" />
      <colspec colwidth="2*" />
      <colspec colwidth="0.7*" />
  <thead>
    <row>
      <entry>Operator</entry>
      <entry>Syntax</entry>
      <entry>Description</entry>
      <entry>Result</entry>
    </row>
  </thead>
    <tbody>
    <row>
      <entry>
        <para>Logical 'or'</para>
      </entry>

如果有人有任何线索,那就太棒了。

1 个答案:

答案 0 :(得分:1)

您没有提到这些计数有多远,但有一点我注意到您的查询使用COUNT函数,这是一个统计近似值。这可能会解释您所看到的差异。

如果您想要精确计数,请使用EXACT_COUNT_DISTINCT。请参阅https://cloud.google.com/bigquery/query-reference#exact_count_distinct

相关问题