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
- Pick a path on your site. Settings, Tracking, Proxy through your own domain suggests one that is unique to your site.
- Forward two addresses under that path to EarnedStats:
<path>/script.jstohttps://earnedstats.com/es/script.jsand<path>/eventtohttps://earnedstats.com/es/event. Pass the visitor's IP address inX-Forwarded-Forand drop cookies. - 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.