Skip to content

Script Tag

The script tag works on any website — static sites, Squarespace, Webflow, Ghost, or any CMS that lets you add HTML to the <head>.

Sign in at app.moszaic.ai, then click Settings in the left sidebar.

Click the Properties tab, then + Add Property. Enter your site name and URL and click Save.

Settings → Properties

If you already have a property, skip this step.

Click the Install Tracker tab. Select your property from the dropdown, then copy the pre-filled snippet from the Script Tag tab.

Settings → Install Tracker showing your pre-filled script tag

Your snippet will look like this, with your credentials already filled in:

<!-- Paste inside your <head> -->
<script
src="https://tag.moszaic.ai/static/tag.js"
data-property-id="your-property-id"
data-write-key="wk_your_write_key"
async
></script>

Paste the snippet inside the <head> on every page of your site.

Squarespace: Settings → Advanced → Code Injection → Header

Webflow: Site Settings → Custom Code → Head Code

Ghost: Settings → Code injection → Site header

WordPress: Use the WordPress plugin instead — it captures all bots server-side.

After installing, open your site in a browser. Go to your MOSZAIC dashboard — a human visit event should appear within a few seconds.

If nothing shows up after a minute:

  • View source on your site and confirm the script tag is in <head>
  • Check that the data-property-id and data-write-key match your property in Settings → Properties
SymptomWhat to check
No events after installingView source on your page and confirm the script tag is present inside <head>
Script tag is there but still no eventsConfirm data-property-id and data-write-key match the values in Settings → Properties
Events appear but stop after a dayYour Write Key may have been rotated — go to Settings → Properties and update the tag with the new key
Events show as unknown bot typeNormal for human visits — the dashboard labels them correctly
Content Security Policy (CSP) blocking the tagAdd https://tag.moszaic.ai to your CSP script-src and connect-src directives
Squarespace / Webflow not saving the codeMake sure you’re pasting in the Header injection field, not the footer

If you’re still stuck, send the page URL and your property ID to support and we’ll check the event logs directly.

The script tag does not set cookies, use localStorage, or fingerprint devices. It is compatible with strict GDPR implementations without a cookie consent banner. See the data privacy policy for details.