X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=piwik%2Fpiwik.php;h=7a1cb5813776a001100e333a31122f2db2f1f42b;hb=4bee797f9e0b8b53ae5ab7763a7d3d8151cc6a61;hp=21bc7af204940dd63b6e678325752bf77cba38e1;hpb=5c5c23acb062960dff33bf5fe86f32ff20515389;p=friendica-addons.git diff --git a/piwik/piwik.php b/piwik/piwik.php index 21bc7af2..7a1cb581 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"; } /* @@ -77,7 +79,7 @@ function piwik_analytics($a,&$b) { $b .= t("This website is tracked using the Piwik analytics tool."); $b .= " "; $the_url = "http://".$baseurl ."index.php?module=CoreAdminHome&action=optOut"; - $b .= sprintf(t("If you do not want that your visits are logged this way you can set a cookie to prevent Piwik from tracking further visits of the site (opt-out)."), $the_url); + $b .= sprintf(t("If you do not want that your visits are logged in this way you can set a cookie to prevent Piwik from tracking further visits of the site (opt-out)."), $the_url); $b .= ""; } }