Piwik javascript redirected

If visitors of your website (which uses piwik) get redirected to some advertizing site, you might look into the javascript that leads to your piwik installation.

 

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://piwiklocation.com/" : "http://piwiklocation.com/");
[...]

In a current case, another code block was injected after the piwik code which contained another pkBaseURL. In that case, the visitor was redirected to another site:

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://s3d.so/" : "http://s3d.so/");
[...]

After deleting the second code block, you should look for security patches for your websites cms.