Note: The Shopify Live Preview is a plan-based feature and may not be accessible to all users. For more information or to request access, contact our support team.
Shopify Live Preview connects Contentstack with Shopify Liquid themes, enabling editors to preview changes in real time, without publishing or reloading the page. This reduces errors, accelerates workflows, and helps validate storefront updates before deployment.
To configure Shopify Live Preview, log in to your Contentstack Account and perform these steps:
Install the Live Preview app to connect Contentstack with your Shopify storefront.



The Node.js middleware enables live syncing between Contentstack and Shopify.


Note: You can add this URL in your Shopify theme's cs-lp-script.liquid file.
To sync Contentstack with Shopify:
Note: Keep original file names unchanged, cs-lp-script.liquid and data-cslp-tags.liquid, to ensure proper syncing.
Click Authenticate GitHub and grant Contentstack permission to access your GitHub repository.

Link your theme files with the middleware to enable real-time rendering.

Note: A copy of your Shopify theme is stored in the middleware and re-rendered with each update.
For easier access, you can configure Live Preview to open in a new tab.

By default, Shopify Live Preview is optimized for Product pages, where associated Metaobjects are automatically available in the Liquid file. However, on non-Product pages, such as Home, Collection, or custom pages, Metaobjects are not pre-populated. Each Metaobject must be manually referenced using its type and handle.
Why this matters
Without automatic Metaobject resolution, implementing Live Preview across your storefront becomes more complex and error-prone. Each Metaobject must be hardcoded, increasing the risk of inconsistencies and making it harder to maintain as content grows or changes.
To simplify this process and create parity with Product pages, we recommend creating a Master Metaobject. This Master Metaobject references all required Metaobjects, enabling you to fetch and manage them through a single entry.
Benefits of using a Master Metaobject
This approach creates a scalable, reliable setup for your entire storefront and helps both developers and content editors work more efficiently with Contentstack data in Shopify.
To connect Shopify with Contentstack Live Preview, you’ll need to create a definition and an entry that stores the Metaobject information generated by the Contentstack App. This setup ensures accurate mapping and avoids configuration issues.
To sync Shopify with Contentstack Live Preview:





![]()






Note: Ensure the format strictly follows type.handle as shown in the steps above. Once completed, your text file will resemble the reference screenshot provided.
Now your text file is ready to be used later in the process.
Create a new Metaobject definition in Shopify to hold your identifiers:





Now, use your text file to populate the new entry:




Warning: Use the exact field names, contentstack_lp_metaobjects_list and contentstack_lp_metaobjects_list_entry. Any deviation will result in a failed setup.
With these configurations in place, any changes made in Contentstack are reflected in real time on your Shopify storefront, even on non-Product pages.
Shopify Live Preview in Contentstack enables seamless, real-time updates between your CMS and Shopify storefront, eliminating the need for manual publishing or page reloads. By following the steps outlined in this guide, you can configure a scalable, reliable preview experience for both Product and non-Product pages.