Piwik passes wrong url


I have a webpage developed with AngularJS. I am using angulartics to get the tracking for Piwik. I realized, that the url in the browser …/#/assembly2 is different from the parameter which is passed to Piwik

Actually in the passed url the character “#” is missing. This leads to the problem, that when I click the links in the Piwik dashboards, that I don’t see the page.
Is there a way to avoid filtering the “#” in the passed url to Piwik?

Thanks for help.

1 Like


nobody ever faced that problem? I really need help for it.

See this FAQ to track the hash tag How do I track the URL Hash tags so that the #hash appears in the Page URLs report, and in Visitor Log? - Analytics Platform - Matomo


thank you so much for the help. I changed the parameter according to the FAQ on my PIWIK site. However on the client side I still see that the url is passed without #, therefore it is not working.
My url is for example:


and PWIIK passes http://domain/subpage

Do I have to change my code somehow on the client side?

This is what i have configured at the moment:

var _paq = _paq || [];
(function () {
var u = “//domain:7000/”;
_paq.push([‘setTrackerUrl’, u + ‘piwik.php’]);
_paq.push([‘setSiteId’, 2]);
var d = document, g = d.createElement(‘script’), s = d.getElementsByTagName(‘script’)[0];
g.type = ‘text/javascript’; g.async = true; g.defer = true; g.src = u + ‘piwik.js’; s.parentNode.insertBefore(g, s);

Any ideas?

At this point I’m not sure how this could happen that Piwik.js does not track the correct URL.
Can you think of a way to create a minimal test case where we can reproduce this issue? like a very simple HTML page where the problem is reproduced and URL not correctly sent. With such reproducible test file, we could investigate and fix the issue easier.