Tracking code is changed by the CMS / Tracking is not possible

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&#8220);

</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?

Depends on the cms.

Typically there’s a way to enter raw html or escape it.

Hello,
thanks for your Answer. The CMS is a self developt system (not by me). I dont understand what duyou mean with rawhtml?

Every page from the CMS is generated by a single PHP file, if I am adding the code it looks fine, but if PHP parsing the code,appears the Code with the errors.

Is there any other possibility to add the tracking Code (not through the image tracker)?

sorry. This is specific to your cms. please contact the original developer or contact a Piwik consultant.

And how can I contact an “Piwik consultant”? I find no Ticket System or something else for support on the Homepage?!

“Professional services” link