*
* exchange example.com/piwik/ with the url to your piwik installation and
* make sure you don't forget the final /
- * exchange id with the ID your laconica installation has in your Piwik analytics
+ * exchange id with the ID your statusnet installation has in your Piwik analytics
*
* @category Plugin
* @package StatusNet
class PiwikAnalyticsPlugin extends Plugin
{
/** the base of your Piwik installation */
- var $piwikroot = null;
- /** the Piwik Id of your laconica installation */
- var $piwikId = null;
+ public $piwikroot = null;
+ /** the Piwik Id of your statusnet installation */
+ public $piwikId = null;
/**
* constructor
</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 ) {}
$action->raw($piwikCode);
return true;
}
-}
\ No newline at end of file
+}