From 53ed99a833e633f6fd8c3a4a235d1a71fc66e8d9 Mon Sep 17 00:00:00 2001 From: ancashoria Date: Sun, 23 Nov 2025 14:58:12 +0200 Subject: [PATCH 1/3] Updated `data-domains` attribute description and example to remove footgun where people have domains with www --- content/docs/tracker-configuration.mdx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/docs/tracker-configuration.mdx b/content/docs/tracker-configuration.mdx index 163deea..be3b95a 100644 --- a/content/docs/tracker-configuration.mdx +++ b/content/docs/tracker-configuration.mdx @@ -34,14 +34,17 @@ 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. +
Helps if you are working in a staging/development environment.
+ ```html ``` From 5d3787f180cecd8b6148826877a0863b5c7501f2 Mon Sep 17 00:00:00 2001 From: ancashoria Date: Sun, 23 Nov 2025 15:08:01 +0200 Subject: [PATCH 2/3] minor cleanup --- content/docs/tracker-configuration.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/docs/tracker-configuration.mdx b/content/docs/tracker-configuration.mdx index be3b95a..3dea5a8 100644 --- a/content/docs/tracker-configuration.mdx +++ b/content/docs/tracker-configuration.mdx @@ -34,9 +34,8 @@ 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. -Each value matches against `window.location.hostname`, so you should double check if your website uses `www` or not. -
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.
+Helps if you are working in a staging/development environment.
```html From 03df62daaa41dec276d24652c8ff394068f94030 Mon Sep 17 00:00:00 2001 From: ancashoria Date: Sun, 23 Nov 2025 15:09:46 +0200 Subject: [PATCH 3/3] cleanup --- content/docs/tracker-configuration.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/tracker-configuration.mdx b/content/docs/tracker-configuration.mdx index 3dea5a8..23eed25 100644 --- a/content/docs/tracker-configuration.mdx +++ b/content/docs/tracker-configuration.mdx @@ -34,7 +34,7 @@ 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. Each value matches against `window.location.hostname`, so you should double check if your website uses `www` or not.
+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.
Helps if you are working in a staging/development environment.