Is this the correct code that i need to insert in order to get piwik working on a local site?
The url is correctly pointing to my installation of piwik. I should also mention im doing this in Modx. If anyone can help, thank you in advance.
Sorry if ive posted in the wrong section.
Regards.
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://sh.localhost/piwik/index.php" : "http://sh.localhost/piwik/index.php");
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>