achtachtel/webanalytics-module

ZF2 Module for GoogleAnalytics and/or Piwik

dev-develop 2013-11-07 14:01 UTC

This package is not auto-updated.

Last update: 2024-04-13 13:30:52 UTC


README

#Webanalytics helper for ZF2

How to use

Simply drop this module in the vender folder of your Zendframework application and enable it in the 'application.config.php'.

Copy the webanalytics.local.config.php to your local autoload config and edit it to your needs. (Don't save this file within your SCM)

Insert these two lines anywhere in your layout. (Best place is right before the body tag ends)

<?php echo $this->googleAnalytics()->getTrackingCode(); ?>
<?php echo $this->piwikAnalytics()->getTrackingCode(); ?>

More Information

Visit http://achtachtel.de/projects/webanalytics_module/