用于Google BigQuery的SQL查询,用于计算会话和网页浏览量

时间:2015-07-03 08:20:09

标签: sql google-analytics google-bigquery

我正在使用Google Big Query查询我网站的每日Google分析报告。我一次在7个表(每日7个报告)上运行查询,因为我想使用每周结果。

我想运行一个显示“Users with >= x sessions and with >= y page views”的查询。我在构建此查询时遇到了困难。

结果表应显示fullVisitorId,totals.visits(会话数),totals.pageviews(会话中的综合浏览量总数)。我应该使用子查询,还是有其他方法?

如果您想查看完整方案,请使用以下链接:https://support.google.com/analytics/answer/3437719?hl=en

1 个答案:

答案 0 :(得分:1)

基本查询如下:

  <div ng-show="submitted && userLogin.centerCode.$dirty && userLogin.$invalid" class="alert alert-danger">
                    <div ng-show="userLogin.centerCode.$error.required">
                        Center code is required.
                    </div>
                    <div ng-show="userLogin.centerCode.$error.maxLength">
                        Enter Max 5 characters only
                    </div>
                </div>

                <div ng-show=" submitted && userLogin.userID.$dirty && userLogin.userID.$invalid " class="alert alert-danger">
                    <div ng-show="userLogin.userID.$error.required">
                        User Id is required.
                    </div>
                    <div ng-show="userLogin.centerCode.$error.maxLength">
                        Enter Max 20 characters only
                    </div>
                </div>

                <div ng-show="submitted && userLogin.password.$dirty && userLogin.password.$invalid" class="alert alert-danger">
                    <div ng-show="userLogin.password.$error.required">
                        enter password
                    </div>
                </div>

要在示例数据库上运行此查询,请访问:https://support.google.com/analytics/answer/3416091?hl=en

相关问题