EarnedStats Docs

Install

Install the script

One small script tag, placed where your stack expects it.

The script loads with defer so it never holds up the page, and counts page changes in single page apps by itself.

Inside <head>, on every page of the site.

index.html
<script defer data-website-id="YOUR_SITE_ID"
  src="https://earnedstats.com/js/script.js"></script>
Tip

Use an AI coding tool? Settings, Tracking, Set up with AI copies a prompt with your real site id that installs the script, revenue and goals in your codebase.

Anything else

Any site that lets you add a tag to <head> works: Ghost, Squarespace, Wix, Hugo, Jekyll, Eleventy, Rails, Django, Laravel and so on. Paste the plain tag:

head
<script defer data-website-id="YOUR_SITE_ID"
  src="https://earnedstats.com/js/script.js"></script>