[TYPO3-piwik] Released Ext:piwik

Kay Strobach typo3 at kay-strobach.de
Thu Mar 11 08:32:28 CET 2010


Hello Stephan,

i assume you use Ext:piwik and not Ext:piwikintegration?

 > So if you configure config.tx_piwik.piwik_host without the scheme (http,
 > https) than the resulting code looks like this:
 > var piwikTracker=Piwik.getTracker("piwik.test.de/piwik.php",1);

Please provide your TS.
I will take a look on the code when i have it here.

But if I understand you right, you configured:

config.tx_piwik {
   piwik_host = piwik.test.de
}

And you need to write:
config.tx_piwik {
   piwik_host = http://piwik.test.de
}

The Problem is, with the old API there was no possibility to add local 
paths like /typo3conf/piwik/piwik, what is needed by Piwikintegration. 
Additionally you had no way to decide, wether to use https or http, as 
the Extension decided that depending on the TYPO3 settings.

What do you think about a configuration option like:
config.tx_piwik {
   piwik_host = piwik.test.de
   piwik_autoscheme = 1
}

OR for remote sites
config.tx_piwik {
   piwik_host = piwik.test.de
}
AND for local sites
config.tx_piwik {
   piwik_path = /path
}


245	

         function getPiwikHost() {

246	

                 if (t3lib_div::getIndpEnv('TYPO3_SSL')) {

247	

                         $scheme = 'https://';

248	

                 } else {

249	

                         $scheme = 'http://';

250	

                 }

251	

                 return $scheme.$this->piwikOptions['piwik_host'];

252	

         }


 > Do you think that config.tx_piwik is the right place for configuration?
 > Don't you think that plugin.tx_piwik would be better?

Yes and no ;) it's there for historical reasons, Frank who wrote the 
first version of ext:piwik decided to do so. And it's easier to be 
compatible, if there is no change in the API. ;)
I will think about modifying that.

Best regards Kay


More information about the TYPO3-project-piwik mailing list