matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.89k stars 2.65k forks source link

In JS Tracking Code method setDocumentTitle, use location.hostname instead of document.domain property #22599

Open atom-box opened 1 month ago

atom-box commented 1 month ago

The document.domain property is deprecated and may cease to work at any time, according to https://developer.mozilla.org/en-US/docs/Web/API/Document/domain

The new way is location.hostname. We should use that instead in our /matomo/index.php?module=CoreAdminHome&action=trackingCodeGenerator