Why Piwik doesn't track pages with specific chars in the page title?

This is used tracking code:


<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwik.michal-kreidl.net/" : "http://piwik.michal-kreidl.net/" );
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E" ));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.setDocumentTitle("Větrná" );
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://piwik.michal-kreidl.net/piwik.php?idsite=1" style="border:0" alt=""></p></noscript>

Such pages aren’t tracked. When I remove ě all works without problems. What could be incorrect?

[quote=mkreidl]


[...]
piwikTracker.setDocumentTitle("Větrná" );
[...]

Such pages aren’t tracked. When I remove ě all works without problems. What could be incorrect?[/quote]

Hi mkreidl,

I had some problems with special chars or accents also, but especially in PDF Reports. This was caused by a double encoding/decoding of chars.

In order to solve it, I had to decode chars fisrt using unescape() or decodeURIComponent() .

See the solution that worked for me here: 301 Moved Permanently

I hope it will help.
jOoL