diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-09-11 20:40:51 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-16 11:48:12 -0400 |
commit | 75085a0df17c717ad7fd08334204885c75480076 (patch) | |
tree | 468be1cbbed064cdf73e02f7e2a3f7adc27b0e2e | |
parent | ba199ad4ec47e6b0c067a3b2a15882d3836ea009 (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
-rw-r--r-- | plugins/PiwikAnalyticsPlugin.php | 4 |
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 +} |