获取总自定义维度
Get total custom dimensions
我正在尝试获取会话中使用的服装总尺寸,但出现以下错误。我该如何解决这个问题
select count(hits.product.customDimensions.value)
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_xxxx`,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS prod,
UNNEST(hits.product.customDimensions) AS cust
我收到以下错误
Cannot access field customDimensions on a value with type ARRAY<STRUCT<productSKU STRING, v2ProductName STRING, v2ProductCategory STRING, ...>> at [5:21]
试试下面
select count(cust.value)
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_20170801`,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS prod,
UNNEST(prod.customDimensions) AS cust
我正在尝试获取会话中使用的服装总尺寸,但出现以下错误。我该如何解决这个问题
select count(hits.product.customDimensions.value)
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_xxxx`,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS prod,
UNNEST(hits.product.customDimensions) AS cust
我收到以下错误
Cannot access field customDimensions on a value with type ARRAY<STRUCT<productSKU STRING, v2ProductName STRING, v2ProductCategory STRING, ...>> at [5:21]
试试下面
select count(cust.value)
FROM `bigquery-public-data.google_analytics_sample.ga_sessions_20170801`,
UNNEST(hits) AS hits,
UNNEST(hits.product) AS prod,
UNNEST(prod.customDimensions) AS cust