• Simple Analytics Docs
  • Go to Simple Analytics →
General
  • Introduction
  • Locations of servers
  • How to use URL params
  • What we collect
Script
  • How to add our script
  • Trigger custom page views
  • Do Not Track
  • Hash mode #
  • Overwrite domain name
  • Ignore pages
  • Install on other platforms
  • Collect without JavaScript
  • Collect in AMP
  • SRI version
  • CSP version
  • Server side tracking
  • Proxy all requests
Features
  • Unique visits
  • Mini websites
  • Email reports
  • Bypass ad-blockers
  • Hide referral SPAM
  • Embed chart on your site
  • Block your visits extension
  • Events
Legal
  • Your privacy policy
  • GDPR
  • PECR
  • VAT
Referral program
  • How it works
  • Terms of service
API
  • Introduction
  • Authenticate
  • Stats API
  • Export page views API
  • Export events API
  • Admin API
Events
  • Introduction
  • Automated events
  • Collect events on iOS
  • Collect events with Ruby
Account
  • Change my plan
  • Passwords
  • Download invoices
  • How to cancel my account
  • How to delete my account

CORS and JSONP edit

We have support for JSONP and CORS. Here are two examples with jQuery:

$.ajax({
  url: "https://simpleanalytics.com/simpleanalytics.com.json?callback=?",
  dataType: "jsonp",
  success: function (data) {
    console.log(data);
  },
});

$.ajax({
  url: "https://simpleanalytics.com/simpleanalytics.com.json",
  success: function (data) {
    console.log(data);
  },
});

We append the Access-Control-Allow-Origin-header with the *-value , so any modern browser should accept the request without any effort.

Simple Analytics

Simple, clean, privacy-friendly analytics

We care about your data. We will never sell it, our servers are located in The Netherlands, and your data is always encrypted – follow us on Twitter

Privacy

  • What we collect
  • Privacy Policy
  • Terms of Service

Product

  • Pricing
  • Roadmap

Learn

  • Documentation
  • Blog
  • Team

Contact

  • Email address
  • Contact form
  • Twitter