make PiwikAnalytics work a little nicer
This commit is contained in:
parent
48565a2cdc
commit
5ab1ec7ad5
@ -59,9 +59,9 @@ if (!defined('STATUSNET')) {
|
|||||||
class PiwikAnalyticsPlugin extends Plugin
|
class PiwikAnalyticsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
/** the base of your Piwik installation */
|
/** the base of your Piwik installation */
|
||||||
var $piwikroot = null;
|
public $piwikroot = null;
|
||||||
/** the Piwik Id of your statusnet installation */
|
/** the Piwik Id of your statusnet installation */
|
||||||
var $piwikId = null;
|
public $piwikId = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* constructor
|
* constructor
|
||||||
@ -96,7 +96,7 @@ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/ja
|
|||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
try {
|
try {
|
||||||
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", $this->piwikId);
|
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$this->piwikId});
|
||||||
piwikTracker.trackPageView();
|
piwikTracker.trackPageView();
|
||||||
piwikTracker.enableLinkTracking();
|
piwikTracker.enableLinkTracking();
|
||||||
} catch( err ) {}
|
} catch( err ) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user