1. Create a New Script Block
Go to StoreConnect Navigation → Custom Content → Script Blocks.
Click New to create a script block.
2. Configure the Script Block
Name the script block (e.g. Chatbot Embed).
Assign it to your Store.
Set:
Active → Checked (to enable it).
Global → Checked (to apply site-wide).
Add your script:
- Either paste the full script into the Content field
(omit
</code> tags if not required)</em></p> </li><li> <p>OR include a <strong>Script URL</strong> to load the script from an external source.</p> </li></ul> </li><li> <p>Click <strong>Save</strong>.</p> </li></ol> <hr> <h3><strong>3. Test the Script</strong></h3> <ol><li> <p>Go to your <strong>Storefront</strong> and refresh the page.</p> </li><li> <p>The script (e.g. chatbot, widget, tracking tool) should now appear and function as configured.</p> </li></ol> <hr> <h3><strong>4. Notes & Best Practices</strong></h3> <ul><li> <p><strong>Enable/Disable Easily</strong> → Just toggle the <em>Active</em> checkbox.</p> </li><li> <p><strong>Global vs. Page Specific</strong>:</p> <ul><li> <p><em>Global</em> applies across your entire store.</p> </li><li> <p>If needed, you can create variations for different pages or contexts.</p> </li></ul> </li><li> <p>Use for:</p> <ul><li> <p><strong>Chatbots</strong></p> </li><li> <p><strong>Google Analytics</strong></p> </li><li> <p><strong>Facebook Pixel</strong></p> </li><li> <p><strong>Custom Widgets</strong></p> </li><li> <p><strong>Marketing Tags</strong></p> </li></ul> </li><li> <p><strong>Tip:</strong> Test on staging first if possible, especially for analytics or tracking scripts.</p> </li></ul></x-turndown>
- Either paste the full script into the Content field
(omit