Getting Started
Start tracking visitors in under a minute. No build tools, no config files, no cookies.
1. Create an account
Sign up at litestats.io/signup. You can use your email address or sign in with a social provider.
2. Add your website
After signing in, go to Account Preferences → Sites and click Add site. Enter your domain (e.g. example.com) and LiteStats will generate a unique tracking snippet for you.
3. Install the tracking script
Copy the snippet and paste it into the <head> section of your website:
<script async src="https://litestats.io/track.js" data-site="YOUR_SITE_ID" crossorigin="anonymous" ></script>
That's it — one line. The script is under 1 KB, loads asynchronously, and will not affect your page speed.
4. Verify your site
After adding the script to your site, click Verify in the modal. LiteStats will check that the script is installed correctly. Once verified, data will begin appearing on your dashboard.
5. View your dashboard
Navigate to your overview to see all your sites at a glance, or click into any site to view the full analytics dashboard.
Framework-specific guides
The tracking script works with any website. Here are quick tips for popular frameworks:
Next.js (App Router)
Add the script to your root layout.tsx inside the <head> tag:
// app/layout.tsx
<head>
<script
async
src="https://litestats.io/track.js"
data-site="YOUR_SITE_ID"
crossOrigin="anonymous"
/>
</head>WordPress
Go to Appearance → Theme Editor → header.php (or use a plugin like "Insert Headers and Footers") and paste the script tag before the closing </head> tag.
Shopify
Go to Online Store → Themes → Edit Code → theme.liquid and paste the script inside the <head> section.
Static HTML
Simply paste the <script> tag into the <head> of every HTML page, or in a shared header include.
Need help? Email us at support@litestats.io and we'll get you set up.