Single Plausible instance for tracking multiple domains/subdomains not working #4637
-
Like stated in docs, I should be able to track any website that has JavaScript snippet included regardless of the domain or subdomain where they are hosted, and later in dashboard I can filter by each domain. https://plausible.io/docs/subdomain-hostname-filter Similar discussion that says the same: So I did exactly this, I am hosting 3 mirrors of same website that all have the same JavaScript snippet included. https://github.com/nemanjam/nemanjam.github.io/blob/main/.github/workflows/bash__deploy-nginx.yml But only the original domain https://nemanjamitic.com that I set up in Plausible initial wizard is actually being tracked. Why? Here you can access the dashboard and see that only the original domain is tracked and there is no option to filter by domain: https://plausible.arm1.nemanjamitic.com/nemanjamitic.com Here is my https://github.com/nemanjam/traefik-proxy/blob/main/apps/plausible/docker-compose.yml How can I track all 3 of them, am I missing some settings, maybe this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I'm not on the team / not very familiar with that part of Plausible, but I think the data-domain needs to be curl 'https://plausible.arm1.nemanjamitic.com/api/event' \
-X 'POST' \
-H 'Content-Type: text/plain' \
-H 'Host: plausible.arm1.nemanjamitic.com' \
-H 'Origin: https://nemanjam.github.io' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15' \
-H 'Content-Length: 84' \
--data-binary '{"n":"pageview","u":"https://nemanjam.github.io/","d":"nemanjam.github.io","r":null}' So as far as Plausible is concerned, these are two separate sites. |
Beta Was this translation helpful? Give feedback.
👋 @nemanjam
I'm not on the team / not very familiar with that part of Plausible, but I think the data-domain needs to be
nemanjamitic.com
for all sites. Right now it isnemanjam.github.io
for the GitHub pages site and the request the tracker sends to Plausible doesn't provide any information on how to associate it withnemanjamitic.com