matomo-org/matomo

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

Aperta

#19.844 aperta il 11 ott 2022

 (0 commenti) (0 reazioni) (0 assegnatari)PHP (2890 fork)batch import
Help wanted

Metriche repository

Star
 (21.771 stelle)
Metriche merge PR
 (Merge medio 8g 11h) (106 PR mergiate in 30 g)

Descrizione

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

Guida contributor