This article is about GA3 - Universal Analytics

As a Google Analytics user you are probably quite attached to the default reports in the user interface of Universal Analytics. It can be hard to make sense of the data in the BigQuery export tables.

Let me enable you to replicate the reports you're familiar with. I'll try to keep it basic here.

Transactions report

In the Conversions | (Standard) Ecommerce | Transactions report you'll find data about the performance of your ecommerce activities, segmented by transaction id.

Let's query!

-- this query will not return quantity data as there is no standard ecommerce product data available in the sample data set

  ifnull(sum(hits.transaction.transactionrevenue)/1000000,0) as revenue,
  ifnull(sum(hits.transaction.transactiontax)/1000000,0) as tax,
  ifnull(sum(hits.transaction.transactionshipping)/1000000,0) as shipping,
  ifnull(sum(hits.item.itemquantity),0) as quantity
  unnest(hits) as hits
  totals.visits = 1
  and hits.transaction.transactionid is not null
group by
order by
  revenue desc