An easy way to not include localhost in Umami analytics tracking

Mar 9, 2024

In the script tag you can add some tracker configuration, specifically the data-domains attribute.

e.g. data-domains=“mayari.io,www.mayari.io”

	<script 
    async 
    src="https://analytics.umami.is/script.js" 
    data-website-id="your data website id" 
    data-domains="mywebsite.com,www.mywebsite.com"
    />
⇦ back to all notes