Build Google ECommerce Dimensions
Now that you are finished connecting yourGoogle ECommerce account, what can you do with that data in Commerce Intelligence? This topic walks you through building dimensions that link your eCommerce data with your orders and customer data.
The dimensions covered give you the ability to build analyses that answer vital questions about your marketing channels and campaigns. What percent of revenue comes from each source? How does the lifetime value of Facebook acquired customers compare to those from Google?
Prerequisites and overview
To create the dimensions in this topic, you need a Google ECommerce table, an orders
table, and a customers
table. Those tables must be synced to your Data Warehouse before dimensions can be built. Tables that are synced display in the Synced Tables
section of the Data Warehouse Manager
.
Here is a quick look at syncing tables and columns if you need a refresher:
After creating a join from the orders
table to the Google eCommerce table, you create the first three dimensions in the list below. Next, you use those dimensions to create three user/customer dimensions in the customers
table. To finish up, you join those columns to the orders
table.
Here are the dimensions covered:
-
Orders table
-
Order’s Google Analytics source
-
Order’s Google Analytics medium
-
Order’s Google AnalyticsA campaign
-
Customer’s first order’s Google Analytics source
-
Customer’s first order’s Google Analytics medium
-
Customer’s first order’s Google Analytics campaign
-
Customers table
-
Customer’s first order’s Google Analytics source
-
Customer’s first order’s Google Analytics medium
-
Customer’s first order’s Google Analytics campaign
Building the dimensions
To create dimensions, open the Data Warehouse Manager by clicking Data > Data Warehouse.
Orders table, round 1
This example builds the Order’s Google Analytics Source dimension.
-
From the list of tables in the Data Warehouse, click the table (in this case,
orders
) that contains your order information. -
Click Create a Column.
-
Name the column.
-
Select
Joined Column
from the definition dropdown. This example works with a one-to-one relationship, matching theeCommerce.transactionID
column to exactly one row of theorders
table. -
Next, you need to define the path, or how the table and column being used are connected. Click the
Select a table and column
dropdown. -
The path you need is not available, so you need to create a new one. Click Create new Path.
-
In the window that displays, set the
Many
side toorders.order\_id
, or the column in theorders
table that contains the order ID. -
On the
One
side, find theGoogle ECommerce
table, then set the column totransactionID
. -
Click Save to create the path.
-
After the path is added, click the Select table and column dropdown again.
-
Locate the
ECommerce
table, and then click theSource
column. This ties the orders to the source information. -
Once you are back in the table schema, Click Save again to create the dimension.
Here is a look at the whole process:
Next, try creating Order’s Google Analytics medium and campaign
. Not much changes for these dimensions, so give it a try. But if you get stuck, you can check out the end of this article to see what is different.
Customers table customers
This example builds the Customer’s first order’s Google Analytics source dimension.
-
From the list of tables in the Data Warehouse, click the table (in this case,
customers
) that contains your customer information. -
Click Create a Column.
-
Name the column.
-
For this example, select the
is MAX
definition from the definition dropdown. Theis MIN
definition could also work if applied to a text column with only one possible value. The important part is ensuring proper filters are set, which you do later. -
Click the Select a table and column dropdown and select the
orders
table, then theOrder's Google Analytics source
column. -
Click Save.
-
Once you are back in the table schema, click the
Options
dropdown, thenFilters
. -
Click Add Filter Set and then select the
Orders we count
set. You only want orders included in the orders that you count filter set to be included, so it is important that this filter set is selected. -
Click Add Filter. You want to find the customer’s first order’s Google Analytics source, so you need to add a filter:
_orders.Customer’s order number = 1
_
-
Click Save to create the dimension.
Next, try creating Customer’s first order’s Google Analytics medium and campaign
. Not much changes for these dimensions, so give it a try. But if you get stuck, you can check out the end of this article to see what is different.
Bonus: Orders table, round 2
You can stop here if you want, but this section enables further analysis by bringing the Customer’s first order’s Google Analytics dimensions you created in the last section into the orders
table. Creating the dimensions in this section lets you analyze all the metrics built on your orders
table - Revenue
, Number of orders
, Distinct buyers
, and so on - using the Google Analytics attributes of a customer’s first order.
This example joins the Customer's first order's Google Analytics source
 dimension to the orders
table.
- From the list of tables in the Data Warehouse, click the table (in this case,
orders
) that contains your order information. - Click Create a Column.
- Name the column.
- Select
Joined Column
from the definition dropdown. This joins the customer dimensions that you created in the previous section to theorders
table. - Click the Select a table and column dropdown, then select the
customers
table and theCustomer's first order's Google Analytics source
column. - If a path does not automatically populate, select the path that best connects the customers and orders tables.
- Click Save to create the dimension.
Here is a look at the whole process:
Finish up by joining the Customer's first order's
medium and campaign
dimensions to the orders
table. Join the dimensions, and if there are problems, then check out the end of the article if you need help.
Wrapping Up
You finished creating the dimensions, which means you can now create powerful analyses that track the performance of your various channels and campaigns. Remember that the new columns will not be available until after the next update completes.
Some of the more popular dimensions are covered in this topic, but the sky is the limit - try creating your own or feel free to ping us if you want help with exploring other options.
Additional Notes
Orders
table #1: When creating the Order's Google Analytics
medium and campaign
dimensions, the difference is the columns selected in step 12. In this example, the column was Source
.
Customers
table: When creating the Customer's first order's Google Analytics
medium and campaign
dimensions, the difference is the columns selected in step 5. In this example, the column was Order's Google Analytics
source.
Orders
table #2: When joining the Customer's first order's Google Analytics
medium and campaign
columns to the orders
table, the difference is the columns selected in step 5. In this example, the column was Customer's first order's Google Analytics
source.