The site id was hardcoded inside the plugin code. Instead the piwikid

is used now.

Fixes http://status.net/trac/ticket/1864

Thanks zmf
This commit is contained in:
Craig Andrews 2009-09-11 20:40:51 -04:00
parent 2a06f2ac5b
commit 9e2705d9d3

View File

@ -96,7 +96,7 @@ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/ja
</script>
<script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", $this->piwikId);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}