Installing Stockisto via Google Tag Manager

Before you begin

  • You have a Stockisto account and at least one retailer imported
  • You have edit access to your Google Tag Manager container
  • Your website is running and accessible

Method 1: Install via Google Tag Manager (recommended)

Step 1: Find your embed snippet

In your Stockisto dashboard → Install tab → copy the HTML snippet. It looks like this:

<script>
    (function (s, t, o, c, k) {
        /* Stockisto embed */
    })("https://cdn.stockisto.com/embed.js", "YOUR_TENANT_ID");
</script>

Snippet includes your Tenant ID

The snippet in your dashboard already contains your unique Tenant ID — don't replace or modify it. Each account has a different snippet.

Step 2: Create a new tag in GTM

  1. Open Google Tag Manager → TagsNew
  2. Click Tag Configuration → choose Custom HTML
  3. Paste your Stockisto snippet into the HTML field
  4. Check ✅ Support document.write

Step 3: Set trigger

  1. Click TriggeringChoose a triggerAll Pages
  2. Click Save and name your tag (e.g. "Stockisto Embed")

Step 4: Preview and verify

  1. Click Preview in GTM → enter your website URL
  2. Open the page — you should see the Stockisto locator widget loading
  3. Open browser console (F12) and check for [Stockisto] log messages

No widget visible?

Check that your page has a &lt;div id="stockisto-locator"&gt; element. The embed script injects into that container. If the div is missing, the widget won't render.

Step 5: Publish your GTM container

  1. Click Submit in GTM → add a version name (e.g. "Add Stockisto")
  2. Click Publish

Method 2: Direct HTML install

If you're not using GTM, paste the snippet directly before the closing </body> tag in your website's HTML template.


Verifying the installation

After publishing, return to your Stockisto dashboard → Install tab → click Check Installation.

If the check passes, you'll see ✅ Installation verified and a timestamp.

If it fails, see Troubleshooting below.


Troubleshooting

ProblemLikely causeFix
"No events received in 24h"Snippet not firingRe-check GTM trigger; publish GTM container
Widget not visibleMissing container divAdd <div id="stockisto-locator"></div> to your page
Check fails immediatelyWrong domainVerify the domain in your Stockisto account settings matches your site URL
Events arriving but locator blankRetailer data not publishedPublish your locator in Stockisto dashboard
CSP error in consoleContent-Security-Policy blocking scriptAdd cdn.stockisto.com to your CSP script-src allowlist

FAQ

Does Stockisto slow down my website?

The embed script loads asynchronously — it does not block your page from rendering.

Can I install on multiple pages?

Yes. The snippet should be on every page where you want the locator to appear. Most customers install it site-wide via GTM.

What if I use a custom domain for my locator?

Contact support to configure a custom domain (e.g. locator.yourbrand.com). The same GTM snippet works after the domain is configured.