Hello Dudes,
I’ve got a Problem with the piwik tracking code, if I copy the code from my piwik installation it looks fine.
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://meine-domain.de/tracking/" : "http://meine-domain.de/tracking/";
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.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://meine-domain.de/tracking/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
But if after I pasted the code in the footer of my CMS it looks not so fine, there are chars in the HTML output the shouldnt be there!
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = ((„https:“ == document.location.protocol) ? „https://meine-domain.de/tracking/“ : „http://meine-domain.de/tracking/“
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.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://meine-domain.de/tracking/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
Do you have any solution for that?