If a local html page containing piwikPRO tracking code is opened in a browser the page loads very long and eventually throws an error: Failed to load resource: net::ERR_FILE_NOT_FOUND. This is because the tracking script tries to open file://(ourInstance).containers.piwik.pro/(ourID).js instead of https://(ourInstance).containers.piwik.pro/(ourID).js which is obviously not possible.
Can you fix this?
Background:
We use piwik pro for tracking our online-help which is created using MadCap Flare. These help pages are accessible online but can also be installed locally if customers choose to do so. The locally installed html files must contain the piwik pro tracking code as well because they are exactly the same as the online version.
have you tried to force the protocol directly in the snippet? It’s all about replacing src="// with src="https://. It may be needed to do this for tag manager container code snippet, as well as for all tags within the tag manager UI.
Hi kuba,
thanks for your reply the other day, I was away for a while and only just got around to test it further.
Adding https: to the urls was also the first thing I did, but that lead me to another similar error:
Failed to load resource: net::ERR_FILE_NOT_FOUND
file://(ourInstance).piwik.pro/ppms.js
do you have any idea how I could prevent this from appearing?
when the script still gets loaded from the wrong location your change to the code obviously did not work. could you share the snippet here? Or double check if really every instance of “//” got changed?
so you should not see any src="//(yourInstance).containers.piwik.pro/... in the code but only src="https://(yourInstance).containers.piwik.pro/...
Well it did work, but not completely. The previous error was because (ourID).js could not be found, now with the added protocol it is ppms.js that causes the error.
we plan to allow the customization of ppms.js endpoint via UI. For now, it can be done only via support channel. Can you provide me with the instance name and website id (here or on priv)? I’ll check what can be done here.
Thanks again for the quick reply! I would prefer a private message, but I couldn’t find a way to send you one Is that feature maybe not activated yet?
just as an update:
the piwik pro team fixed this issue and it works great now. No errors anymore with the forced protocol. Thanks again for the very quick response and solution