Add a website
Every site you measure lives as a website in Madinco Hub. Each one has its own dashboard, its own settings, and its own tracking ID.
Create the website
Section titled “Create the website”- Open Sites → Add website.
- Fill in the fields:
- Name — how the site appears in your dashboard (e.g. Radio Sud Est).
- Domain — the primary domain you’re measuring (e.g.
radiosudest.com).
- Save. Madinco Hub generates a website ID and a tracking snippet.
Install the tracking snippet
Section titled “Install the tracking snippet”Add the snippet to the <head> of every page you want to measure:
<script defer src="https://hub.madinco.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>The script is a few kilobytes, loads asynchronously, and never blocks rendering. Once it’s live, the first visit shows up in Overview within a minute.
Where to put it
Section titled “Where to put it”| Stack | Where |
|---|---|
| Plain HTML | In <head>, on every page (or a shared layout/partial). |
| Astro | In your base layout’s <head>. |
| Next.js | In the root layout, or use the <Script> component with strategy="afterInteractive". |
| WordPress | A header snippet plugin, or your theme’s header.php. |
Verify it’s working
Section titled “Verify it’s working”Open your site, then check Real-time in Madinco Hub — you should see yourself as a current visitor. If nothing appears:
- Confirm the
data-website-idmatches the site. - Make sure the script isn’t blocked by a content-blocker during testing.
- Check that the snippet is in the served HTML (view source).
Next: track custom events.