Overwrite domain name edit

Sometimes you want to link multiple domains into one domain in your dashboard. Or you want to use a different domain then people see in their browser address bar. You can overwrite the default domain name by specifying its hostname.

Make sure to include the our simpleanalyticscdn.com script. Include these two lines at the end of your <body>:

<script async defer data-hostname="" src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt=""></noscript>

You see that we added an attribute (data-hostname="") to the script tag. If you add your domain to it (eg example.com) it will look like this:

<script async defer data-hostname="example.com" src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt=""></noscript>

Add used domain to your dashboard

Now all the visits you collect with this script are collected under the name example.com. Make sure you add the new used domain name (example.com) to your dashboard.