Shopify makes it easy to add custom HTML embeds to your store. Follow this guide to integrate Supascribe and start growing your newsletter audience.
Step-by-Step Guide
1. Get your embed code
First, you'll need to create and publish an embed in your Supascribe dashboard:
- Log into your Supascribe dashboard at supascribe.com
- Click "Create Embed" to start building your email capture form
- Customize your embed with your style, colors, and messaging
- Click "Publish Embed" to generate your unique embed code
After publishing, you'll see your embed code that looks like this:
<!-- Subscribe embed code -->
<div data-supascribe-embed-id="example" data-supascribe-subscribe></div>
<!-- Supascribe Script (Only add this to your site once) -->
<script src="https://js.supascribe.com/v1/loader/example.js" async>< script>
2. Copy your embed code
Copy the embed code that was generated when you published your embed:
We recommend adding the Supascribe Script immediately before your site's closing </body>
tag or in your footer. This only needs to be added once to your site. If the script tag is already present, you do not need to add it again.
3. Add the embed to your Shopify store
Option A: Using Custom Liquid (Recommended)
- Log into your Shopify admin dashboard
- Go to Online Store > Themes
- Click "Actions" > "Edit code" on your active theme
- Navigate to the template where you want to add the embed (e.g.,
index.liquid
,product.liquid
) - Add the script tag to the before the closing
</body>
tag (only once) - Add the embed div where you want the form to appear
- Save the changes
Option B: Using Theme Customizer
- Go to Online Store > Themes > Customize
- Add a new section or edit an existing one
- Add a "Custom HTML" block if available
- Paste your embed code into the HTML block
- Save and publish the changes
Option C: Using Shopify Apps
- Search for "Custom HTML" or "Code Injection" apps in the Shopify App Store
- Install and configure the app
- Add your embed code through the app's interface
Troubleshooting
Embed not showing up?
- Make sure you've added the script tag before the closing
</body>
tag - Check that your embed ID is correct
- Try refreshing the page and clearing your browser cache
- Ensure the Liquid template is properly saved
Styling issues?
- The embed is fully customizable within your Supascribe Embed Dashboard
- Shopify themes may override embed styles - check your theme's CSS
- Test on different devices and screen sizes
Theme updates?
- Custom code may be lost during theme updates
- Consider using a theme app extension for more permanent solutions
- Keep a backup of your custom code
Need Help?
If you're stuck or need help implementing Supascribe on your Shopify store, feel free to reach out using our live chat or contact me directly.
Explore More Features
Subscribe Embed
Add an email capture form to Squarespace, WordPress, Shopify, or any website.
Feed Embed
Show your latest newsletter issues directly on your site with one line of code.
Popup Modal Embed
Track views, conversions, and subscriber growth from your embeds.
Request an Embed
Got an idea on what we could build next? Get in Touch!