Shopify
Add JsonLD.io to your Shopify store through the theme editor.
Installation Steps
- From your Shopify admin, go to Online Store → Themes
- Click Actions → Edit code on your current theme
- In the Layout folder, click on
theme.liquid - Find the
</head>tag - Add the script just before it:
<!-- JsonLD.io Script -->
<script async src="https://jsonld.io/api/jsonld/YOUR_TOKEN?format=js"></script>
</head>
- Click Save
Alternative: Using Shopify's Script Editor
If you have Shopify Plus:
- Go to Settings → Custom HTML
- Add the script to your head section
Disable Default Schema
Shopify themes often include built-in structured data. To avoid duplicates, you may need to remove or disable the default schema in your theme.
Look for and remove/comment out code like this in your theme files:
{% raw %}
{% if template contains 'product' %}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
...
}
</script>
{% endif %}
{% endraw %}
Verification
- Visit your Shopify store
- Right-click and select "View Page Source"
- Search for
application/ld+json - Verify your JsonLD.io schema is present
- Use Google's Rich Results Test to validate
Notes
- The script works across all pages: homepage, product pages, collection pages, etc.
- JsonLD.io automatically detects the current page and serves the appropriate schema
- Changes in your JsonLD.io dashboard are reflected immediately
