diff options
author | Evan Prodromou <evan@status.net> | 2009-09-16 11:57:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-16 11:58:48 -0400 |
commit | f2ecfd237007b8ffafd8c74a290549f5966c107e (patch) | |
tree | 6f0f0989638162e03e4466c626b27c97c2bda263 | |
parent | af76e05cd11bc64a43656c5d00a788dbf62c13f8 (diff) |
make PiwikAnalytics work a little nicer
-rw-r--r-- | plugins/PiwikAnalyticsPlugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/PiwikAnalyticsPlugin.php b/plugins/PiwikAnalyticsPlugin.php index 45a11dfe4..e36bd1c5c 100644 --- a/plugins/PiwikAnalyticsPlugin.php +++ b/plugins/PiwikAnalyticsPlugin.php @@ -59,9 +59,9 @@ if (!defined('STATUSNET')) { class PiwikAnalyticsPlugin extends Plugin { /** the base of your Piwik installation */ - var $piwikroot = null; + public $piwikroot = null; /** the Piwik Id of your statusnet installation */ - var $piwikId = null; + public $piwikId = null; /** * constructor @@ -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", $this->piwikId); + var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$this->piwikId}); piwikTracker.trackPageView(); piwikTracker.enableLinkTracking(); } catch( err ) {} |