Powerful API & Integrations

Connect FastStats to your stack in minutes. One-line installation, comprehensive API, and native integrations for popular platforms.

<1KB Script
<45ms Load Time
No Cookies Required

Add tracking in 30 seconds

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>

Lightweight Script

Our tracking script is under 1KB gzipped. It loads asynchronously and never blocks your page rendering.

Privacy-First

No cookies, no personal data, no consent banners required. Fully GDPR, CCPA, and PECR compliant out of the box.

Bot Filtering

Automatic detection and filtering of bots, crawlers, and spam traffic. See only real human visitors.

Real-Time Data

See visitors as they arrive. No sampling, no delays. Your dashboard updates in real-time.

Works with your favorite platforms

Native plugins for popular CMS platforms and frameworks. Install once, track everything.

Full REST API access

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 /v1/sites List all tracked sites
GET /v1/sites/{site_id}/stats Get aggregated statistics for a site
GET /v1/sites/{site_id}/realtime Get current visitors (last 5 minutes)
GET /v1/sites/{site_id}/pages Top pages with pageviews and visitors
GET /v1/sites/{site_id}/sources Traffic sources and referrers
GET /v1/sites/{site_id}/countries Geographic breakdown of visitors
GET /v1/sites/{site_id}/devices Device, browser, and OS statistics
GET /v1/sites/{site_id}/events Custom events and conversions
GET /v1/sites/{site_id}/funnels Conversion funnel analytics
POST /v1/sites Create a new tracked site
POST /v1/sites/{site_id}/goals Create a conversion goal
# 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
}

Track what matters to your business

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'
});

Newsletter Signup

Track when visitors subscribe to your mailing list.

document.querySelector('#subscribe')
  .addEventListener('submit', () => {
    faststats('newsletter_signup');
  });

Video Engagement

Track video plays, completions, and watch time.

video.addEventListener('play', () => {
  faststats('video_play', {
    title: video.dataset.title,
    duration: video.duration
  });
});

E-commerce Purchase

Full purchase tracking with order details.

faststats('purchase', {
  order_id: 'ORD-12345',
  total: 149.99,
  currency: 'EUR',
  items: ['Widget Pro', 'Addon Pack']
});

File Download

Track document and file downloads.

document.querySelectorAll('a[download]')
  .forEach(link => {
    link.addEventListener('click', () => {
      faststats('download', {
        file: link.getAttribute('href')
      });
    });
  });

Scroll Depth

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 });
  }
});

Form Abandonment

Detect when users leave forms incomplete.

window.addEventListener('beforeunload', 
  () => {
    if (formStarted && !formSubmitted) {
      faststats('form_abandon', {
        form: 'checkout',
        step: currentStep
      });
    }
  });

Ready to get started?

Set up analytics for your site in under a minute. No credit card required.