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

New site shows tracking code with old piwik files #19059

Open Tazzios opened 2 years ago

Tazzios commented 2 years ago

Expected Behavior

Show trackingcode with matomo.js and matomo.php

Current Behavior

Show trackingcode with piwik.js and piwik.php

Possible Solution

Edit page, At Websites>manage the correct tracking code is shown.

Steps to Reproduce (for Bugs)

  1. create a new site
  2. go to dashboard
  3. at the tracking code you see a tracking code with piwik files.

Your Environment

sgiehl commented 2 years ago

Hi @Tazzios Thanks for creating this issue. Guess it would make sense to show the new endpoints for newly created sites. Instances of Matomo, that were installed after 3.7.0, should already show the matomo endpoints by default. Older installs currently don't do that.

It seems we also already show the (new) matomo endpoints in the tracking code generator, so there actually is no sense to show the old endpoints on the no data screen.

If we work on this issue we should check if we meanwhile can't simply remove the possibility that old endpoints can be generated into the tracking code at all.