Littledata’s Shopify to Google Analytics connection uses a combination of client-side (browser) and server-side tracking to ensure 100% accurate data about your Shopify store in Google Analytics. Littledata automatically integrates with Shopify and Shopify Plus sites to capture every customer touchpoint, including sales, marketing, customer and product performance data.
Client-side (browser) tracking
During the installation process, Littledata applies a tracking script to all pages (theme.liquid) under your Shopify store, except for the checkout steps:
- Google’s gtag library is loaded on all pages
- Creates a
littledataLayerdata layer for all pages, which you can also use with Google Tag Manager (GTM).
- Minified tracking code, hosted on a content delivery network (CDN)
- Google’s client ID (user identifier) is passed to our servers to ensure consistent user journey tracking
During the Google Analytics connection setup flow in the app, Littledata also applies a set of webhooks to your Shopify store. This means that each time Shopify pings us back and confirms the user action we know which event has to be sent by our servers, ensuring 100% accuracy. There are many advantages to this approach:
- Smaller script in the browser = faster page load
- No extra scripts on the sensitive and secure checkout pages
- Complete event capture for checkout flow, including sales and refunds/returns
- Accurate marketing attribution (sessions stitched together)
Note: Using a headless Shopify setup? Follow the setup steps for headless Shopify tracking with Littledata.
What can you track
These are the events that Littledata sends from Shopify to Google Analytics. These events will show up as events under the
Shopify (Littledata) event category and in Google Analytics’ enhanced ecommerce reports. Read more details on the event properties in our Google Analytics data layer guide.
Client-side events tracked by Littledata, via a script loaded within your Shopify theme.
|(pageview)||User has viewed a page|
|view_item_list||User has viewed a product collection page|
|select_content||User has clicked a product|
|view_item||User has viewed a product|
|Product Image Click||User has clicked a product image|
|Social Share||User has shared a product|
Server-side events are tracked by Littledata server’s from Shopify and passed onto any destination in cloud mode.
|add_to_cart||User has added a product to the cart|
|remove_from_cart||User has removed a product from the cart|
|Checkout||User has viewed a step in the checkout|
|Customer created||User created as a customer|
|Customer updated||Customer information updated|
|Transaction||Customer has completed an order|
|Refund||Order has been refunded|
Subscription ecommerce events
Additional events available via Littledata’s ReCharge connection.
|Subscription Created||Customer has created a subscription|
|Subscription Updated||Customer has updated a subscription|
|Subscription Cancelled||Customer has cancelled a subscription|
|Order Processed||Recurring order has been processed|
|Charge Failed||Failed to charge customer|
|Charge Max Tries Reached||Maximum tries to charge customer has been reached|
|Payment Method Updated||Customer has updated the payment method|
|Customer Update||Customer information updated|
With all the ecommerce events from the checkout onwards we sent extra user-scope custom dimensions to help you build audiences and analyze behavior.
|Lifetime Revenue||Total of all previous purchases for that customer on Shopify|
|Purchase Count||Count of all previous purchases for that customer|
|Last Transaction Date||Date of customer’s previous order|
|Shopify Customer ID||Customer ID as used on Shopify|
|Payment Gateway||The gateway used to process the last order’s payment|