Data Connectors
Connect your components to dynamic data from your Shopify store - product titles, prices, collection names, and more. Update once in the visual editor, and your content stays fresh automatically.Using Data Connectors in Studio
No coding required! Click the database icon above any text field to visually select your data source.
How It Works
- Click the database icon (๐) above any text, textarea, or richtext field
- Browse available data from your store (products, collections, pages, shop info)
- Select what you need - weโll generate the code automatically
- See it live - preview updates instantly
Example: Product Title
Instead of typing code, just:- Click the database icon
- Navigate: Current Page โ Product โ Title
- Done! The product title appears automatically

Available Data Sources
Shop Data: Store name, currency, domain (from root loader) Current Page: Product/collection/page details for the active page (from route loaders) Route Data: Specific page routes in your theme (from route loaders) Custom Data: Any data you return from your loader functions - third-party APIs, custom integrations, computed values
How Data Connectors Work
Data connectors pull information from your Hydrogen/React Router loader functions. This means developers can customize what data is available by modifying loaders.Adding Custom Data Sources
Want to connect to third-party APIs? Just add the data to your route loader:{{routes/product.reviews.rating}} or {{routes/product.customData.value}} without writing code.
Where Data Comes From
| Loader Type | Studio Path | Example |
|---|---|---|
| Root loader | root.* | {{root.shop.name}} |
| Route loader | routes/[route].* | {{routes/product.product.title}} |
| Custom loader data | routes/[route].* | {{routes/product.yourCustomData}} |
Template Syntax (For Developers)
Using Studioโs visual interface? Skip this section - the syntax is auto-generated for you.
{{path}} syntax to reference data:
Data Source Patterns
| Pattern | Use For | Example |
|---|---|---|
root.* | Global shop data | {{root.shop.currency}} |
routes/product.* | Product pages | {{routes/product.product.title}} |
routes/collection.* | Collection pages | {{routes/collection.collection.title}} |
current.* | Current page | {{current.product.price}} |
Complex Routes
For routes with parameters:Using in Component Code
Add data connectors to your component schema:Extending with Third-Party Data
Example: Adding Product Reviews
{{routes/product.reviews.average}}โ Shows โ4.5โ{{routes/product.reviews.count}}โ Shows โ127 reviewsโ{{routes/product.reviews.items[0].text}}โ First review text
Example: Adding Custom API Data
Quick Tips
โ Best Practices
๐ Troubleshooting
Data not showing?- Check the path exists on that page type
- Verify youโre on the correct page (e.g., product page for product data)
- Use Studioโs visual picker to verify the correct path
{{...}} in output?
- The data path doesnโt exist or isnโt loaded yet
- Check your route matches the data source
๐ Security
Data connectors automatically sanitize output to prevent XSS attacks. Your content is safe.Related Docs
- Component Schema - Define component settings
- Input Settings - Configure input types
- Creating Components - Build components