If your orders from Shopify in Google Analytics appear without the correct marketing attribution there are a few steps of Littledata’s tracking that could be going wrong.

Known limitations

In the following situations we have no way of linking orders to the preceding website visit, and they will always appear as Direct:

  1. When the order is from a source other than your own website, for example one processed on Amazon Marketplace. You can see this by adding the custom dimension `Payment gateway` to the sales reports
  2. When the order if from a subscription which was set up before Littledata was installed

Issues to investigate

If you are using Littledata’s Chrome plugin you may get notified of one of the following issues.

Missing LittledataLayer

Your store is missing the Littledata snippet which populates the LittledataLayer with ecommerce data from a particular page. You need to login to Littledata to fix this, and update the snippet across your store.

Tip: Try this for yourself: Go to the JavaScript console of the page in question and type in LittledataLayer into the console to see the definition. 


Outdated data layer version

Your store is not using the latest Littledata data layer – it may have been reverted when the Shopify theme was updated. You need to login to Littledata to fix this, and update the snippet across your store.


Littledata tracking script not loading

Your page is not loading Littledata’s external script file. A JavaScript error from another script on your page, or a network issue, may be preventing it from loading. Please contact our support team to investigate.


Google Analytics client ID not added to cart attributes

Littledata’s script stores the client ID from Google Analytics’s cookie within the Shopify cart. If this is not set correctly, then the data collection will fail. Please contact our support team to investigate


Checks for ReCharge checkout

ReCharge stores need to check further steps.

Shopify domain not linking with ReCharge checkout

The Google Analytics clientID on the ReCharge checkout is not the same as on the preceding Shopify visit, so the user journey will be fragmented. Please check you have the Google Analytics integration activated for ReCharge, and check for any console errors on the ReCharge checkout.


Littledata integration not activated

Littledata cannot add the clientID to the ReCharge order notes. Go to ReCharge integrations to enable Littledata.