▶️ Use script blocks

This article requires advanced skills to implement.
Javascript

1. Create a New Script Block

  1. Go to StoreConnect NavigationCustom ContentScript Blocks.

  2. Click New to create a script block.


2. Configure the Script Block

  1. Name the script block (e.g. Chatbot Embed).

  2. Assign it to your Store.

  3. Set:

    • Active → Checked (to enable it).

    • Global → Checked (to apply site-wide).

  4. 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>