Developers
Website analytics integration
Install the tracker, validate the domain and explain its storage to visitors.
On this page
Get the installation codeWhat the tracker sendsDomain and CSPBrowser storage and consentGet the installation code
Add the website in Mumro and copy the code from Website setup. GET /api/website-analytics/sites returns an array, including id, domain, tracking_id, tracking_snippet and script_url. Read it with your workspace Public API Bearer key and the required module access.
<script async src="https://app.mumro.io/api/website-analytics/script.js?p=wa_REPLACE_ME"></script>The tracking ID is public and routes events to the correct website. It does not authorize API reads. Add the snippet once on eligible pages after any required consent. For creating or changing website records, see the website API contract.
What the tracker sends
On a page load the script sends a pixel request to /api/website-analytics/collect.gif. Parameters include the tracking ID, page URL, referrer, title, random visitor and session IDs, language, time zone and screen dimensions. The request also has normal network metadata such as IP and user agent.
Avoid personal or secret values in page URLs and titles. Do not assume a tracker can remove every sensitive value your website places in those fields.
Domain and CSP
The page host must match the registered website domain; leading www. is normalized. A copied tracking ID is not proof of a genuine visitor. Domain checking reduces accidental misrouting but cannot make public analytics immune to spoofing.
Your content security policy must allow https://app.mumro.io in the relevant script-src and img-src directives. Blocked requests, visitor privacy tools and rejected consent affect measured traffic.
Browser storage and consent
| Storage | Purpose and duration |
|---|---|
localStorage: mumro_wa_vid_<tracking_id> | Random visitor ID. Persists until cleared; the current script sets no fixed expiry. |
sessionStorage: mumro_wa_sid_<tracking_id> | Random session ID for the browser tab/session. |
The website owner is responsible for its visitor-facing notice and consent integration. The tracker does not supply a consent-management banner. See the European Union guidance on cookies.