EarnedStats Docs

Install

Use your own domain

Serve the script and events from your site so ad blockers do not hide part of your audience.

Ad blockers stop requests to known analytics addresses. When the script and its events go through a path on your own domain, they are first party requests and are counted like the rest of your site.

How it works

  1. Pick a path on your site. Settings, Tracking, Proxy through your own domain suggests one that is unique to your site.
  2. Forward two addresses under that path to EarnedStats: <path>/script.js to https://earnedstats.com/es/script.js and <path>/event to https://earnedstats.com/es/event. Pass the visitor's IP address in X-Forwarded-For and drop cookies.
  3. Change the tag to load from your path and send there with data-api.
index.html
<script defer data-website-id="YOUR_SITE_ID"
  data-api="/xk3p9/event"
  src="/xk3p9/script.js"></script>
Tip

Settings shows ready made rules for common servers and hosts with your path filled in, and a Check the proxy button that confirms it works.

Careful

Forward the visitor's IP address. Without it, every visitor looks like your server and is counted as one person.