summaryrefslogtreecommitdiff
path: root/plugins/PiwikAnalyticsPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-16 11:57:07 -0400
committerEvan Prodromou <evan@status.net>2009-09-16 11:57:07 -0400
commit5ab1ec7ad578e1ac1f2d18ad8e2299cda21f572a (patch)
treed537f3f4f60ff2565c1474386d391a196e90576c /plugins/PiwikAnalyticsPlugin.php
parent48565a2cdc9df329dee1ad327a1c632dd8f1d4c3 (diff)
make PiwikAnalytics work a little nicer
Diffstat (limited to 'plugins/PiwikAnalyticsPlugin.php')
-rw-r--r--plugins/PiwikAnalyticsPlugin.php6
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 ) {}