diff --git a/piwik.tgz b/piwik.tgz index aaaf43758..4099e2de1 100755 Binary files a/piwik.tgz and b/piwik.tgz differ diff --git a/piwik/piwik.php b/piwik/piwik.php index 8b19863d0..7a1cb5813 100755 --- a/piwik/piwik.php +++ b/piwik/piwik.php @@ -2,7 +2,7 @@ /** * Name: Piwik Analytics * Description: Piwik Analytics Plugin for Friendica - * Version: 1.1 + * Version: 1.2 * Author: Tobias Diekershoff * Author: Klaus Weidenbach */ @@ -15,7 +15,9 @@ * License: 3-clause BSD license * * Configuration: - * Add the following lines to your .htconfig.php file: + * Use the administration panel to configure the Piwik tracking addon, or + * in case you don't use this add the following lines to your .htconfig.php + * file: * * $a->config['piwik']['baseurl'] = 'www.example.com/piwik/'; * $a->config['piwik']['siteid'] = '1'; @@ -62,10 +64,10 @@ function piwik_analytics($a,&$b) { * If async is set to true use asynchronous tracking */ if ($async) { - $a->page['htmlhead'] .= " \r\n\r\n"; + $b .= " \r\n"; $b .= "
\r\n\r\n
"; } else { - $b .= "
\r\n \r\n\r\n\r\n
"; + $b .= " \r\n"; } /*