Version Description
- Unnecessary debug output removed
- German language file update
- WordPress dashboard widget: last 30 days view added
Download this release
Release Info
Developer | Braekling |
Plugin | WP-Matomo (WP-Piwik) |
Version | 0.6.4 |
Comparing to | |
See all releases |
Code changes from version 0.6.3 to 0.6.4
- css/wp-piwik.css +0 -0
- dashboard/.htaccess +0 -0
- dashboard/browsers.php +0 -0
- dashboard/footer.php +0 -0
- dashboard/header.php +0 -0
- dashboard/keywords.php +0 -0
- dashboard/overview.php +18 -0
- dashboard/plugins.php +0 -0
- dashboard/screens.php +0 -0
- dashboard/systems.php +0 -0
- dashboard/visitors.php +0 -0
- dashboard/websites.php +0 -0
- gpl-3.0.html +0 -0
- js/wp-piwik.js +0 -0
- languages/wp-piwik-de_DE.mo +0 -0
- languages/wp-piwik-de_DE.po +19 -0
- readme.txt +6 -1
- screenshot-1.gif +0 -0
- screenshot-2.gif +0 -0
- wp-piwik.php +21 -8
css/wp-piwik.css
CHANGED
File without changes
|
dashboard/.htaccess
CHANGED
File without changes
|
dashboard/browsers.php
CHANGED
File without changes
|
dashboard/footer.php
CHANGED
File without changes
|
dashboard/header.php
CHANGED
File without changes
|
dashboard/keywords.php
CHANGED
File without changes
|
dashboard/overview.php
CHANGED
@@ -12,6 +12,24 @@
|
|
12 |
$aryConf['title'] = __('Overview', 'wp-piwik');
|
13 |
if (!isset($aryConf['inline']) || isset($aryConf['inline']) != true)
|
14 |
include('header.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/***************************************************************************/ ?>
|
16 |
<div class="table">
|
17 |
<table class="widefat">
|
12 |
$aryConf['title'] = __('Overview', 'wp-piwik');
|
13 |
if (!isset($aryConf['inline']) || isset($aryConf['inline']) != true)
|
14 |
include('header.php');
|
15 |
+
if ($aryConf['params']['date'] == 'last30') {
|
16 |
+
$aryTmp = array(
|
17 |
+
'bounce_count' => 0,
|
18 |
+
'max_actions' => 0,
|
19 |
+
'nb_actions' => 0,
|
20 |
+
'nb_uniq_visitors' => 0,
|
21 |
+
'nb_visits' => 0,
|
22 |
+
'nb_visits_converted' => 0,
|
23 |
+
'sum_visit_length' => 0
|
24 |
+
);
|
25 |
+
foreach ($aryConf['data'] as $aryDay)
|
26 |
+
foreach ($aryDay as $strKey => $strValue)
|
27 |
+
if ($strKey != 'max_actions')
|
28 |
+
$aryTmp[$strKey] += $strValue;
|
29 |
+
elseif ($aryTmp['max_actions'] < $strValue)
|
30 |
+
$aryTmp['max_actions'] = $strValue;
|
31 |
+
$aryConf['data'] = $aryTmp;
|
32 |
+
}
|
33 |
/***************************************************************************/ ?>
|
34 |
<div class="table">
|
35 |
<table class="widefat">
|
dashboard/plugins.php
CHANGED
File without changes
|
dashboard/screens.php
CHANGED
File without changes
|
dashboard/systems.php
CHANGED
File without changes
|
dashboard/visitors.php
CHANGED
File without changes
|
dashboard/websites.php
CHANGED
File without changes
|
gpl-3.0.html
CHANGED
File without changes
|
js/wp-piwik.js
CHANGED
File without changes
|
languages/wp-piwik-de_DE.mo
CHANGED
Binary file
|
languages/wp-piwik-de_DE.po
CHANGED
@@ -233,3 +233,22 @@ msgstr "André Bräkling"
|
|
233 |
#. Author URI of an extension
|
234 |
msgid "http://www.braekling.de"
|
235 |
msgstr "http://www.braekling.de"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
#. Author URI of an extension
|
234 |
msgid "http://www.braekling.de"
|
235 |
msgstr "http://www.braekling.de"
|
236 |
+
|
237 |
+
msgid "last 30 days"
|
238 |
+
msgstr "letzte 30 Tage"
|
239 |
+
|
240 |
+
msgid "today"
|
241 |
+
msgstr "heute"
|
242 |
+
|
243 |
+
msgid "yesterday"
|
244 |
+
msgstr "gestern"
|
245 |
+
|
246 |
+
msgid "No"
|
247 |
+
msgstr "Nein"
|
248 |
+
|
249 |
+
msgid "Yes"
|
250 |
+
msgstr "Ja"
|
251 |
+
|
252 |
+
msgid "Show overview on WordPress dashboard"
|
253 |
+
msgstr "Übersicht auf WordPress Dashboard anzeigen"
|
254 |
+
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Requires at least: 2.7
|
|
6 |
|
7 |
Tested up to: 2.9.1
|
8 |
|
9 |
-
Stable tag: 0.6.
|
10 |
|
11 |
Donate link: http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14
|
12 |
Tags: statistics, stats, analytics, piwik, wpmu
|
@@ -71,6 +71,11 @@ Thank you, guys!
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
74 |
= 0.6.3 =
|
75 |
* Click at a visitor stats day-row to load its details.
|
76 |
* Add stats overview to your WordPress dashboard
|
6 |
|
7 |
Tested up to: 2.9.1
|
8 |
|
9 |
+
Stable tag: 0.6.4
|
10 |
|
11 |
Donate link: http://www.amazon.de/gp/registry/wishlist/111VUJT4HP1RA?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=12&y=14
|
12 |
Tags: statistics, stats, analytics, piwik, wpmu
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 0.6.4 =
|
75 |
+
* Unnecessary debug output removed
|
76 |
+
* German language file update
|
77 |
+
* WordPress dashboard widget: last 30 days view added
|
78 |
+
|
79 |
= 0.6.3 =
|
80 |
* Click at a visitor stats day-row to load its details.
|
81 |
* Add stats overview to your WordPress dashboard
|
screenshot-1.gif
CHANGED
File without changes
|
screenshot-2.gif
CHANGED
File without changes
|
wp-piwik.php
CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://www.braekling.de/wp-piwik-wpmu-piwik-wordpress/
|
|
6 |
|
7 |
Description: Adds Piwik stats to your dashboard menu and Piwik code to your wordpress footer.
|
8 |
|
9 |
-
Version: 0.6.
|
10 |
Author: André Bräkling
|
11 |
Author URI: http://www.braekling.de
|
12 |
|
@@ -75,7 +75,6 @@ class wp_piwik {
|
|
75 |
get_currentuserinfo();
|
76 |
$bolDisplay = true;
|
77 |
if (!empty($current_user->roles)) {
|
78 |
-
echo 'HR3';
|
79 |
$aryFilter = (self::$bolWPMU?get_site_option('wpmu-piwik_filter'):get_option('wp-piwik_filter'));
|
80 |
foreach ($current_user->roles as $strRole)
|
81 |
if (isset($aryFilter[$strRole]) && $aryFilter[$strRole])
|
@@ -134,19 +133,31 @@ class wp_piwik {
|
|
134 |
|
135 |
function extend_wp_dashboard_setup() {
|
136 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
wp_add_dashboard_widget(
|
138 |
'wp-piwik_dashboard_widget',
|
139 |
-
|
140 |
array (&$this, 'add_wp_dashboard_widget')
|
141 |
);
|
142 |
}
|
143 |
|
144 |
function add_wp_dashboard_widget() {
|
145 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
|
|
|
|
|
|
|
|
|
|
146 |
$arySetup = array(
|
147 |
'params' => array(
|
148 |
'period' => 'day',
|
149 |
-
'date' =>
|
150 |
),
|
151 |
'inline' => true
|
152 |
);
|
@@ -427,7 +438,8 @@ class wp_piwik {
|
|
427 |
, 'wp-piwik'
|
428 |
); ?>
|
429 |
<?php _e(
|
430 |
-
'<strong>Important note:</strong> If you do not host this blog on your own, your site admin is able to get your auth token from the database. So he is able to access your statistics. You should never use an auth token with more than simple view access!'
|
|
|
431 |
);
|
432 |
?>
|
433 |
</span></td></tr>
|
@@ -476,9 +488,10 @@ class wp_piwik {
|
|
476 |
'</span></td></tr>';
|
477 |
echo '<tr><td>'.__('Show overview on WordPress dashboard', 'wp-piwik').':</td><td>'.
|
478 |
'<select name="wp-piwik_dbwidget">'.
|
479 |
-
'<option value="0"'.($intDashboardWidget == 0?' selected=""':'').'>No
|
480 |
-
'<option value="1"'.($intDashboardWidget == 1?' selected=""':'').'>Yes (yesterday).</option>'.
|
481 |
-
'<option value="2"'.($intDashboardWidget == 2?' selected=""':'').'>Yes (today).</option>'.
|
|
|
482 |
'</select></td></tr>';
|
483 |
global $wp_roles;
|
484 |
echo '<tr><td>'.__('Tracking filter', 'wp-piwik').':</td><td>';
|
6 |
|
7 |
Description: Adds Piwik stats to your dashboard menu and Piwik code to your wordpress footer.
|
8 |
|
9 |
+
Version: 0.6.4
|
10 |
Author: André Bräkling
|
11 |
Author URI: http://www.braekling.de
|
12 |
|
75 |
get_currentuserinfo();
|
76 |
$bolDisplay = true;
|
77 |
if (!empty($current_user->roles)) {
|
|
|
78 |
$aryFilter = (self::$bolWPMU?get_site_option('wpmu-piwik_filter'):get_option('wp-piwik_filter'));
|
79 |
foreach ($current_user->roles as $strRole)
|
80 |
if (isset($aryFilter[$strRole]) && $aryFilter[$strRole])
|
133 |
|
134 |
function extend_wp_dashboard_setup() {
|
135 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
136 |
+
$arySub = array(
|
137 |
+
1 => __('yesterday', 'wp-piwik'),
|
138 |
+
2 => __('today', 'wp-piwik'),
|
139 |
+
3 => __('last 30 days', 'wp-piwik')
|
140 |
+
);
|
141 |
+
$strTitle = __('WP-Piwik', 'wp-piwik').' - '.$arySub[$intDashboardWidget];
|
142 |
+
|
143 |
wp_add_dashboard_widget(
|
144 |
'wp-piwik_dashboard_widget',
|
145 |
+
$strTitle,
|
146 |
array (&$this, 'add_wp_dashboard_widget')
|
147 |
);
|
148 |
}
|
149 |
|
150 |
function add_wp_dashboard_widget() {
|
151 |
$intDashboardWidget = get_option('wp-piwik_dbwidget');
|
152 |
+
$aryDate = array (
|
153 |
+
1 => 'yesterday',
|
154 |
+
2 => 'today',
|
155 |
+
3 => 'last30'
|
156 |
+
);
|
157 |
$arySetup = array(
|
158 |
'params' => array(
|
159 |
'period' => 'day',
|
160 |
+
'date' => $aryDate[$intDashboardWidget]
|
161 |
),
|
162 |
'inline' => true
|
163 |
);
|
438 |
, 'wp-piwik'
|
439 |
); ?>
|
440 |
<?php _e(
|
441 |
+
'<strong>Important note:</strong> If you do not host this blog on your own, your site admin is able to get your auth token from the database. So he is able to access your statistics. You should never use an auth token with more than simple view access!',
|
442 |
+
'wp-piwik'
|
443 |
);
|
444 |
?>
|
445 |
</span></td></tr>
|
488 |
'</span></td></tr>';
|
489 |
echo '<tr><td>'.__('Show overview on WordPress dashboard', 'wp-piwik').':</td><td>'.
|
490 |
'<select name="wp-piwik_dbwidget">'.
|
491 |
+
'<option value="0"'.($intDashboardWidget == 0?' selected=""':'').'>'.__('No', 'wp-piwik').'</option>'.
|
492 |
+
'<option value="1"'.($intDashboardWidget == 1?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('yesterday', 'wp-piwik').').</option>'.
|
493 |
+
'<option value="2"'.($intDashboardWidget == 2?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('today', 'wp-piwik').').</option>'.
|
494 |
+
'<option value="3"'.($intDashboardWidget == 3?' selected=""':'').'>'.__('Yes','wp-piwik').' ('.__('last 30 days','wp-piwik').').</option>'.
|
495 |
'</select></td></tr>';
|
496 |
global $wp_roles;
|
497 |
echo '<tr><td>'.__('Tracking filter', 'wp-piwik').':</td><td>';
|