私は、BQ を使用して大規模なエンタープライズ クライアントで今後の作業を行うための準備として、プラクティス リポジトリを使用しています。リポジトリのリンクは次のとおりです: google.com:analytics-bigquery:LondonCycleHelmet.ga_sessions_20130910
サンプル リポジトリと実行されたクエリに関して 3 つの質問があります (質問の動機となったクエリについては、リンクの下部を参照してください。
1) customDimensions.index, customDimensions.value と hits.customDimensions.index, hits.customDimensions.value の違いは何ですか?
2) 1 つのヒットに複数のカスタム ディメンション/指標がある場合、それはどのように返されますか? サンプル データのヒット レベルで一致する単一のディメンションのみが表示されます。
3) サンプル データにカスタム メトリック値が渡されていません。これらの値はどのようになりますか?
前の 3 つの質問の動機となったクエリを次に示します。
SELECT hits.page.pagePath AS urls,
hits.time,
customDimensions.index,
customDimensions.value,
hits.customMetrics.index,
hits.customMetrics.value,
trafficSource.medium,
hits.customVariables.index,
hits.customVariables.customVarName,
hits.customVariables.customVarValue
FROM [google.com:analytics-bigquery:LondonCycleHelmet.ga_sessions_20130910]