Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking code generator incorrectly sets domains for websites that use www in the hostname #19844

Open
Starker3 opened this issue Oct 11, 2022 · 0 comments
Labels
Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.

Comments

@Starker3
Copy link
Contributor

When setting the URL for a website, we specify that it isn't necessary to specify URLs with and without www as Matomo handles both automatically. This means that people can set their URL to either www.example.org or to example.org:
image

However, when the option "Track Visitors across all subdomains" is selected in the tracking code generator it incorrectly sets the domains and cookie domains to *.www.example.org when the website URL contains www:
image

This can cause issues with the cookies on the websites tracked with things such as cookie consent tools that are quite strict and can cause issues with other things such as server-side tracking that relies on fetching the Visitor ID value from cookies

@Starker3 Starker3 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Oct 11, 2022
@sgiehl sgiehl added this to the For Prioritization milestone Oct 11, 2022
@peterhashair peterhashair added Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
Development

No branches or pull requests

3 participants