The tracking script is one line in the head of the website. It measures human visits, sources and campaigns, reports errors in the browser and carries the feedback widget. It stores nothing in the browser of the visitor.
Inserting it into the website
- Add the site in the application. Lunaboard assigns it a public ID.
- In the site settings, copy the prepared line and insert it before the closing
</head>tag on every page. - Use the Test installation button to verify that the tag is on the page and data is arriving.
<script async src="https://www.lunaboard.com/s/ID_WEBU.js"></script>
Replace ID_WEBU with the public ID of your site. The ID is not secret; it is visible in the source code of the page. Events from the backend are written with an API key, not with this ID.
What the script sends
| Message | When | What it contains |
|---|---|---|
| Pageview | When the page loads | Page address, referring page, title and signs of an automated browser |
| Activity | On the first mouse movement, page scroll or touch | Only the identification of the pageview to which it belongs |
| Error | When error reporting is switched on | JavaScript error, 404 page or a form that failed to submit: message, address, code and trace |
From the page address, Lunaboard reads the campaign tags utm_source, utm_medium and utm_campaign. By the referring page and the campaign tag, it also recognizes a visit that came from an answer of an AI assistant.
Who is counted among humans
A pageview is counted among humans when it was not sent by a recognized bot and the visitor did something on the page: moved the mouse, scrolled the page or touched the screen. The activity applies to the whole visit. A visit ends after 30 minutes without another pageview.
Pageviews without activity and pageviews from recognized bots are not discarded. In the application, they are in their own column with the reason why they do not belong among humans.
No cookies and no storage
- The script does not store cookies and does not use browser storage to recognize a visitor.
- The server distinguishes a visitor by a hash calculated from the IP address, the browser header, the site and the date. The hash cannot be reversed and it is different the next day.
- The IP address is not stored. It is used only at the moment of receipt to calculate the hash and to recognize bots.
Details are in the privacy policy.
Script components
In the site settings, you switch on what the script should do: visit measurement, error reporting and the feedback widget. A component that is switched off does not send data and the server does not accept it.
Website with a Content-Security-Policy header
If your website restricts script sources, allow the Lunaboard address both for loading the script and for sending data:
script-src https://www.lunaboard.com; connect-src https://www.lunaboard.com
Limits
Ingestion from the browser is limited to 120 messages per minute from one IP address for one site. An ordinary visitor does not come close to the limit. The server rejects messages above the limit with code 429.
What the script does not see
AI bots and most search engine bots do not run JavaScript, so the script does not capture them. The server side is used to measure them.