summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-11 20:40:51 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-11 20:40:51 -0400
commit9e2705d9d3add426fae4ef998075dab72a736b34 (patch)
treee1d17d3d5eec129857ed8192b0716047e2572987 /plugins
parent2a06f2ac5bac02dea23b63c8d256a17f316039c1 (diff)
The site id was hardcoded inside the plugin code. Instead the piwikid
is used now. Fixes http://status.net/trac/ticket/1864 Thanks zmf
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PiwikAnalyticsPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PiwikAnalyticsPlugin.php b/plugins/PiwikAnalyticsPlugin.php
index 85a24c132..45a11dfe4 100644
--- a/plugins/PiwikAnalyticsPlugin.php
+++ b/plugins/PiwikAnalyticsPlugin.php
@@ -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 ) {}
@@ -108,4 +108,4 @@ ENDOFPIWIK;
$action->raw($piwikCode);
return true;
}
-} \ No newline at end of file
+}