achtachtel / webanalytics-module
ZF2 Module for GoogleAnalytics and/or Piwik
dev-develop
2013-11-07 14:01 UTC
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.*
This package is not auto-updated.
Last update: 2024-12-21 16:46:19 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(); ?>