Wrong URL to matomo in update notification emails

Hi there, I run a couple of Matomo instances and I noticed something strange about the update notification emails they send: A few of the Matomo instances add a spurious “www.” to their host name in these mails.

For example, Matomo lives at https:// matomo . example-domain . com (spaces added here and in the following paragraphs to avoid clickable URLs).

Most of my Matomo installs will send me mails like
“You can update to version 4.13.0 automatically or download the package and install it manually:
https:// matomo . example-domain . com /index.php?module=CoreUpdater&action=newVersionAvailable”

Perfectly okay, just like it should be. But a few Matomo instances send me mails like this:
“You can update to version 4.13.0 automatically or download the package and install it manually:
https:// www . matomo . example-domain . com /index.php?module=CoreUpdater&action=newVersionAvailable”

I checked config/config.ini.php and the trusted hosts in there only list “matomo . example-domain . com” and “example-domain . com”, no signs of any “www.”… Where could I check next? I also looked through the settings but didn’t see anything obvious. Any ideas or pointers are greatly welcome. I also searched the forum and read through a couple of threads but couldn’t find anything resembling my problem. Thanks in advance for any input!

[edit: added a couple more spaces]

You could check the value of the piwikUrl option in the options table. This one might be used to generate the URLs, and might differ from the config file.

1 Like