OSPRY Docs

Installing the script

Install the tag

Who this is for: Owners and admins (the snippet and domains are editable by privileged roles) · Where: Portal -> Observe -> Script (/script)

What this does

Adds one tag to your website that turns on visitor tracking and, if you have set one up, your consent banner. One tag covers both: OSPRY loads your consent banner first (when it is enabled), then the tracking pixel. The pixel waits until the visitor accepts the consent category you chose to unlock it. You install it once per site, then verify it is firing.

Steps

  1. Open Observe -> Script in the sidebar, on the Install tab.
  2. In the Install snippet panel, click Copy to copy your tag. It looks like this (your account id is filled in for you):
<!-- OSPRY by Legion -->
<script async src="https://px.lspxl.com/c/your-account-id"></script>
  1. Paste this into the <head> of every page, as early as possible, before your other scripts, or add it through Google Tag Manager.
  2. Add your domain on the Domains tab if it is not already listed, then install the tag on that domain.
  3. Publish your site, then verify the script (see Verify the script is working).

the Script page "Your snippet" panel showing the code block with the px.lspxl.com/c/ tag, the Copy and View buttons, and the "Per-platform install guides" expandable note.

Content-Security-Policy

If your site runs a Content-Security-Policy, allow these hosts:

  • script-src: px.lspxl.com, cdn.lgncmp.com
  • style-src: cdn.lgncmp.com
  • connect-src: lgncmp.com, i.lspxl.com, popup.lspxl.com, sec.lspxl.com, t.lspxl.com

Where it loads

The tag loads on your apex domain plus its www. and app. subdomains. It is identical across platforms; only where you paste it differs. The Install tab has short steps per platform: HTML, Google Tag Manager (GTM), Webflow, WordPress, Shopify, and Framer. Pick your platform under the snippet to see them.

Installed the older two-tag version?

If you installed the pixel snippet and the consent banner loader as two separate tags, both keep working exactly as they do today. Nothing breaks and nothing requires action. When you are ready, remove both old tags and paste the single tag from this guide in their place, so you have one line to maintain instead of two.

Bundled Scripts (optional)

Your install tag can also load your other scripts, so you do not paste more code into your site. On the Bundled Scripts tab, pick a template (such as the Google tag or a Meta pixel) and paste its ID, or paste your own custom HTML. Each bundled script has a consent category, so it waits until the visitor agrees to that category, and you choose the pages it runs on. Preview your changes in your own browser, then click Publish; your site gets the published bundled scripts within 5 minutes. Owners and admins can change bundled scripts; other roles can view them.

Capture settings (optional)

On the Domains tab, the Visitor capture settings panel lets you control what is captured per domain. Pick the domain first, then set:

  • URL restrictions: limit capture to, or exclude, specific pages.
  • Domain exclusion list: business email domains to exclude, such as your own company or a competitor. Free email providers (such as Gmail) cannot be added, because one entry would block far more than one organization.

After changing capture settings, click Save settings.

the Script page "Visitor capture settings" panel with the URL restrictions control, the "Repeat visitor collection" toggle (off), the exclusion list, and the "Save settings" button.

Tips & FAQs

  • Owners and admins only. Members can view the Script page but cannot add domains or change capture settings.
  • Capture paused? If capture is paused, a banner appears: settings still save, but no new visitors are captured until capture is resumed from the top bar. Adding or verifying a domain does not resume capture.
  • No consent banner set up yet? The tag still installs your tracking pixel on its own, and the pixel loads without waiting for a banner. Add a banner any time from Set up your consent banner; once it is enabled, the same tag starts loading it too, with no snippet change needed.