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.
$this->widget('ext.[path_to_widget].EPiwikAnalyticsWidget', array('id'=>$site_id, 'baseUrl'=>$baseUrl));
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.
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:
Be the first person to leave a comment
Please login to leave your comment.