ZF2 helper for GoogleAnalytics and/or Piwik
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/WebanalyticsModule/Helper
.gitignore
LICENSE.md
Module.php
README.md
composer.json
webanalytics.local.php.dist

README.md

#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/