How to Set Up Privacy-First Analytics in Under 2 Minutes
February 3, 2026
Most analytics tools require SDK installations, cookie consent banners, privacy policy updates, and complex configuration. Fairlytics requires one line of HTML.
Step 1: Create an Account
Go to your Fairlytics dashboard and register with your email. No credit card required. The free plan covers up to 10,000 page views per month.
Step 2: Add Your Website
Click "Add Website" and enter your domain. Fairlytics generates a unique tracking ID for your site.
Step 3: Paste the Snippet
Copy the tracking snippet and paste it before the closing </body> tag on your website:
<script src="https://app.fairlytics.dev/js/tracker.v1.js"
data-site="YOUR_TRACKING_ID"
data-api="https://app.fairlytics.dev"></script>
That's it. The script is 510 bytes gzipped, loads asynchronously, and starts tracking immediately.
What Gets Tracked (and What Doesn't)
Tracked:
- Page views and unique visitors
- Top pages and referrer domains
- Country (derived from IP, then IP is discarded)
- Browser, OS, and device type (derived from User-Agent, then UA is discarded)
NOT tracked:
- IP addresses (never stored)
- Cookies (none are set)
- Personal data of any kind
- Cross-site browsing behavior
- Individual user journeys
Works With Every Platform
The snippet works with any website that supports custom HTML:
- Static sites — HTML, Jekyll, Hugo, Eleventy, Astro
- React/Next.js — add to
_document.jsor layout component - WordPress — paste in theme footer or use a header/footer plugin
- Webflow — Project Settings → Custom Code → Footer
- Squarespace — Settings → Advanced → Code Injection → Footer
- Shopify — Online Store → Themes → Edit Code → theme.liquid
Optional: Track Custom Events
On Pro plans and above, you can track button clicks, form submissions, and other conversions:
// Track a signup button click
document.getElementById('signup-btn')
.addEventListener('click', () => {
fairlytics.track('signup_click');
});
No Cookie Banner Needed
Because Fairlytics doesn't use cookies and doesn't collect personal data, you don't need to show a cookie consent banner. This is confirmed by the GDPR's ePrivacy Directive — consent is only required for non-essential cookies and tracking technologies that process personal data.
This means cleaner pages, better user experience, and higher conversion rates.