Calculating customer lifetime value (LTV) is essential for ecommerce businesses, but it can be difficult without the right analytics setup.
Littledata makes this easier for Shopify stores, and especially for subscription businesses, by adding custom dimensions to Google Analytics.
In addition to the dimensions below Littledata, tracks subscription orders from any checkout and allows the LTV of these orders to be tied back to marketing campaigns.
In Google Analytics 4, each custom dimension that you wish to use in any report must be first configured based on user properties that Littledata sends. One property can have up to 25 custom dimensions.
For all the ecommerce events from the checkout onwards we sent the following user properties to help you build audiences, segments and analyse user behaviour using custom dimensions.
|lifetime_revenue_littledata||Total of current and all previous purchases for that customer on Shopify|
|purchase_count_littledata||Count of current and all previous purchases for that customer|
|last_transaction_date_littledata||Date of customer's current / last order|
|shopify_customer_id_littledata||Customer ID as used on Shopify|
|payment_gateway_littledata||The gateway used to process the last order's payment|
|littledata_client_id||Client ID: the cookie identifier Google uses to group events by user|
Go to Configure > Custom definitions > Create custom dimensions
Name your dimension, select User scope, and select the desired user property from the drop down menu
You can now start using this custom dimension in the standard reports as well as in custom reports from the Explore section.
In addition to the complete enhanced ecommerce data sent to Universal Analytics, our app creates and tracks up to five custom dimensions to help you calculate LTV.
During the installation you can choose which custom dimensions you wish to add. A web property can have up to 20 custom dimensions active.
|Custom dimension name||Description|
|Littledata - Lifetime Revenue||Total of all previous purchases for that customer on Shopify|
|Littledata - Purchase Count||Count of all previous purchases for that customer|
|Littledata - Last Transaction Date||Date of customer's previous order|
|Littledata - Shopify Customer ID||Customer ID as used on Shopify|
|Littledata - Payment Gateway||The gateway used to process the last order's payment|
Let's say that you want to find the lifetime value by channel. Based on the combination of standard info in Google Analytics (eg channel grouping) and the following custom dimensions
You can calculate what is the lifetime revenue by channel (the full picture).
Create audiences based on the last purchase and number of orders of the customer:
Using a segment in Google Analytics you can create (and export as audience) a segment that includes all users with the custom dimension:
You then can use that segment to retarget them on Google Ads.
This is an example for users that have purchased only once in the last month:
Since the last transaction date is sent as custom dimension, you will need to a regular expression to match the date