epiwikanalyticswidget A Piwik Analytics Widget for Yii

EPiwikAnalyticsWidget
History
  • UPTD 7/20/2012 Minor update
  • INIT 7/19/2012 Added to YF and Github
About

EPiwikAnalyticsWidget is a Yii Widget that allows site administrators to quickly place a Piwik Analytics code onto their site by only configuring a single line of code.

Usage
<?php $this->widget('ext.[path_to_widget].EPiwikAnalyticsWidget', array('id'=>$site_id, 'baseUrl'=>$baseUrl)); ?>
Params

The widget requires 2 parameters: the Piwik site id and the url of the piwik server

The variable declarations are as follows:

@var int id 		The Piwik site id found in the piwik site admin panel
@var url baseUrl	The base url of the piwik server. Should be a full url beginning with http[s]://.

If either parameters are missing, the extension will throw a CException describing the error.

Resources

EPiwikAnalytics is available on GitHub. If you're having issues try pulling a fresh copy down.

Extensions, updates, and other news can be found on my blog:

2 0
4 followers
0 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Created on: Jul 19, 2012
Last updated: 12 years ago

Related Extensions