Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions content/docs/tracker-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ track events yourself using the [tracker functions](/docs/tracker-functions).

### data-domains

If you want the tracker to only run on specific domains, you can add them to your tracker script. This is a comma delimited list of domain names. Helps if you are working in a staging/development environment.
If you want the tracker to only run on specific domains, you can add them to your tracker script. This is a comma delimited list of domain names. Each value matches against `window.location.hostname`, so you should double check if your website uses `www` or not. <br/>
Helps if you are working in a staging/development environment. <br/>


```html
<script
defer
src="http://mywebsite.com/umami.js"
data-website-id="94db1cb1-74f4-4a40-ad6c-962362670409"
data-domains="mywebsite.com,mywebsite2.com"
data-domains="mywebsite.com,www.mywebsite.com"
></script>
```

Expand Down