Shopify by Littledata Source


Littledata is a smart analytics app that automates ecommerce tracking. Littledata’s Shopify-to-Segment connection automatically tracks key ecommerce events on a Shopify or Shopify Plus store, so you can use Shopify as a source in your Segment workspace.

Littledata is available as an independent app in the Shopify App Store. When you install the Littledata app on your Store, Littledata does two things:

  1. It inserts a smart tracking script to your store’s front end. This script can be used with any custom Shopify site, and leverages analytics.js under the hood to send data in a spec-compliant manner to Segment.

  2. The app also sets up server-side webhook forwarding to ensure 100% accuracy of important Customer and Order data.

Here’s an architecture diagram that shows how the Littledata app mediates data flow between Shopify and Segment.

Please Note

This integration is maintained by Littledata and is not supported by Segment directly. The Littledata app has been reviewed by the Segment team for conformance with our E-Commerce Spec, and is our recommended way of using Segment with Shopify. However, it does require a paid subscription with Littledata, who mediates the connection between Shopify and Segment. Please reach out to their team with any questions.

Getting Started

  1. Login to your Shopify Store account.
  2. Go the Shopify app store listing for Segment by Littledata.
  3. Click Add app to begin the installation process.
  4. Sign up for a Littledata account using an email address, Google login or Facebook login. More team members can be added to the subscription after completing the installation process.
  5. Add the Segment write key for the source that is going to send data in the input field.
  6. Choose either an Automatic or a Manual install. Automatic installs work in most instances, but if you choose to do a manual install, just follow this guide.
  7. Segment’s analytics.js library, Littledata tracking script and webhooks will be automatically applied to the store and the installation proccess will then be complete.

Events

Below is a table of events that Shopify by Littledata sends to Segment. These events will show up as tables in your warehouse, and as regular events in your other Destinations. Shopify by Littledata will send through the userId if available.

Event Name Description
Page Viewed Prospect has viewed a page
Product List Viewed Prospect has viewed a product collection page
Product Clicked Prospect has clicked a product
Product Viewed Prospect has viewed a product
Product Added Prospect has added a product to the cart
Product Removed Prospect has removed a product from the cart
Checkout Started Prospect has started checkout
Checkout Step Completed Prospect has completed a step in the checkout
Payment Info Entered Prospect has entered payment info
Order Completed Prospect has completed an order
Order Refunded Order has been refunded


In addition to the events tracked as standard, the following hits can be tracked based on page path:

Event Name Description
Registration Viewed Prospect has viewed the registration page
Cart Viewed Prospect has viewed the cart
Blog Viewed Prospect has viewed the blog
Registration Completed Prospect has completed registration

Event Properties

Below are tables outlining the properties included in the events listed above.

Property Name Description
event Event name
anonymousId Prospect Google Analytics client ID
userId Prospect ID
order_id ID of the order
checkoutId ID of the checkout session
revenue Revenue of the order
shipping Shipping tax
tax Order tax
total Total value of the order
affiliation Affiliation of the order
coupon Discount coupon
currency Currency of the order
discount Discounted amount
products Property that holds product details
category Category of the product
brand Brand of the product
list_id ID of the product collection
list_name Name of the product collection
list_position Product position in the collection
name Product name
price Product price
product_id ID of the product
sku Product SKU
variant Product variant ID
variants Property that holds product variant IDs and SKUs
id Variant ID
quantity Quantity of the product
properties Property that holds payment details
step Checkout step
paymentMethod Payment method chosen for checkout
shipping_method Shipping method chosen for checkout
sent_from Unique property to identify events sent by Littledata

Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account