Added SSL on PIWIK Server = Page URL not defined

Hi there, I’ve been running PIWIK for some years, no issues, no concerns, great tool.

Does anyone have some ideas of what I can do next?

This week I added an SSL certificate to the server hosting PIWIK, it was an automated script by my host provided and the SSL verifies fine on the suggested debug site (no Chain Issues etc). Since this change PIWIK is having issues tracking traffic on sites that I use with it (which are another domains). I’m seeing page titles generally, but for the URL it shows as “Page URL not defined” which is now messing up statistics.

I’ve enabled force SSL in the config file, though that seemed to not help in this case.

I have not changed the tracking code on my e.g., each file has a code like the one below which worked fine before installing SSL on the Piwik server.: The does not use SSL, everything is http://xxx like before, the only changes is the PIWIK server having changed from http:// to https://

Potentially related information just in case, as I’m no expert on htaccess files. On my PIWIK server I edited the htaccess file adding;
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R=301,L]

Also on the i have this in the htaccess file. this was like this before as well, presumably that code does not interfere in any way.
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www.(.*) [NC] RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]

Hi there,

Yes your redirect is likely causing your Page URL not defined issue. See our FAQ: What is "page url not defined" in the Pages report? - Analytics Platform - Matomo

I ended up changing the code on each page to include https which seems to have resolved the issue.