Littledata’s app embed
This help article shows how Littledata's app embed works and how to activate it from the Shopify admin.
Littledata's app embed
Littledata loads its tracking script through a Shopify app embed. This page explains what the app embed does, how to turn it on in your theme, and how to check that it's working.
What is an app embed?
App embeds are blocks that apps add to your Shopify theme. They let an app add features to your store without anyone editing the theme code.
Littledata uses its app embed, called Littledata Tracker, to load the tracking script on your storefront. The script tracks page views, product events and other storefront activity, and sends them to your connected destinations.
Littledata moved from a script tag to an app embed in June 2024.
Why Littledata uses an app embed
No theme code changes: you turn it on and off in the Shopify theme editor.
Faster loading: the script doesn't have to wait for other assets in your theme code.
Managed by Shopify: Shopify adds the script to your theme, which is more secure and reliable than a script tag.
When to turn on the app embed
You need to turn on the app embed:
When you install Littledata. The Littledata app asks you to enable it during setup.
When you switch to a different theme. The app embed is saved per theme, so turn it on again in the new theme.
How to turn on the app embed
Open your themes
In Shopify admin, under Sales channels, click Online Store, then Themes.

Open the theme editor
Find your current theme and click Customize.

Open App embeds
In the left-hand menu of the theme editor, click App embeds.

Turn on Littledata Tracker and save
Search for Littledata, turn on Littledata Tracker, then click Save in the top-right corner.

App embed status in the Littledata app
The Shopify card in the Littledata app shows the status of the app embed.
Connected
The app embed is turned on. You don't need to do anything.
Not detected
Littledata found that the app embed is turned off in your current theme. Click Fix now and follow the steps to turn it back on.
How to check that the app embed is loaded
Open your store's source code
Open your storefront in the browser and view the page source, or open your browser's developer tools.
Search for the Littledata block
Search for blocks/LittledataLayer. You should find a comment that starts with BEGIN app block: shopify://apps/ and ends with /blocks/LittledataLayer/..., followed by Littledata's scripts. This works for both the Littledata app and the Segment app.

Need help? Email help@littledata.io.
Related articles
Last updated
Was this helpful?