Templates of SQL Queries To Google Bigquery That Will Take Your Reports To Another Level
Templates of SQL Queries To Google Bigquery That Will Take Your Reports To Another Level
In this post, we’re sharing report templates that you can build with SQL
queries to Google BigQuery data.
First, you’ll find out about what you can calculate with the standard export
from GA360 to GBQ.
Next, you’ll discover what unique metrics can be added to the standard
Google Analytics ones, with the help of OWOX BI Pipeline.
Google Analytics reports are user-friendly and convenient, though you may
face sampling, data aggregation, and other limitations. Heads up! There’s a
way out: using the standard data export to Google BigQuery to circumvent
restrictions and build more comprehensive reports via SQL requests.
Say you’ve implemented new metrics or updated the existing ones on your
website, to measure KPIs important to your business. You can use the
report on hit number changes on your website to see if the data is sent
correctly and to react timely to any analytics errors. You’ll need the
following dimensions for this report type:
device.deviceCategory.
device.browser.
hits.type.
eventCategory.
eventAction.
Content Grouping.
A regular Google Analytics report wouldn’t provide you with all the
aforementioned information, as it allows to simultaneously choose 2
dimensions only, while a custom report suggests a little more — 5
dimensions. SQL queries don’t have such restrictions, engaging you to pull
all metrics and dimensions you’d like in a report.
The SQL query template we’re providing in the PDF file will help you find
out about how sessions, users, and hits are distributed among browsers,
devices, and hit types. If needed, you can add any more dimensions to the
query. For instance:
device.operatingSystem.
device.mobileDeviceInfo.
device.language.
geoNetwork.region.
You can also import the information from your CRM or ERP systems to
Google BigQuery. Thus, you’ll be able to analyze user behavior across any
metrics required: product catalog, margin, product category, user
description, order completion, etc. For example, you send a query to get
data on transactions, then combine them with the paid off orders from
CRM, and calculate the percentage of online completed orders. This will
help you understand if there are any issues on the way from placing an
order to payment or delivery.
The aforementioned query will also help you calculate the following
average, maximum and minimum values for each user:
Using the very same SQL query, you can also calculate these values for
each session:
With such information at hand, you can predict repeated purchases and
micro conversions.
To refine your sales funnel, you need to give a proper credit to what users
do on your website before making a purchase. «User Explorer» report in
GA will provide you with the info on all types of user actions (pageview,
event, social, timing). However, it may be complicated and time
consuming, as you’ll get to see this kind of statistics per a single user only,
applying advanced segments and product ID filters for that purpose.