Connect FastStats to your stack in minutes. One-line installation, comprehensive API, and native integrations for popular platforms.
Copy one line of code. Paste before your closing </head> tag. Done.
<!-- FastStats Tracking Script -->
<script defer data-site="YOUR_SITE_ID" src="https://eu1.faststats.io/t.js"></script>
Our tracking script is under 1KB gzipped. It loads asynchronously and never blocks your page rendering.
No cookies, no personal data, no consent banners required. Fully GDPR, CCPA, and PECR compliant out of the box.
Automatic detection and filtering of bots, crawlers, and spam traffic. See only real human visitors.
See visitors as they arrive. No sampling, no delays. Your dashboard updates in real-time.
Native plugins for popular CMS platforms and frameworks. Install once, track everything.
Programmatically access all your analytics data. Build custom dashboards, reports, and integrations.
# All API requests require authentication via Bearer token
curl "https://api.faststats.io/v1/stats" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
# Get statistics for the last 30 days
curl "https://api.faststats.io/v1/sites/abc123/stats?period=30d" \
-H "Authorization: Bearer YOUR_API_KEY"
# Response
{
"visitors": 12847,
"pageviews": 34521,
"bounce_rate": 42.3,
"avg_duration": 127,
"pages_per_visit": 2.69
}
Beyond pageviews. Track signups, purchases, downloads, video plays, and any custom interaction.
// Track a simple event
faststats('signup');
// Track event with properties
faststats('purchase', {
value: 99.00,
currency: 'EUR',
product: 'Pro Plan'
});
Track when visitors subscribe to your mailing list.
document.querySelector('#subscribe')
.addEventListener('submit', () => {
faststats('newsletter_signup');
});
Track video plays, completions, and watch time.
video.addEventListener('play', () => {
faststats('video_play', {
title: video.dataset.title,
duration: video.duration
});
});
Full purchase tracking with order details.
faststats('purchase', {
order_id: 'ORD-12345',
total: 149.99,
currency: 'EUR',
items: ['Widget Pro', 'Addon Pack']
});
Track document and file downloads.
document.querySelectorAll('a[download]')
.forEach(link => {
link.addEventListener('click', () => {
faststats('download', {
file: link.getAttribute('href')
});
});
});
Measure how far visitors scroll on long pages.
let tracked = {};
window.addEventListener('scroll', () => {
const depth = Math.floor(
(scrollY / docHeight) * 100 / 25
) * 25;
if (depth && !tracked[depth]) {
tracked[depth] = true;
faststats('scroll', { depth });
}
});
Detect when users leave forms incomplete.
window.addEventListener('beforeunload',
() => {
if (formStarted && !formSubmitted) {
faststats('form_abandon', {
form: 'checkout',
step: currentStep
});
}
});
Set up analytics for your site in under a minute. No credit card required.