]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
The site id was hardcoded inside the plugin code. Instead the piwikid
authorCraig Andrews <candrews@integralblue.com>
Sat, 12 Sep 2009 00:40:51 +0000 (20:40 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 16 Sep 2009 15:48:12 +0000 (11:48 -0400)
is used now.

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

Thanks zmf

plugins/PiwikAnalyticsPlugin.php

index 85a24c132019ca07964f21fb88c9f562660375bc..45a11dfe43e2b9bb3f742838a2234eaa4e69e3f9 100644 (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 ) {}
@@ -108,4 +108,4 @@ ENDOFPIWIK;
         $action->raw($piwikCode);
         return true;
     }
-}
\ No newline at end of file
+}