Shopify
Integrate Neuroon into your Shopify store in minutes.
Installation
1. Add code to theme
- Go to Online Store → Themes → Edit code
- Open the
theme.liquidfile - Add before
</head>:
<link rel="stylesheet" href="https://cdn.neuroon.ai/widget.css">
- Add before
</body>:
<div id="neuroon-search"></div>
<script
src="https://cdn.neuroon.ai/widget.js"
data-token="{{ shop.metafields.neuroon.token }}"
data-container="#neuroon-search">
</script>
2. Configure the token
- Go to Settings → Metafields → Shop
- Create a metafield:
- Namespace:
neuroon - Key:
token - Type:
Single line text
- Namespace:
- Save your Neuroon token
Alternative
If you prefer not to use metafields, you can put the token directly:
data-token="your_token_here"
Product Synchronization
Option 1: Manual sync
- Export your products from Products → Export
- Upload the CSV at Neuroon Dashboard → Products → Import
Option 2: Automatic webhook (Recommended)
Configure a webhook for real-time synchronization:
- Go to Settings → Notifications → Webhooks
- Create a webhook:
- Event:
Product creation - URL:
https://api.neuroon.ai/webhooks/shopify/{your_shop_id} - Format:
JSON
- Event:
- Repeat for
Product updateandProduct deletion
Theme Customization
Replace native search
To replace Shopify search with Neuroon:
- Find the file containing your search bar (usually
header.liquid) - Comment out or remove the existing search form
- Add the Neuroon container:
{%- comment -%} Native Shopify search (commented) {%- endcomment -%}
{%- comment -%}
<form action="/search" method="get">
<input type="text" name="q">
</form>
{%- endcomment -%}
{%- comment -%} Neuroon Widget {%- endcomment -%}
<div id="neuroon-search"></div>
Custom styles
Add styles in theme.liquid or a CSS file:
/* Customize the widget */
.neuroon-widget {
--nrn-primary: {{ settings.colors_accent_1 }};
}
Troubleshooting
Widget doesn't load
- Verify the token is correct
- Check console for errors
- Ensure the script is before
</body>
Products don't appear
- Verify products are synced in the Dashboard
- Check that products are published in Shopify
- Review webhook logs