Docs

Set up StaSee on your website.

Add one line of code to your website, then open Real-time to check that visits are coming through.

Install StaSee and verify your first visit

  1. Add your website. Enter the domain you want to track in StaSee and copy its tracking script.

  2. Paste the script into your website. Add it before </head> in your shared website template so it loads on every page you want to track.

  3. Check your first visit. Open your website in a new tab, then open Real-time in StaSee. Select the website you just added and look for your visit in the live feed.

Your tracking script looks like this, with your website’s key in place of YOUR_SITE_KEY.

HTML
<script async src="https://stasee.io/t.js" data-key="YOUR_SITE_KEY"></script>

Where is my code?

  • Right after you sign up, on the screen and in the welcome e-mail.
  • In the app: Websites, then a website’s menu, then Tracking code.
  • Light and in the background. Your pages never wait for it: the script loads in the background.

  • Nothing else to set up. Page views, time, scrolling, clicks, downloads, forms, site search, videos, errors and page speed are counted on their own.

  • Your domains only. Visits count on the website’s domains, with or without www. If your site has more domains, add them in the app.

No visits showing up?

  • Is the script on the published page? Open the live page, view its source and look for t.js.
  • Are you testing the right domain? Visits count only on the website’s own domains, listed under Domains in the app.
  • Is consent mode on? With data-consent="wait", nothing is sent until your banner calls stasee.consent(true).

Still nothing? Do Not Track, Global Privacy Control and ad blockers can stop the script too. Troubleshoot tracking

Platforms

StaSee works on any website where you can add a line to the <head>. No plugin or app is needed.

WordPress

Use a plugin that adds code to the head of every page (search the plugin directory for “header code”) and paste the line there. Or, if your theme has a header.php, paste it just before </head>, best in a child theme, so theme updates keep it.

Shopify

Go to Online Store → Themes, open the theme’s menu (…) and choose Edit code. In layout/theme.liquid, paste the line just before </head> and save. Shopify’s checkout doesn’t use your theme’s code, so it isn’t counted.

Wix

Go to Settings → Custom Code and choose Add Custom Code. Paste the line, pick All pages and Head, and apply. Wix offers custom code only on sites with a connected domain.

Webflow

Open Site settings → Custom code, paste the line into Head code, save, and publish the site. Webflow may ask for a paid site plan first.

Plain HTML

Paste the line into every page, just before </head>. If your pages share a header file or template, paste it there once.

Anything else

Look for a setting called “code injection”, “header code” or “custom code”, or for the template that writes the <head>, and paste the line there.

Single-page apps

Nothing to set up. StaSee notices when your app changes the address with history.pushState or replaceState, and when visitors use Back and Forward. Each new path is a new page view, with the page before as its referrer.

A change of only the #hash or the ?query is not a new page view (a site search in the address, like ?q=, still counts as a search). It works the same in React, Vue, Svelte, Angular, Next.js and others.

Script options

AttributeWhat it does
data-keyYour website’s key. Required.
data-consent="wait"Waits for stasee.consent(true) before sending anything.
data-respect-dnt="false"Also counts browsers that send Do Not Track or Global Privacy Control.
data-chat="off"No chat window on this page, even when Website Chat is on for your website.
data-chat="left"Shows the chat window in the bottom-left corner instead of the bottom-right.
data-live="off"No Live Widget on this page, even when you switched it on for your website.
data-endpointSends the data to another address instead of StaSee’s. For special setups only.
FunctionWhat it does
stasee.track(name, props, target)Counts your own event.
stasee.consent(true | false)Starts StaSee (true), or stops it and removes its IDs (false).
stasee.push([name, props, target])The same as track, and it works before the script has loaded.

Websites & Domains

  • More websites: every website has its own tracking code. Add a website under Websites in the app, then paste its code into that site. How many you can add depends on your plan.
  • Several domains, one website: add every address the website uses under Domains (Websites, then Edit). Visits to all of them count for that one website, with or without www.
  • Groups: put related websites into groups, like one per client, and look at one group at a time.
  • Team and clients: share one website with another StaSee account, like your client’s, and choose View, Edit or Manage. Sharing one website works on every plan; inviting people into your own account starts with the paid plans.

More about websites and sharing

Events & Campaigns

Many things are counted without any code. These are the names you’ll see:

EventWhen
link_clickA click on a link to another page of your site
outbound_linkA click on a link to another website
downloadA click on a link to a file (PDF, ZIP, DOCX, XLSX, MP3 and other common types) or on a link with the download attribute
mailto_click tel_clickA click on an e-mail or phone link
button_clickA click on a button (a form’s send button counts as form_submit)
form_start form_submit form_abandonA form started, sent, or left unfinished. Never what was typed.
searchA search on your site: ?q=, ?s=, ?search=, ?query=, ?keyword= or ?keywords= in the address, or a search box
video_play video_pause video_progress video_completeA video or audio played, paused, 25, 50 and 75% watched, and finished
js_errorA JavaScript error, up to 5 different ones per page view
performance_timing web_vitalsLoading times and Core Web Vitals (LCP, FCP, CLS)

For anything else, call stasee.track with a name and, if you like, details and an address:

JavaScript
stasee.track("signup", { plan: "free" });
stasee.track("cart:add", { product: "trail-runner", price: 89 });
stasee.track("partner_click", { partner: "bluelake" }, "https://bluelake.travel/");
  • Name: up to 100 letters, digits and _ . : -, like signup or cart:add.
  • Details: a plain object, up to about 2 KB as JSON. A bigger one is sent without its details.
  • Address: optional, a full address, like https://example.com/pricing.
  • Don’t put personal data, like e-mail addresses or names, into events.

Calling it before the script has loaded? Use the queue: up to 50 events wait in it and are sent as soon as StaSee starts.

HTML
<script>
  window.stasee = window.stasee || [];
  stasee.push(["signup", { plan: "free" }]);
</script>

Your events appear with the automatic ones, and you can filter Traffic and Compare by them.

A sent form (form_submit) counts as a conversion.

Campaigns

Add utm_source, utm_medium and utm_campaign to the links you share. StaSee reads them on its own: the Traffic page lists each in its own table, and every visit gets a channel.

Leave things out

  • A form: add data-stasee-ignore to the form, or to an element around it. StaSee then skips that form completely: no start, no send, no unfinished form, no search. Clicks on links and other buttons in it still count.
HTML
<form action="/login" method="post" data-stasee-ignore>
  …
</form>
  • Your own visits: switch on Do Not Track or Global Privacy Control in your browser, and StaSee skips you (unless the script has data-respect-dnt="false").
  • Bots: crawlers and automated browsers are skipped on their own.
  • A whole website: pause it in the app (Websites, then Edit, then Status). A paused website counts nothing until it’s set back to Active.
  • Other addresses: only the website’s domains are counted, so a copy of your site on a test address stays out.

Do Not Track and Global Privacy Control

Browsers that send Do Not Track or Global Privacy Control aren’t counted: the script sends nothing at all. That’s the default.

To count them anyway, add data-respect-dnt="false". It’s your choice to make: these visitors asked not to be tracked.

HTML
<script async src="https://stasee.io/t.js" data-key="YOUR_SITE_KEY" data-respect-dnt="false"></script>

Consent mode doesn’t change this: a browser that sends either signal stays uncounted, even after stasee.consent(true).

Why is StaSee not showing any visits?

Work through these checks in order. Most missing visits end at one of the first three.

  1. The script is on the published page. Open your live website, view the page source and look for t.js. Code saved in an editor but not published is not on the page yet.

  2. You are testing the right domain. Visits count only on the website’s own domains. Add the missing one under Domains in the app.

  3. Consent was given. With data-consent="wait", StaSee sends nothing until your banner calls stasee.consent(true).

  4. Look at the request. Open your browser’s developer tools, go to Network, reload the page and look for a request named collect. What it shows tells you what is wrong:

What you seeWhat it means
204Received and counted. If the visit still doesn’t show, check that the website isn’t paused.
403This domain isn’t on the website’s list. Add it under Domains in the app.
404The key is wrong. Copy the code again from the app.
No requestThe line isn’t on the page, or your browser sends Do Not Track or Global Privacy Control, or an ad blocker stopped the script.

Some browsers and privacy add-ons send Do Not Track or Global Privacy Control by themselves. Test in a browser without them.

Later, the Websites screen shows each website’s status: Live when data arrived in the last 24 hours, Last seen and how long ago after a day without data, Silent after 7 days without any, and Not installed before the first visit.

API Reference

Everything the app shows comes from the StaSee REST API. The reference lists every endpoint, what it takes and what it returns. Sign in through the API with your StaSee e-mail and password to get a token.

Open the API reference

Good to know

Questions, answered.

Will it slow my site down?

No. The script loads in the background and your page doesn’t wait for it.

Does it set cookies?

No. It keeps a random visitor ID and the current visit in the browser’s local storage, for your website only (and, for a few seconds, the last search made on your site).

Do I need separate code for www?

No. The same code counts your domain with and without www. A website can have more domains too; add them in the app.

Is there a plugin for WordPress or Shopify?

You don’t need one. StaSee is one line in the head of your pages, and every platform above can add it.

What if the code is on a page twice?

It runs once. The second copy sees the first one and does nothing.

See your website clearly.

Swap complicated analytics for something that just works.

Free plan · No credit card