Adding privacy-friendly analytics
Cookieless, GDPR-friendly analytics in one script tag — works with Next.js, React, WordPress and plain HTML, without the weight of Google Analytics.
Why and what
How is Anested Web Analytics different from Google Analytics?
Anested Web Analytics is lightweight and privacy-first: it's cookieless, doesn't track people across sites, and collects only aggregate traffic — page views, referrers, countries, devices — not personal profiles. The script is a fraction of the size of Google Analytics, so it won't drag down your page-speed scores.
You get the numbers that actually help you grow — what's popular, where visitors come from, what converts — without a consent banner headache or handing your visitors' data to an ad network.
Installing it
How do I add the tracking script to my site?
Create a site in the Analytics section of your dashboard to get your snippet, then paste one script tag into your page's <head>. That's the whole install for a plain HTML or server-rendered site:
<script defer
src="https://analytics.anested.com/script.js"
data-site="YOUR_SITE_ID"></script>Does it work with Next.js, React or a single-page app?
Yes. In Next.js, add the snippet via the built-in Script component in your root layout so it loads on every route. For any client-side router (React, Vue, SPA), the script tracks route changes automatically, so navigations between views are counted as page views without extra code.
// app/layout.tsx (Next.js)
import Script from "next/script";
<Script defer
src="https://analytics.anested.com/script.js"
data-site="YOUR_SITE_ID" />How do I add it to WordPress?
Paste the same script tag into your theme's header (Appearance → Theme File Editor → header.php, just before </head>) or use any "insert header scripts" plugin. If your WordPress runs on Anested web hosting, you can drop it straight into the header via the Files tab.
Reading the data
What can I see in the dashboard?
A clean, real-time overview: visitors and page views over time, your top pages, where traffic comes from (referrers and search), visitor countries, and device and browser breakdowns. It's designed to answer "is my site growing and what's working" at a glance, rather than burying you in configuration.
Can I track custom events like sign-ups or clicks?
Yes — fire a custom event from your code when something important happens (a sign-up, a purchase, a button click) and it shows up alongside your traffic. That lets you connect visits to outcomes and see which pages and sources actually drive conversions.
Still stuck?
Our team can look at your site directly — reach out and we'll help you sort it.