Site tracking
Put one snippet on a website you own to see page views, visitors, events and conversions in Opsidian, with no cookies. What it collects, how to install it, and how to check it works.
Site tracking shows you how people use a website you already have: on Wix, WordPress, Squarespace, Shopify, Webflow or a site an agency built for you. You paste one small script on the site, and Opsidian records page views, where visitors came from, and the actions you care about, like a quote request.
Opsidian does not host your website. Tracking works on the site where it already lives.
What it collects
Section titled “What it collects”- Page views, including pages that change without a full reload.
- Where visitors came from: the referring site and any UTM tags on the link (
utm_source,utm_medium,utm_campaign). - Events you name, such as
quote_requestorphone_call. - Clicks and form activity: where on a page people click, repeated frustrated clicks, and when a form is started, submitted or abandoned. For forms, only the field names are recorded, never what was typed.
What it does not collect
Section titled “What it does not collect”- No cookies and no stored visitor ID. Nothing is saved in the visitor’s browser that survives closing the tab.
- No IP addresses. To count a returning visitor within one day, Opsidian combines the visitor’s address and browser details with a secret that changes every day, and keeps only the scrambled result. Tomorrow the same person looks like a new visitor, and the result cannot be turned back into an address.
- No form values, no text typed on the page, no URL query strings other than the UTM tags above, and no URL fragments.
- Nothing at all from visitors who have Do Not Track or Global Privacy Control turned on.
- No traffic from bots. Known search-engine crawlers and scripted clients are filtered out before anything is recorded, so they never show up in your numbers.
Install it
Section titled “Install it”- In Opsidian, open Website → Tracking and add your site with its domain. Opsidian gives you a snippet with a key that belongs to that site.
- Copy the snippet and paste it where your site builder lets you add code to every page: the head or custom-code section of Wix, WordPress, Squarespace, Shopify or Webflow, or your agency’s site template.
- Save and publish the site.
The snippet looks like this, with your own site key:
<script defer src="https://cdn.opsidian.com/t/v1.js" data-site="ts_…"></script>The script only reports from the addresses you registered for the site. Moving the site to a new domain means adding the new address in Opsidian first.
Track an action
Section titled “Track an action”To record something other than page views, give the action a name:
- On any button or link, add
data-opsidian-event="phone_call"to it. - From your own code, call
window.opsidian.track("quote_request", { service: "roof" }).
Actions you mark as a conversion for the site are counted exactly, day by day.
Check that it works
Section titled “Check that it works”- Open your live site in a normal browser window. A private window works too, but turn off any ad or tracking blocker for the site, because blockers stop the script.
- Visit a page or two, then click around.
- Open Website → Tracking in Opsidian. The site shows as installed after Opsidian receives its first visit, and the last-seen time updates as visits arrive.
If the site never shows as installed:
- Confirm the snippet is on the published site, not only in a draft.
- Confirm the address you visited is the one registered for the site, including
wwwor nowww. - Turn off Do Not Track, and any browser extension that blocks scripts, then try again.
- Visits from your own scripts,
curlor a headless browser are treated as bots and ignored. Use a regular browser.