Skip to main content

Install on any webstore

Headless Shopify?

You also need the Unveild Shopify app. Follow Install on headless Shopify, which covers both.

Pick one of the options below: paste the script directly into your site header, or add it through Google Tag Manager or Adobe Launch. Use only one. The script tag itself will be provided by your Unveild POC. End-to-end, this should take about 3 minutes.

Option 1 — Install directly in the site header​

  1. Paste the Unveild script tag (provided by your Unveild POC) into the <head> of every page.

    Example script tag (yours will have your own values):

    <script
    async
    defer
    id="sneakpeek-widget"
    data-customer-name="ABC"
    data-customer-id="DEF"
    src="https://sneakpeek-1.s3.us-east-1.amazonaws.com/sneakpeek-GHI.js"
    ></script>
  2. Ensure the header script is present on every page in your sitemap.

Option 2 — Install via Google Tag Manager​

  1. Log in to your Google Tag Manager account.

  2. Click New Tag.

    Google Tag Manager workspace overview with the New Tag card highlighted

  3. Name the tag Unveild Pixel.

  4. Click Tag Configuration and select Custom HTML.

    GTM tag type picker with Custom HTML highlighted under Custom

  5. Paste the Unveild script tag into the HTML input box.

  6. Scroll down to Triggering and select All Pages.

    GTM trigger list with All Pages (Page View) highlighted

  7. Click Save.

  8. In the top-right of the GTM home page, click Submit.

  9. Add a version name, then click Publish.

Option 3 — Install via Adobe Launch​

Use this if your site runs Adobe Experience Platform Tags (Adobe Launch). Your Unveild POC will send you the code to paste, with your own values.

  1. Log in to Adobe Experience Platform Data Collection.

  2. Open your website's Tags property.

  3. In the left panel, click Rules, then Create New Rule.

  4. Name the rule Unveild Pixel.

  5. Under Events, click Add and set:

    • Extension: Core
    • Event Type: Library Loaded (Page Top)

    Click Keep Changes.

  6. Under Actions, click Add and set:

    • Extension: Core
    • Action Type: Custom Code
    • Language: JavaScript
  7. Click Open Editor, paste the code your Unveild POC sent you, click Save, then Keep Changes. It looks like this:

    (function () {
    if (document.getElementById('unveild-widget')) return;
    var s = document.createElement('script');
    s.id = 'unveild-widget';
    s.type = 'text/javascript';
    s.async = true;
    s.setAttribute('data-org-id', 'ABC');
    s.src = 'https://sneakpeek-1.s3.us-east-1.amazonaws.com/unveild-ABC.js';
    document.head.appendChild(s);
    })();
  8. Click Save to save the rule.

  9. Go to Publishing Flow, add the rule to a library, and build it through your usual Development → Staging → Production steps.

Verify the install

Open your site, open the browser console and confirm that Unveild: IIFE Script loaded appears. Then tell your Unveild POC: they'll confirm data is flowing within 24 hours.

On Shopify?

If your storefront runs on Shopify, follow the Shopify install instead — it uses the Unveild Shopify app or theme.liquid.