]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/PiwikAnalyticsPlugin.php
Merge remote branch 'cvollick/userTagPagination' into 0.8.x
[quix0rs-gnu-social.git] / plugins / PiwikAnalyticsPlugin.php
index 902d1744d3ba20669879be68a67c59d1ea4fd180..e36bd1c5c341c16fbe22bc3e91183a255d1e1617 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('STATUSNET')) {
  *
  * 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
@@ -59,9 +59,9 @@ if (!defined('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
@@ -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
+}