Google Analytics Dashboard for WP (GADWP) - Version 4.8.1

Version Description

  • Bug Fix: add % suffix to bouncerate item reports
  • Bug Fix: add query string support to frontend item reports
  • Bug Fix: make the main menu translatable
  • Bug Fix: PHP notice while no View is assigned to a new network site
  • Enhancement: French translation updated
  • Enhancement: Romanian translation updated
  • Enhancement: display an admin notice after manual and automatic updates
  • Enhancement: small I18N tweaks and POT file update
  • Enhancement: introducing last 14 days range in items reports
  • Enhancement: introducing One Year and Three Years range for all google analytics reports
  • Enhancement: set the last selected report and date range as default for subsequent requests
Download this release

Release Info

Developer deconf
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 4.8.1
Comparing to
See all releases

Code changes from version 4.8 to 4.8.1

admin/ajax-actions-ui.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author: Alin Marcu
4
+ * Author URI: http://deconf.com
5
+ * License: GPLv2 or later
6
+ * License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
+ */
8
+
9
+ // Exit if accessed directly
10
+ if ( ! defined( 'ABSPATH' ) )
11
+ exit();
12
+
13
+ if ( ! class_exists( 'GADWP_UI_Ajax' ) ) {
14
+
15
+ final class GADWP_UI_Ajax {
16
+
17
+ public function __construct() {
18
+ if ( current_user_can( 'manage_options' ) ) {
19
+ // Admin Widget action
20
+ add_action( 'wp_ajax_gadwp_dismiss_notices', array( $this, 'ajax_dismiss_notices' ) );
21
+ }
22
+ }
23
+
24
+ /**
25
+ * Ajax handler for dismissing Admin notices
26
+ *
27
+ * @return json|int
28
+ */
29
+ public function ajax_dismiss_notices() {
30
+ if ( ! isset( $_REQUEST['gadwp_security_dismiss_notices'] ) || ! wp_verify_nonce( $_REQUEST['gadwp_security_dismiss_notices'], 'gadwp_dismiss_notices' ) ) {
31
+ wp_die( - 30 );
32
+ }
33
+
34
+ if ( !current_user_can( 'manage_options' ) ) {
35
+ wp_die( - 31 );
36
+ }
37
+
38
+ delete_option( 'gadwp_got_updated' );
39
+
40
+ wp_send_json( 1 );
41
+ }
42
+ }
43
+ }
admin/js/item-reports.js CHANGED
@@ -67,15 +67,50 @@ function () {
67
  jQuery.fn.extend( {
68
  gadwpItemReport : function ( slug, item_id ) {
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  var template = {
71
 
72
  data : '<div id="gadwp-container' + slug + '"><select id="gadwp-sel-period' + slug + '"></select> <select id="gadwp-sel-report' + slug + '"></select><div id="gadwp-progressbar' + slug + '"></div><div id="gadwp-status' + slug + '"></div><div id="gadwp-reports' + slug + '"></div><div style="text-align:right;width:100%;font-size:0.8em;clear:both;margin-right:5px;margin-top:10px;">' + gadwp_item_data.i18n[ 14 ] + ' <a href="https://deconf.com/google-analytics-dashboard-wordpress/?utm_source=gadwp_report&utm_medium=link&utm_content=back_report&utm_campaign=gadwp" rel="nofollow" style="text-decoration:none;font-size:1em;">GADWP</a>&nbsp;</div></div>',
73
 
74
  addOptions : function ( id, list ) {
75
-
76
  var output = [];
 
77
  jQuery.each( list, function ( key, value ) {
78
- if ( key == '30daysAgo' || key == 'sessions' ) {
 
 
 
 
 
 
 
 
79
  output.push( '<option value="' + key + '" selected="selected">' + value + '</option>' );
80
  } else {
81
  output.push( '<option value="' + key + '">' + value + '</option>' );
@@ -139,7 +174,7 @@ jQuery.fn.extend( {
139
  var options = {
140
  allowCollapse : true,
141
  allowHtml : true,
142
- height: '100%'
143
  };
144
 
145
  var chart = new google.visualization.OrgChart( document.getElementById( 'gadwp-trafficchannels' + slug ) );
@@ -252,10 +287,19 @@ jQuery.fn.extend( {
252
  chart.draw( data, options );
253
  },
254
 
255
- drawmainchart : function ( gadwp_mainchart ) {
256
 
257
  var data = google.visualization.arrayToDataTable( gadwp_mainchart );
258
 
 
 
 
 
 
 
 
 
 
259
  var options = {
260
  legend : {
261
  position : 'none'
@@ -339,18 +383,29 @@ jQuery.fn.extend( {
339
  from = '90daysAgo';
340
  to = 'yesterday';
341
  break;
 
 
 
 
 
 
 
 
342
  default:
343
  from = '30daysAgo';
344
  to = 'yesterday';
345
  break;
346
  }
347
 
 
 
 
348
  var data = {
349
  action : 'gadwp_backend_item_reports',
350
  gadwp_security_backend_item_reports : gadwp_item_data.security,
351
  from : from,
352
  to : to,
353
- filter : item_id
354
  }
355
 
356
  if ( jQuery.inArray( query, [ 'referrers', 'contentpages', 'searches' ] ) > -1 ) {
@@ -498,7 +553,11 @@ jQuery.fn.extend( {
498
  if ( !jQuery.isNumeric( response[ 0 ] ) ) {
499
  if ( jQuery.isArray( response[ 0 ] ) ) {
500
  reports.mainchart = response[ 0 ];
501
- google.setOnLoadCallback( reports.drawmainchart( reports.mainchart ) );
 
 
 
 
502
  } else {
503
  reports.throwDebug( response[ 0 ] );
504
  }
67
  jQuery.fn.extend( {
68
  gadwpItemReport : function ( slug, item_id ) {
69
 
70
+ var tools = {
71
+ set_cookie : function ( name, value ) {
72
+ var date_item = new Date();
73
+ date_item.setTime( date_item.getTime() + ( 24 * 60 * 60 * 1000 * 365 * 10 ) );
74
+ var expires = "expires=" + date_item.toUTCString();
75
+ document.cookie = "gadwp_ir_" + name + "=" + value + "; " + expires + "; path=/";
76
+ },
77
+ get_cookie : function ( name ) {
78
+ var name = "gadwp_ir_" + name + "=";
79
+ var cookies_array = document.cookie.split( ';' );
80
+ for ( var i = 0; i < cookies_array.length; i++ ) {
81
+ var cookie = cookies_array[ i ];
82
+ while ( cookie.charAt( 0 ) == ' ' )
83
+ cookie = cookie.substring( 1 );
84
+ if ( cookie.indexOf( name ) == 0 )
85
+ return cookie.substring( name.length, cookie.length );
86
+ }
87
+ return false;
88
+ },
89
+ escape : function ( str ) {
90
+ var div = document.createElement( 'div' );
91
+ div.appendChild( document.createTextNode( str ) );
92
+ return div.innerHTML;
93
+ },
94
+ }
95
+
96
  var template = {
97
 
98
  data : '<div id="gadwp-container' + slug + '"><select id="gadwp-sel-period' + slug + '"></select> <select id="gadwp-sel-report' + slug + '"></select><div id="gadwp-progressbar' + slug + '"></div><div id="gadwp-status' + slug + '"></div><div id="gadwp-reports' + slug + '"></div><div style="text-align:right;width:100%;font-size:0.8em;clear:both;margin-right:5px;margin-top:10px;">' + gadwp_item_data.i18n[ 14 ] + ' <a href="https://deconf.com/google-analytics-dashboard-wordpress/?utm_source=gadwp_report&utm_medium=link&utm_content=back_report&utm_campaign=gadwp" rel="nofollow" style="text-decoration:none;font-size:1em;">GADWP</a>&nbsp;</div></div>',
99
 
100
  addOptions : function ( id, list ) {
101
+ var default_metric, default_dimension;
102
  var output = [];
103
+
104
  jQuery.each( list, function ( key, value ) {
105
+ if ( !tools.get_cookie( 'default_metric' ) || !tools.get_cookie( 'default_dimension' ) ) {
106
+ default_metric = 'uniquePageviews';
107
+ default_dimension = '30daysAgo';
108
+ } else {
109
+ default_metric = tools.get_cookie( 'default_metric' );
110
+ default_dimension = tools.get_cookie( 'default_dimension' );
111
+ }
112
+
113
+ if ( key == default_metric || key == default_dimension ) {
114
  output.push( '<option value="' + key + '" selected="selected">' + value + '</option>' );
115
  } else {
116
  output.push( '<option value="' + key + '">' + value + '</option>' );
174
  var options = {
175
  allowCollapse : true,
176
  allowHtml : true,
177
+ height : '100%'
178
  };
179
 
180
  var chart = new google.visualization.OrgChart( document.getElementById( 'gadwp-trafficchannels' + slug ) );
287
  chart.draw( data, options );
288
  },
289
 
290
+ drawmainchart : function ( gadwp_mainchart, format ) {
291
 
292
  var data = google.visualization.arrayToDataTable( gadwp_mainchart );
293
 
294
+ if ( format ) {
295
+ var formatter = new google.visualization.NumberFormat( {
296
+ suffix : '%',
297
+ fractionDigits : 2
298
+ } );
299
+
300
+ formatter.format( data, 1 );
301
+ }
302
+
303
  var options = {
304
  legend : {
305
  position : 'none'
383
  from = '90daysAgo';
384
  to = 'yesterday';
385
  break;
386
+ case '365daysAgo':
387
+ from = '365daysAgo';
388
+ to = 'yesterday';
389
+ break;
390
+ case '1095daysAgo':
391
+ from = '1095daysAgo';
392
+ to = 'yesterday';
393
+ break;
394
  default:
395
  from = '30daysAgo';
396
  to = 'yesterday';
397
  break;
398
  }
399
 
400
+ tools.set_cookie( 'default_metric', query );
401
+ tools.set_cookie( 'default_dimension', period );
402
+
403
  var data = {
404
  action : 'gadwp_backend_item_reports',
405
  gadwp_security_backend_item_reports : gadwp_item_data.security,
406
  from : from,
407
  to : to,
408
+ filter : item_id,
409
  }
410
 
411
  if ( jQuery.inArray( query, [ 'referrers', 'contentpages', 'searches' ] ) > -1 ) {
553
  if ( !jQuery.isNumeric( response[ 0 ] ) ) {
554
  if ( jQuery.isArray( response[ 0 ] ) ) {
555
  reports.mainchart = response[ 0 ];
556
+ if ( query == 'visitBounceRate' ) {
557
+ google.setOnLoadCallback( reports.drawmainchart( reports.mainchart, true ) );
558
+ } else {
559
+ google.setOnLoadCallback( reports.drawmainchart( reports.mainchart, false ) );
560
+ }
561
  } else {
562
  reports.throwDebug( response[ 0 ] );
563
  }
admin/js/ui.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ jQuery( document ).ready( function () {
4
+
5
+ var gadwp_ui = {
6
+ action : 'gadwp_dismiss_notices',
7
+ gadwp_security_dismiss_notices : gadwp_ui_data.security,
8
+ }
9
+
10
+ jQuery( "#gadwp-notice .notice-dismiss" ).click( function () {
11
+ jQuery.post( gadwp_ui_data.ajaxurl, gadwp_ui, function ( response ) {
12
+ return true;
13
+ } );
14
+ } );
15
+
16
+ if (gadwp_ui_data.ed_bubble != ''){
17
+ jQuery('#toplevel_page_gadash_settings li > a[href*="page=gadash_errors_debugging"]').append('&nbsp;<span class="awaiting-mod count-1"><span class="pending-count" style="padding:0 7px;">'+gadwp_ui_data.ed_bubble+'</span></span>');
18
+ }
19
+
20
+ } );
admin/settings.php CHANGED
@@ -1259,6 +1259,8 @@ final class GADWP_Settings {
1259
  }
1260
 
1261
  public static function output_sidebar() {
 
 
1262
  $gadwp = GADWP();
1263
  ?>
1264
  </div>
@@ -1350,5 +1352,10 @@ final class GADWP_Settings {
1350
  </div>
1351
  </div>
1352
  </div>
1353
- <?php }
 
 
 
 
 
1354
  }
1259
  }
1260
 
1261
  public static function output_sidebar() {
1262
+ global $wp_version;
1263
+
1264
  $gadwp = GADWP();
1265
  ?>
1266
  </div>
1352
  </div>
1353
  </div>
1354
  </div>
1355
+ <?php
1356
+ //Dismiss the admin update notice
1357
+ if ( version_compare( $wp_version, '4.2', '<' ) && current_user_can('manage_options') ) {
1358
+ delete_option('gadwp_got_updated');
1359
+ }
1360
+ }
1361
  }
admin/setup.php CHANGED
@@ -27,24 +27,8 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
27
  add_action( 'network_admin_menu', array( $this, 'network_menu' ) );
28
  // Settings link
29
  add_filter( "plugin_action_links_" . plugin_basename( GADWP_DIR . 'gadwp.php' ), array( $this, 'settings_link' ) );
30
- // Error bubble
31
- add_action( 'admin_print_scripts', array( $this, 'draw_error_bubble' ), 10000 );
32
- }
33
-
34
- /**
35
- * Error bubble for Errors & Debug
36
- */
37
- public function draw_error_bubble() {
38
- $bubble_msg = '!';
39
- if ( get_transient( 'ga_dash_gapi_errors' ) ) {
40
- ?>
41
- <script type="text/javascript">
42
- jQuery(document).ready(function() {
43
- jQuery('#toplevel_page_gadash_settings li > a[href*="page=gadash_errors_debugging"]').append('&nbsp;<span class="awaiting-mod count-1"><span class="pending-count" style="padding:0 7px;"><?php echo $bubble_msg ?></span></span>');
44
- });
45
- </script>
46
- <?php
47
- }
48
  }
49
 
50
  /**
@@ -54,7 +38,7 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
54
  global $wp_version;
55
  if ( current_user_can( 'manage_options' ) ) {
56
  include ( GADWP_DIR . 'admin/settings.php' );
57
- add_menu_page( __( "Google Analytics", 'ga-dash' ), 'Google Analytics', 'manage_options', 'gadash_settings', array( 'GADWP_Settings', 'general_settings' ), version_compare( $wp_version, '3.8.0', '>=' ) ? 'dashicons-chart-area' : GADWP_URL . 'admin/images/gadash-icon.png' );
58
  add_submenu_page( 'gadash_settings', __( "General Settings", 'ga-dash' ), __( "General Settings", 'ga-dash' ), 'manage_options', 'gadash_settings', array( 'GADWP_Settings', 'general_settings' ) );
59
  add_submenu_page( 'gadash_settings', __( "Backend Settings", 'ga-dash' ), __( "Backend Settings", 'ga-dash' ), 'manage_options', 'gadash_backend_settings', array( 'GADWP_Settings', 'backend_settings' ) );
60
  add_submenu_page( 'gadash_settings', __( "Frontend Settings", 'ga-dash' ), __( "Frontend Settings", 'ga-dash' ), 'manage_options', 'gadash_frontend_settings', array( 'GADWP_Settings', 'frontend_settings' ) );
@@ -83,18 +67,46 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
83
  * $hook
84
  */
85
  public function load_styles_scripts( $hook ) {
 
 
 
 
 
 
 
86
 
87
  /*
88
  * GADWP main stylesheet
89
  */
90
  wp_enqueue_style( 'gadwp', GADWP_URL . 'admin/css/gadwp.css', null, GADWP_CURRENT_VERSION );
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  /*
93
  * Dashboard Widgets Styles & Scripts
94
  */
95
  $widgets_hooks = array( 'index.php' );
96
 
97
- if ( in_array( $hook, $widgets_hooks ) ) {
98
  if ( GADWP_Tools::check_roles( $this->gadwp->config->options['ga_dash_access_back'] ) && $this->gadwp->config->options['dashboard_widget'] ) {
99
 
100
  wp_enqueue_style( 'gadwp-nprogress', GADWP_URL . 'tools/nprogress/nprogress.css', null, GADWP_CURRENT_VERSION );
@@ -146,9 +158,13 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
146
  'dateList' => array(
147
  'today' => __( "Today", 'ga-dash' ),
148
  'yesterday' => __( "Yesterday", 'ga-dash' ),
149
- '7daysAgo' => __( "Last 7 Days", 'ga-dash' ),
150
- '30daysAgo' => __( "Last 30 Days", 'ga-dash' ),
151
- '90daysAgo' => __( "Last 90 Days", 'ga-dash' ) ),
 
 
 
 
152
  'reportList' => array(
153
  'uniquePageviews' => __( "Unique Views", 'ga-dash' ),
154
  'users' => __( "Users", 'ga-dash' ),
@@ -158,7 +174,8 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
158
  'locations' => __( "Location", 'ga-dash' ),
159
  'referrers' => __( "Referrers", 'ga-dash' ),
160
  'searches' => __( "Searches", 'ga-dash' ),
161
- 'trafficdetails' => __( "Traffic Details", 'ga-dash' ) ),
 
162
  'i18n' => array(
163
  __( "A JavaScript Error is blocking plugin resources!", 'ga-dash' ),
164
  __( "Traffic Mediums", 'ga-dash' ),
@@ -174,9 +191,11 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
174
  __( "Invalid response, more details in JavaScript Console (F12).", 'ga-dash' ),
175
  __( "Not enough data collected", 'ga-dash' ),
176
  __( "This report is unavailable", 'ga-dash' ),
177
- __( "report generated by", 'ga-dash' ) ),
 
178
  'colorVariations' => GADWP_Tools::variations( $this->gadwp->config->options['ga_dash_style'] ),
179
- 'region' => $region )
 
180
  );
181
  /* @formatter:on */
182
  }
@@ -185,9 +204,9 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
185
  /*
186
  * Settings Styles & Scripts
187
  */
188
- $settings_hooks = array( 'toplevel_page_gadash_settings', 'google-analytics_page_gadash_backend_settings', 'google-analytics_page_gadash_frontend_settings', 'google-analytics_page_gadash_tracking_settings', 'google-analytics_page_gadash_errors_debugging' );
189
 
190
- if ( in_array( $hook, $settings_hooks ) ) {
191
  wp_enqueue_style( 'wp-color-picker' );
192
  wp_enqueue_script( 'wp-color-picker' );
193
  wp_enqueue_script( 'wp-color-picker-script-handle', plugins_url( 'js/wp-color-picker-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
@@ -207,5 +226,18 @@ if ( ! class_exists( 'GADWP_Backend_Setup' ) ) {
207
  array_unshift( $links, $settings_link );
208
  return $links;
209
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  }
211
  }
27
  add_action( 'network_admin_menu', array( $this, 'network_menu' ) );
28
  // Settings link
29
  add_filter( "plugin_action_links_" . plugin_basename( GADWP_DIR . 'gadwp.php' ), array( $this, 'settings_link' ) );
30
+ // Updated admin notice
31
+ add_action( 'admin_notices', array( $this, 'admin_notice' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  }
33
 
34
  /**
38
  global $wp_version;
39
  if ( current_user_can( 'manage_options' ) ) {
40
  include ( GADWP_DIR . 'admin/settings.php' );
41
+ add_menu_page( __( "Google Analytics", 'ga-dash' ), __( "Google Analytics", 'ga-dash' ), 'manage_options', 'gadash_settings', array( 'GADWP_Settings', 'general_settings' ), version_compare( $wp_version, '3.8.0', '>=' ) ? 'dashicons-chart-area' : GADWP_URL . 'admin/images/gadash-icon.png' );
42
  add_submenu_page( 'gadash_settings', __( "General Settings", 'ga-dash' ), __( "General Settings", 'ga-dash' ), 'manage_options', 'gadash_settings', array( 'GADWP_Settings', 'general_settings' ) );
43
  add_submenu_page( 'gadash_settings', __( "Backend Settings", 'ga-dash' ), __( "Backend Settings", 'ga-dash' ), 'manage_options', 'gadash_backend_settings', array( 'GADWP_Settings', 'backend_settings' ) );
44
  add_submenu_page( 'gadash_settings', __( "Frontend Settings", 'ga-dash' ), __( "Frontend Settings", 'ga-dash' ), 'manage_options', 'gadash_frontend_settings', array( 'GADWP_Settings', 'frontend_settings' ) );
67
  * $hook
68
  */
69
  public function load_styles_scripts( $hook ) {
70
+ $new_hook = explode( '_page_', $hook );
71
+
72
+ if ( isset( $new_hook[1] ) ) {
73
+ $new_hook = '_page_' . $new_hook[1];
74
+ } else {
75
+ $new_hook = $hook;
76
+ }
77
 
78
  /*
79
  * GADWP main stylesheet
80
  */
81
  wp_enqueue_style( 'gadwp', GADWP_URL . 'admin/css/gadwp.css', null, GADWP_CURRENT_VERSION );
82
 
83
+ /*
84
+ * GADWP UI
85
+ */
86
+
87
+ if ( get_transient( 'ga_dash_gapi_errors' ) ) {
88
+ $ed_bubble = '!';
89
+ }else{
90
+ $ed_bubble = '';
91
+ }
92
+
93
+ wp_enqueue_script( 'gadwp_backend_ui', plugins_url( 'js/ui.js', __FILE__ ), array( 'jquery' ), GADWP_CURRENT_VERSION, true );
94
+
95
+ /* @formatter:off */
96
+ wp_localize_script( 'gadwp_backend_ui', 'gadwp_ui_data', array(
97
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
98
+ 'security' => wp_create_nonce( 'gadwp_dismiss_notices' ),
99
+ 'ed_bubble' => $ed_bubble,
100
+ )
101
+ );
102
+ /* @formatter:on */
103
+
104
  /*
105
  * Dashboard Widgets Styles & Scripts
106
  */
107
  $widgets_hooks = array( 'index.php' );
108
 
109
+ if ( in_array( $new_hook, $widgets_hooks ) ) {
110
  if ( GADWP_Tools::check_roles( $this->gadwp->config->options['ga_dash_access_back'] ) && $this->gadwp->config->options['dashboard_widget'] ) {
111
 
112
  wp_enqueue_style( 'gadwp-nprogress', GADWP_URL . 'tools/nprogress/nprogress.css', null, GADWP_CURRENT_VERSION );
158
  'dateList' => array(
159
  'today' => __( "Today", 'ga-dash' ),
160
  'yesterday' => __( "Yesterday", 'ga-dash' ),
161
+ '7daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 7 ),
162
+ '14daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 14 ),
163
+ '30daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 30 ),
164
+ '90daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 90 ),
165
+ '365daysAgo' => sprintf( _n( "%s Year", "%s Years", 1, 'ga-dash' ), __('One', 'ga-dash') ),
166
+ '1095daysAgo' => sprintf( _n( "%s Year", "%s Years", 3, 'ga-dash' ), __('Three', 'ga-dash') ),
167
+ ),
168
  'reportList' => array(
169
  'uniquePageviews' => __( "Unique Views", 'ga-dash' ),
170
  'users' => __( "Users", 'ga-dash' ),
174
  'locations' => __( "Location", 'ga-dash' ),
175
  'referrers' => __( "Referrers", 'ga-dash' ),
176
  'searches' => __( "Searches", 'ga-dash' ),
177
+ 'trafficdetails' => __( "Traffic Details", 'ga-dash' )
178
+ ),
179
  'i18n' => array(
180
  __( "A JavaScript Error is blocking plugin resources!", 'ga-dash' ),
181
  __( "Traffic Mediums", 'ga-dash' ),
191
  __( "Invalid response, more details in JavaScript Console (F12).", 'ga-dash' ),
192
  __( "Not enough data collected", 'ga-dash' ),
193
  __( "This report is unavailable", 'ga-dash' ),
194
+ __( "report generated by", 'ga-dash' ),
195
+ ),
196
  'colorVariations' => GADWP_Tools::variations( $this->gadwp->config->options['ga_dash_style'] ),
197
+ 'region' => $region,
198
+ )
199
  );
200
  /* @formatter:on */
201
  }
204
  /*
205
  * Settings Styles & Scripts
206
  */
207
+ $settings_hooks = array( '_page_gadash_settings', '_page_gadash_backend_settings', '_page_gadash_frontend_settings', '_page_gadash_tracking_settings', '_page_gadash_errors_debugging' );
208
 
209
+ if ( in_array( $new_hook, $settings_hooks ) ) {
210
  wp_enqueue_style( 'wp-color-picker' );
211
  wp_enqueue_script( 'wp-color-picker' );
212
  wp_enqueue_script( 'wp-color-picker-script-handle', plugins_url( 'js/wp-color-picker-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
226
  array_unshift( $links, $settings_link );
227
  return $links;
228
  }
229
+
230
+ /**
231
+ * Add an admin notice after a manual or atuomatic update
232
+ */
233
+ function admin_notice() {
234
+ if ( get_option( 'gadwp_got_updated' ) ) :
235
+ ?>
236
+ <div id="gadwp-notice" class="notice is-dismissible">
237
+ <p><?php echo sprintf( __('Google Analytics Dashboard for WP has been updated to version %s.', 'ga-dash' ), GADWP_CURRENT_VERSION).' '.sprintf(__('For details, check out %1$s and %2$s.'),sprintf(' <a href="https://deconf.com/google-analytics-dashboard-wordpress/?utm_source=gadwp_notice&utm_medium=link&utm_content=release_notice&utm_campaign=gadwp">%s</a> ', __('the documentation page', 'ga-dash') ), sprintf(' <a href="%1$s">%2$s</a>', esc_url( get_admin_url( null, 'admin.php?page=gadash_settings' ) ), __('the plugin&#39;s settings page', 'ga-dash') )); ?></p>
238
+ </div>
239
+ <?php
240
+ endif;
241
+ }
242
  }
243
  }
admin/widgets.php CHANGED
@@ -19,16 +19,12 @@ if ( ! class_exists( 'GADWP_Backend_Widgets' ) ) {
19
  public function __construct() {
20
  $this->gadwp = GADWP();
21
  if ( GADWP_Tools::check_roles( $this->gadwp->config->options['ga_dash_access_back'] ) && ( 1 == $this->gadwp->config->options['dashboard_widget'] ) ) {
22
- add_action( 'wp_dashboard_setup', array(
23
- $this,
24
- 'add_widget' ) );
25
  }
26
  }
27
 
28
  public function add_widget() {
29
- wp_add_dashboard_widget( 'gadash-widget', __( "Google Analytics Dashboard", 'ga-dash' ), array(
30
- $this,
31
- 'dashboard_widget' ), $control_callback = null );
32
  }
33
 
34
  public function dashboard_widget() {
@@ -101,31 +97,35 @@ if ( ! class_exists( 'GADWP_Backend_Widgets' ) ) {
101
  }
102
  if ( isset( $_REQUEST['query'] ) ) {
103
  $query = $_REQUEST['query'];
104
- $this->gadwp->config->options['ga_dash_default_metric'] = $query;
105
  $this->gadwp->config->set_plugin_options();
106
  } else {
107
- $query = isset( $this->gadwp->config->options['ga_dash_default_metric'] ) ? $this->gadwp->config->options['ga_dash_default_metric'] : 'sessions';
 
108
  }
109
  if ( isset( $_REQUEST['period'] ) ) {
110
  $period = $_REQUEST['period'];
111
- $this->gadwp->config->options['ga_dash_default_dimension'] = $period;
112
  $this->gadwp->config->set_plugin_options();
113
  } else {
114
- $period = isset( $this->gadwp->config->options['ga_dash_default_dimension'] ) ? $this->gadwp->config->options['ga_dash_default_dimension'] : '30daysAgo';
 
115
  }
116
  ?>
117
-
118
- <select id="ga_dash_period" name="period" onchange="this.form.submit()">
119
  <option value="realtime" <?php selected ( "realtime", $period, true ); ?>><?php _e("Real-Time",'ga-dash'); ?></option>
120
  <option value="today" <?php selected ( "today", $period, true ); ?>><?php _e("Today",'ga-dash'); ?></option>
121
  <option value="yesterday" <?php selected ( "yesterday", $period, true ); ?>><?php _e("Yesterday",'ga-dash'); ?></option>
122
- <option value="7daysAgo" <?php selected ( "7daysAgo", $period, true ); ?>><?php _e("Last 7 Days",'ga-dash'); ?></option>
123
- <option value="14daysAgo" <?php selected ( "14daysAgo", $period, true ); ?>><?php _e("Last 14 Days",'ga-dash'); ?></option>
124
- <option value="30daysAgo" <?php selected ( "30daysAgo", $period, true ); ?>><?php _e("Last 30 Days",'ga-dash'); ?></option>
125
- <option value="90daysAgo" <?php selected ( "90daysAgo", $period, true ); ?>><?php _e("Last 90 Days",'ga-dash'); ?></option>
 
 
126
  </select>
 
127
  <?php if ($period != 'realtime') {?>
128
- <select id="ga_dash_query" name="query" onchange="this.form.submit()">
129
  <option value="sessions" <?php selected ( "sessions", $query, true ); ?>><?php _e("Sessions",'ga-dash'); ?></option>
130
  <option value="users" <?php selected ( "users", $query, true ); ?>><?php _e("Users",'ga-dash'); ?></option>
131
  <option value="organicSearches" <?php selected ( "organicSearches", $query, true ); ?>><?php _e("Organic",'ga-dash'); ?></option>
@@ -162,15 +162,25 @@ if ( ! class_exists( 'GADWP_Backend_Widgets' ) ) {
162
  $to = 'yesterday';
163
  $haxis = 3;
164
  break;
165
- case '30daysAgo' :
166
- $from = '30daysAgo';
 
 
 
 
 
 
 
 
 
 
167
  $to = 'yesterday';
168
  $haxis = 5;
169
  break;
170
  default :
171
- $from = '90daysAgo';
172
  $to = 'yesterday';
173
- $haxis = 16;
174
  break;
175
  }
176
  if ( $query == 'visitBounceRate' ) {
19
  public function __construct() {
20
  $this->gadwp = GADWP();
21
  if ( GADWP_Tools::check_roles( $this->gadwp->config->options['ga_dash_access_back'] ) && ( 1 == $this->gadwp->config->options['dashboard_widget'] ) ) {
22
+ add_action( 'wp_dashboard_setup', array( $this, 'add_widget' ) );
 
 
23
  }
24
  }
25
 
26
  public function add_widget() {
27
+ wp_add_dashboard_widget( 'gadash-widget', __( "Google Analytics Dashboard", 'ga-dash' ), array( $this, 'dashboard_widget' ), $control_callback = null );
 
 
28
  }
29
 
30
  public function dashboard_widget() {
97
  }
98
  if ( isset( $_REQUEST['query'] ) ) {
99
  $query = $_REQUEST['query'];
100
+ GADWP_Tools::set_cookie( 'default_metric', $query );
101
  $this->gadwp->config->set_plugin_options();
102
  } else {
103
+ $default_metric = GADWP_Tools::get_cookie( 'default_metric' );
104
+ $query = $default_metric ? esc_html( $default_metric ) : 'sessions';
105
  }
106
  if ( isset( $_REQUEST['period'] ) ) {
107
  $period = $_REQUEST['period'];
108
+ GADWP_Tools::set_cookie( 'default_dimension', $period );
109
  $this->gadwp->config->set_plugin_options();
110
  } else {
111
+ $default_dimension = GADWP_Tools::get_cookie( 'default_dimension' );
112
+ $period = $default_dimension ? esc_html( $default_dimension ) : '30daysAgo';
113
  }
114
  ?>
115
+ <select id="ga_dash_period" name="period" onchange="this.form.submit()">
 
116
  <option value="realtime" <?php selected ( "realtime", $period, true ); ?>><?php _e("Real-Time",'ga-dash'); ?></option>
117
  <option value="today" <?php selected ( "today", $period, true ); ?>><?php _e("Today",'ga-dash'); ?></option>
118
  <option value="yesterday" <?php selected ( "yesterday", $period, true ); ?>><?php _e("Yesterday",'ga-dash'); ?></option>
119
+ <option value="7daysAgo" <?php selected ( "7daysAgo", $period, true ); ?>><?php printf( __( "Last %d Days", 'ga-dash' ), 7 ); ?></option>
120
+ <option value="14daysAgo" <?php selected ( "14daysAgo", $period, true ); ?>><?php printf( __( "Last %d Days", 'ga-dash' ), 14 ); ?></option>
121
+ <option value="30daysAgo" <?php selected ( "30daysAgo", $period, true ); ?>><?php printf( __( "Last %d Days", 'ga-dash' ), 30 ); ?></option>
122
+ <option value="90daysAgo" <?php selected ( "90daysAgo", $period, true ); ?>><?php printf( __( "Last %d Days", 'ga-dash' ), 90 ); ?></option>
123
+ <option value="365daysAgo" <?php selected ( "365daysAgo", $period, true ); ?>><?php printf( _n( "%s Year", "%s Years", 1, 'ga-dash' ), __('One', 'ga-dash') ); ?></option>
124
+ <option value="1095daysAgo" <?php selected ( "1095daysAgo", $period, true ); ?>><?php printf( _n( "%s Year", "%s Years", 3, 'ga-dash' ), __('Three', 'ga-dash') ); ?></option>
125
  </select>
126
+
127
  <?php if ($period != 'realtime') {?>
128
+ <select id="ga_dash_query" name="query" onchange="this.form.submit()">
129
  <option value="sessions" <?php selected ( "sessions", $query, true ); ?>><?php _e("Sessions",'ga-dash'); ?></option>
130
  <option value="users" <?php selected ( "users", $query, true ); ?>><?php _e("Users",'ga-dash'); ?></option>
131
  <option value="organicSearches" <?php selected ( "organicSearches", $query, true ); ?>><?php _e("Organic",'ga-dash'); ?></option>
162
  $to = 'yesterday';
163
  $haxis = 3;
164
  break;
165
+ case '90daysAgo' :
166
+ $from = '90daysAgo';
167
+ $to = 'yesterday';
168
+ $haxis = 16;
169
+ break;
170
+ case '365daysAgo' :
171
+ $from = '365daysAgo';
172
+ $to = 'yesterday';
173
+ $haxis = 5;
174
+ break;
175
+ case '1095daysAgo' :
176
+ $from = '1095daysAgo';
177
  $to = 'yesterday';
178
  $haxis = 5;
179
  break;
180
  default :
181
+ $from = '30daysAgo';
182
  $to = 'yesterday';
183
+ $haxis = 5;
184
  break;
185
  }
186
  if ( $query == 'visitBounceRate' ) {
config.php CHANGED
@@ -185,7 +185,7 @@ if (! class_exists('GADWP_Config')) {
185
  $network_options = (array) json_decode($get_network_options);
186
  if (isset($network_options['ga_dash_network']) && ($network_options['ga_dash_network'])) {
187
  $network_options = (array) json_decode($get_network_options);
188
- if (! is_network_admin() && ! empty($network_options['ga_dash_profile_list'])) {
189
  $network_options['ga_dash_profile_list'] = array(
190
  0 => GADWP_Tools::get_selected_profile($network_options['ga_dash_profile_list'], $network_options['ga_dash_tableid_network']->$blog_id)
191
  );
@@ -199,12 +199,14 @@ if (! class_exists('GADWP_Config')) {
199
  private function maintain_compatibility()
200
  {
201
  $flag = false;
 
202
  if (GADWP_CURRENT_VERSION != get_option('gadwp_version')) {
203
  GADWP_Tools::clear_cache();
204
  $flag = true;
205
  $this->options['automatic_updates_minorversion'] = 1;
206
  delete_transient('ga_dash_lasterror');
207
  update_option('gadwp_version', GADWP_CURRENT_VERSION);
 
208
  if (is_multisite()) { // Cleanup errors on the entire network
209
  foreach (wp_get_sites(array(
210
  'limit' => apply_filters('gadwp_sites_limit', 100)
@@ -309,6 +311,14 @@ if (! class_exists('GADWP_Config')) {
309
  $this->options['backend_item_reports'] = 1;
310
  $flag = true;
311
  }
 
 
 
 
 
 
 
 
312
  if (isset($this->options['item_reports'])) { //v4.8
313
  $this->options['backend_item_reports'] = $this->options['item_reports'];
314
  unset($this->options['item_reports']);
185
  $network_options = (array) json_decode($get_network_options);
186
  if (isset($network_options['ga_dash_network']) && ($network_options['ga_dash_network'])) {
187
  $network_options = (array) json_decode($get_network_options);
188
+ if (! is_network_admin() && ! empty($network_options['ga_dash_profile_list']) && isset($network_options['ga_dash_tableid_network']->$blog_id)) {
189
  $network_options['ga_dash_profile_list'] = array(
190
  0 => GADWP_Tools::get_selected_profile($network_options['ga_dash_profile_list'], $network_options['ga_dash_tableid_network']->$blog_id)
191
  );
199
  private function maintain_compatibility()
200
  {
201
  $flag = false;
202
+
203
  if (GADWP_CURRENT_VERSION != get_option('gadwp_version')) {
204
  GADWP_Tools::clear_cache();
205
  $flag = true;
206
  $this->options['automatic_updates_minorversion'] = 1;
207
  delete_transient('ga_dash_lasterror');
208
  update_option('gadwp_version', GADWP_CURRENT_VERSION);
209
+ update_option('gadwp_got_updated', true);
210
  if (is_multisite()) { // Cleanup errors on the entire network
211
  foreach (wp_get_sites(array(
212
  'limit' => apply_filters('gadwp_sites_limit', 100)
311
  $this->options['backend_item_reports'] = 1;
312
  $flag = true;
313
  }
314
+ if ( isset($this->options['ga_dash_default_metric'])) { //v4.8.1
315
+ unset($this->options['ga_dash_default_metric']);
316
+ $flag = true;
317
+ }
318
+ if ( isset($this->options['ga_dash_default_dimension'])) { //v4.8.1
319
+ unset($this->options['ga_dash_default_dimension']);
320
+ $flag = true;
321
+ }
322
  if (isset($this->options['item_reports'])) { //v4.8
323
  $this->options['backend_item_reports'] = $this->options['item_reports'];
324
  unset($this->options['item_reports']);
front/ajax-actions.php CHANGED
@@ -49,6 +49,8 @@ if ( ! class_exists( 'GADWP_Frontend_Ajax' ) ) {
49
 
50
  // allow URL correction before sending an API request
51
  $filter = apply_filters( 'gadwp_frontenditem_uri', $uri );
 
 
52
  $filter = rawurlencode( rawurldecode( $filter ) );
53
 
54
  $query = $_REQUEST['query'];
49
 
50
  // allow URL correction before sending an API request
51
  $filter = apply_filters( 'gadwp_frontenditem_uri', $uri );
52
+
53
+ // Encode URL
54
  $filter = rawurlencode( rawurldecode( $filter ) );
55
 
56
  $query = $_REQUEST['query'];
front/js/item-reports.js CHANGED
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";
front/setup.php CHANGED
@@ -70,9 +70,13 @@ if ( ! class_exists( 'GADWP_Frontend_Setup' ) ) {
70
  'dateList' => array(
71
  'today' => __( "Today", 'ga-dash' ),
72
  'yesterday' => __( "Yesterday", 'ga-dash' ),
73
- '7daysAgo' => __( "Last 7 Days", 'ga-dash' ),
74
- '30daysAgo' => __( "Last 30 Days", 'ga-dash' ),
75
- '90daysAgo' => __( "Last 90 Days", 'ga-dash' ) ),
 
 
 
 
76
  'reportList' => array(
77
  'uniquePageviews' => __( "Unique Views", 'ga-dash' ),
78
  'users' => __( "Users", 'ga-dash' ),
@@ -82,7 +86,8 @@ if ( ! class_exists( 'GADWP_Frontend_Setup' ) ) {
82
  'locations' => __( "Location", 'ga-dash' ),
83
  'referrers' => __( "Referrers", 'ga-dash' ),
84
  'searches' => __( "Searches", 'ga-dash' ),
85
- 'trafficdetails' => __( "Traffic Details", 'ga-dash' ) ),
 
86
  'i18n' => array(
87
  __( "A JavaScript Error is blocking plugin resources!", 'ga-dash' ),
88
  __( "Traffic Mediums", 'ga-dash' ),
@@ -98,9 +103,11 @@ if ( ! class_exists( 'GADWP_Frontend_Setup' ) ) {
98
  __( "Invalid response, more details in JavaScript Console (F12).", 'ga-dash' ),
99
  __( "Not enough data collected", 'ga-dash' ),
100
  __( "This report is unavailable", 'ga-dash' ),
101
- __( "report generated by", 'ga-dash' ) ),
 
102
  'colorVariations' => GADWP_Tools::variations( $this->gadwp->config->options['ga_dash_style'] ),
103
- 'region' => $region )
 
104
  );
105
  /* @formatter:on */
106
  }
70
  'dateList' => array(
71
  'today' => __( "Today", 'ga-dash' ),
72
  'yesterday' => __( "Yesterday", 'ga-dash' ),
73
+ '7daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 7 ),
74
+ '14daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 14 ),
75
+ '30daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 30 ),
76
+ '90daysAgo' => sprintf( __( "Last %d Days", 'ga-dash' ), 90 ),
77
+ '365daysAgo' => sprintf( _n( "%s Year", "%s Years", 1, 'ga-dash' ), __('One', 'ga-dash') ),
78
+ '1095daysAgo' => sprintf( _n( "%s Year", "%s Years", 3, 'ga-dash' ), __('Three', 'ga-dash') ),
79
+ ),
80
  'reportList' => array(
81
  'uniquePageviews' => __( "Unique Views", 'ga-dash' ),
82
  'users' => __( "Users", 'ga-dash' ),
86
  'locations' => __( "Location", 'ga-dash' ),
87
  'referrers' => __( "Referrers", 'ga-dash' ),
88
  'searches' => __( "Searches", 'ga-dash' ),
89
+ 'trafficdetails' => __( "Traffic Details", 'ga-dash' ),
90
+ ),
91
  'i18n' => array(
92
  __( "A JavaScript Error is blocking plugin resources!", 'ga-dash' ),
93
  __( "Traffic Mediums", 'ga-dash' ),
103
  __( "Invalid response, more details in JavaScript Console (F12).", 'ga-dash' ),
104
  __( "Not enough data collected", 'ga-dash' ),
105
  __( "This report is unavailable", 'ga-dash' ),
106
+ __( "report generated by", 'ga-dash' ),
107
+ ),
108
  'colorVariations' => GADWP_Tools::variations( $this->gadwp->config->options['ga_dash_style'] ),
109
+ 'region' => $region,
110
+ )
111
  );
112
  /* @formatter:on */
113
  }
front/widgets.php CHANGED
@@ -61,13 +61,13 @@ final class GADWP_Frontend_Widget extends WP_Widget {
61
  $periodtext = "";
62
  switch ( $instance['period'] ) {
63
  case '7daysAgo' :
64
- $periodtext = __( 'Last 7 Days', 'ga-dash' );
65
  break;
66
  case '14daysAgo' :
67
- $periodtext = __( 'Last 14 Days', 'ga-dash' );
68
  break;
69
  case '30daysAgo' :
70
- $periodtext = __( 'Last 30 Days', 'ga-dash' );
71
  break;
72
  default :
73
  $periodtext = "";
@@ -140,30 +140,30 @@ final class GADWP_Frontend_Widget extends WP_Widget {
140
  $anonim = ( isset( $instance['anonim'] ) ? $instance['anonim'] : 0 );
141
  /* @formatter:off */
142
  ?>
143
- <p>
144
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( "Title:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>">
145
- </p>
146
- <p>
147
- <label for="<?php echo $this->get_field_id( 'display' ); ?>"><?php _e( "Display:",'ga-dash' ); ?></label> <select id="<?php echo $this->get_field_id('display'); ?>" class="widefat" name="<?php echo $this->get_field_name( 'display' ); ?>">
148
- <option value="1" <?php selected( $display, 1 ); ?>><?php _e('Chart & Totals', 'ga-dash');?></option>
149
- <option value="2" <?php selected( $display, 2 ); ?>><?php _e('Chart', 'ga-dash');?></option>
150
- <option value="3" <?php selected( $display, 3 ); ?>><?php _e('Totals', 'ga-dash');?></option>
151
- </select>
152
- </p>
153
- <p>
154
- <label for="<?php echo $this->get_field_id( 'anonim' ); ?>"><?php _e( "Anonymize stats:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'anonim' ); ?>" name="<?php echo $this->get_field_name( 'anonim' ); ?>" type="checkbox" <?php checked( $anonim, 1 ); ?> value="1">
155
- </p>
156
- <p>
157
- <label for="<?php echo $this->get_field_id( 'period' ); ?>"><?php _e( "Stats for:",'ga-dash' ); ?></label> <select id="<?php echo $this->get_field_id('period'); ?>" class="widefat" name="<?php echo $this->get_field_name( 'period' ); ?>">
158
- <option value="7daysAgo" <?php selected( $period, '7daysAgo' ); ?>><?php _e('Last 7 Days', 'ga-dash');?></option>
159
- <option value="14daysAgo" <?php selected( $period, '14daysAgo' ); ?>><?php _e('Last 14 Days', 'ga-dash');?></option>
160
- <option value="30daysAgo" <?php selected( $period, '30daysAgo' ); ?>><?php _e('Last 30 Days', 'ga-dash');?></option>
161
- </select>
162
- </p>
163
- <p>
164
- <label for="<?php echo $this->get_field_id( 'give_credits' ); ?>"><?php _e( "Give credits:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'give_credits' ); ?>" name="<?php echo $this->get_field_name( 'give_credits' ); ?>" type="checkbox" <?php checked( $give_credits, 1 ); ?> value="1">
165
- </p>
166
- <?php
167
  /* @formatter:on */
168
  }
169
 
61
  $periodtext = "";
62
  switch ( $instance['period'] ) {
63
  case '7daysAgo' :
64
+ $periodtext = sprintf( __( 'Last %d Days', 'ga-dash' ), 7 );
65
  break;
66
  case '14daysAgo' :
67
+ $periodtext = sprintf( __( 'Last %d Days', 'ga-dash' ), 14 );
68
  break;
69
  case '30daysAgo' :
70
+ $periodtext = sprintf( __( 'Last %d Days', 'ga-dash' ), 30 );
71
  break;
72
  default :
73
  $periodtext = "";
140
  $anonim = ( isset( $instance['anonim'] ) ? $instance['anonim'] : 0 );
141
  /* @formatter:off */
142
  ?>
143
+ <p>
144
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( "Title:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $widget_title ); ?>">
145
+ </p>
146
+ <p>
147
+ <label for="<?php echo $this->get_field_id( 'display' ); ?>"><?php _e( "Display:",'ga-dash' ); ?></label> <select id="<?php echo $this->get_field_id('display'); ?>" class="widefat" name="<?php echo $this->get_field_name( 'display' ); ?>">
148
+ <option value="1" <?php selected( $display, 1 ); ?>><?php _e('Chart & Totals', 'ga-dash');?></option>
149
+ <option value="2" <?php selected( $display, 2 ); ?>><?php _e('Chart', 'ga-dash');?></option>
150
+ <option value="3" <?php selected( $display, 3 ); ?>><?php _e('Totals', 'ga-dash');?></option>
151
+ </select>
152
+ </p>
153
+ <p>
154
+ <label for="<?php echo $this->get_field_id( 'anonim' ); ?>"><?php _e( "Anonymize stats:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'anonim' ); ?>" name="<?php echo $this->get_field_name( 'anonim' ); ?>" type="checkbox" <?php checked( $anonim, 1 ); ?> value="1">
155
+ </p>
156
+ <p>
157
+ <label for="<?php echo $this->get_field_id( 'period' ); ?>"><?php _e( "Stats for:",'ga-dash' ); ?></label> <select id="<?php echo $this->get_field_id('period'); ?>" class="widefat" name="<?php echo $this->get_field_name( 'period' ); ?>">
158
+ <option value="7daysAgo" <?php selected( $period, '7daysAgo' ); ?>><?php printf( __('Last %d Days', 'ga-dash'), 7 );?></option>
159
+ <option value="14daysAgo" <?php selected( $period, '14daysAgo' ); ?>><?php printf( __('Last %d Days', 'ga-dash'), 14 );?></option>
160
+ <option value="30daysAgo" <?php selected( $period, '30daysAgo' ); ?>><?php printf( __('Last %d Days', 'ga-dash'), 30 );?></option>
161
+ </select>
162
+ </p>
163
+ <p>
164
+ <label for="<?php echo $this->get_field_id( 'give_credits' ); ?>"><?php _e( "Give credits:",'ga-dash' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'give_credits' ); ?>" name="<?php echo $this->get_field_name( 'give_credits' ); ?>" type="checkbox" <?php checked( $give_credits, 1 ); ?> value="1">
165
+ </p>
166
+ <?php
167
  /* @formatter:on */
168
  }
169
 
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://deconf.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: Alin Marcu
7
- * Version: 4.8
8
  * Author URI: https://deconf.com
9
  */
10
 
@@ -82,7 +82,7 @@ if ( ! class_exists( 'GADWP_Manager' ) ) {
82
 
83
  // Plugin Version
84
  if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
85
- define( 'GADWP_CURRENT_VERSION', '4.8' );
86
  }
87
 
88
  // Plugin Path
@@ -175,7 +175,9 @@ if ( ! class_exists( 'GADWP_Manager' ) ) {
175
  * Load Backend ajax actions
176
  */
177
  include_once ( GADWP_DIR . 'admin/ajax-actions.php' );
 
178
  self::$instance->backend_actions = new GADWP_Backend_Ajax();
 
179
  }
180
 
181
  /*
4
  * Plugin URI: https://deconf.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: Alin Marcu
7
+ * Version: 4.8.1
8
  * Author URI: https://deconf.com
9
  */
10
 
82
 
83
  // Plugin Version
84
  if ( ! defined( 'GADWP_CURRENT_VERSION' ) ) {
85
+ define( 'GADWP_CURRENT_VERSION', '4.8.1' );
86
  }
87
 
88
  // Plugin Path
175
  * Load Backend ajax actions
176
  */
177
  include_once ( GADWP_DIR . 'admin/ajax-actions.php' );
178
+ include_once ( GADWP_DIR . 'admin/ajax-actions-ui.php' );
179
  self::$instance->backend_actions = new GADWP_Backend_Ajax();
180
+ new GADWP_UI_Ajax();
181
  }
182
 
183
  /*
install/install.php CHANGED
@@ -43,8 +43,6 @@ class GADWP_Install {
43
  $options['ga_tracking_code'] = '';
44
  $options['ga_enhanced_links'] = 0;
45
  $options['ga_dash_remarketing'] = 0;
46
- $options['ga_dash_default_metric'] = 'sessions';
47
- $options['ga_dash_default_dimension'] = '30daysAgo';
48
  $options['ga_dash_frontend_stats'] = 0;
49
  $options['ga_dash_network'] = 0;
50
  $options['ga_dash_adsense'] = 0;
@@ -96,8 +94,6 @@ class GADWP_Install {
96
  $options['ga_dash_frontend_keywords'] = 0;
97
  $options['ga_enhanced_links'] = 0;
98
  $options['ga_dash_remarketing'] = 0;
99
- $options['ga_dash_default_metric'] = 'sessions';
100
- $options['ga_dash_default_dimension'] = '30daysAgo';
101
  $options['ga_dash_network'] = 0;
102
  $options['ga_event_bouncerate'] = 0;
103
  $options['ga_crossdomain_tracking'] = 0;
43
  $options['ga_tracking_code'] = '';
44
  $options['ga_enhanced_links'] = 0;
45
  $options['ga_dash_remarketing'] = 0;
 
 
46
  $options['ga_dash_frontend_stats'] = 0;
47
  $options['ga_dash_network'] = 0;
48
  $options['ga_dash_adsense'] = 0;
94
  $options['ga_dash_frontend_keywords'] = 0;
95
  $options['ga_enhanced_links'] = 0;
96
  $options['ga_dash_remarketing'] = 0;
 
 
97
  $options['ga_dash_network'] = 0;
98
  $options['ga_event_bouncerate'] = 0;
99
  $options['ga_crossdomain_tracking'] = 0;
languages/ga-dash-ar.po CHANGED
@@ -3,354 +3,350 @@ msgstr ""
3
  "Project-Id-Version: Google Analytics Dashboard for WP\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/google-analytics-"
5
  "dashboard-for-wp\n"
6
- "POT-Creation-Date: 2015-05-21 19:46+0200\n"
7
- "PO-Revision-Date: 2015-05-21 19:46+0200\n"
8
  "Last-Translator: Alin Marcu <admin@deconf.com>\n"
9
  "Language-Team: Ahmed Majed <admin@almobdaa.com>\n"
10
  "Language: ar\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Poedit 1.8\n"
15
- "X-Poedit-KeywordsList: _e;__\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
19
  "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
20
  "X-Poedit-SearchPath-0: ../.\n"
21
 
22
- #: .././admin/item-reports.php:52
23
  msgid "Analytics"
24
  msgstr ""
25
 
26
- #: .././admin/settings.php:94 .././admin/settings.php:197
27
- #: .././admin/settings.php:328 .././admin/settings.php:803
28
- #: .././admin/settings.php:1079
29
  msgid "Settings saved."
30
  msgstr ""
31
 
32
- #: .././admin/settings.php:96 .././admin/settings.php:199
33
- #: .././admin/settings.php:330 .././admin/settings.php:780
34
- #: .././admin/settings.php:790 .././admin/settings.php:799
35
- #: .././admin/settings.php:805 .././admin/settings.php:817
36
- #: .././admin/settings.php:1040 .././admin/settings.php:1065
37
- #: .././admin/settings.php:1075 .././admin/settings.php:1081
38
- #: .././admin/settings.php:1093
39
  msgid "Cheating Huh?"
40
  msgstr "تغش ها؟"
41
 
42
- #: .././admin/settings.php:100 .././admin/settings.php:203
43
- #: .././admin/settings.php:334 .././admin/settings.php:647
44
- #: .././admin/settings.php:832 .././admin/settings.php:1107
45
  #, php-format
46
  msgid "Something went wrong, check %1$s or %2$s."
47
  msgstr ""
48
 
49
- #: .././admin/settings.php:100 .././admin/settings.php:203
50
- #: .././admin/settings.php:334 .././admin/settings.php:647
51
- #: .././admin/settings.php:832 .././admin/settings.php:1107
52
- #: .././admin/setup.php:82 .././admin/setup.php:101
53
  msgid "Errors & Debug"
54
  msgstr ""
55
 
56
- #: .././admin/settings.php:100 .././admin/settings.php:203
57
- #: .././admin/settings.php:334 .././admin/settings.php:647
58
- #: .././admin/settings.php:832 .././admin/settings.php:1107
59
  msgid "authorize the plugin"
60
  msgstr "صرح بالدخول للأضافة"
61
 
62
- #: .././admin/settings.php:105
63
  msgid "Google Analytics Frontend Settings"
64
  msgstr "اعدادات الظهور الامامي لأحصائيات كوكل"
65
 
66
- #: .././admin/settings.php:115 .././admin/settings.php:218
67
  msgid "Permissions"
68
  msgstr ""
69
 
70
- #: .././admin/settings.php:118 .././admin/settings.php:221
71
  msgid "Show stats to:"
72
  msgstr ""
73
 
74
- #: .././admin/settings.php:157
75
- msgid "show page sessions and users in frontend (after each article)"
76
  msgstr ""
77
 
78
- #: .././admin/settings.php:168
79
- msgid "show page searches (after each article)"
80
- msgstr ""
81
-
82
- #: .././admin/settings.php:175 .././admin/settings.php:308
83
- #: .././admin/settings.php:605 .././admin/settings.php:952
84
- #: .././admin/settings.php:1245
85
  msgid "Save Changes"
86
  msgstr ""
87
 
88
- #: .././admin/settings.php:208
89
  msgid "Google Analytics Backend Settings"
90
  msgstr ""
91
 
92
- #: .././admin/settings.php:262
93
  msgid "enable Switch View functionality"
94
  msgstr ""
95
 
96
- #: .././admin/settings.php:273
97
  msgid "enable reports on Posts List and Pages List"
98
  msgstr ""
99
 
100
- #: .././admin/settings.php:284
101
  msgid "enable the main Dashboard Widget"
102
  msgstr ""
103
 
104
- #: .././admin/settings.php:288
105
  msgid "Real-Time Settings"
106
  msgstr "اعدادات الوقت الحقيقي"
107
 
108
- #: .././admin/settings.php:291
109
  msgid "Maximum number of pages to display on real-time tab:"
110
  msgstr "اكثر عدد صفحات يتم اظهارها في قسم الوقت الحقيقي:"
111
 
112
- #: .././admin/settings.php:296
113
  msgid "Location Settings"
114
  msgstr ""
115
 
116
- #: .././admin/settings.php:300
117
  msgid "Target Geo Map to country:"
118
  msgstr ""
119
 
120
- #: .././admin/settings.php:337
121
  msgid ""
122
  "The tracking component is disabled. You should set <strong>Tracking Options</"
123
  "strong> to <strong>Enabled</strong>"
124
  msgstr ""
125
 
126
- #: .././admin/settings.php:342
127
  msgid "Google Analytics Tracking Code"
128
  msgstr "كود تعقب احصائيات كوكل"
129
 
130
- #: .././admin/settings.php:351
131
  msgid "Basic Settings"
132
  msgstr ""
133
 
134
- #: .././admin/settings.php:352 .././admin/settings.php:417
135
  msgid "Events Tracking"
136
  msgstr "تعقب الافعال"
137
 
138
- #: .././admin/settings.php:353 .././admin/settings.php:465
139
  msgid "Custom Definitions"
140
  msgstr "تعاريف مخصصة"
141
 
142
- #: .././admin/settings.php:354 .././admin/settings.php:563
143
- #: .././admin/settings.php:1228
144
  msgid "Exclude Tracking"
145
  msgstr "لا تتبع"
146
 
147
- #: .././admin/settings.php:355
148
  msgid "Advanced Settings"
149
  msgstr ""
150
 
151
- #: .././admin/settings.php:362
152
  msgid "Tracking Settings"
153
  msgstr "اعدادات التعقب"
154
 
155
- #: .././admin/settings.php:365
156
  msgid "Tracking Options:"
157
  msgstr ""
158
 
159
- #: .././admin/settings.php:367
160
  msgid "Disabled"
161
  msgstr "تعطيل"
162
 
163
- #: .././admin/settings.php:368
164
  msgid "Enabled"
165
  msgstr "تفعيل"
166
 
167
- #: .././admin/settings.php:376 .././admin/settings.php:897
168
- #: .././admin/settings.php:919 .././admin/settings.php:1201
169
- #: .././admin/widgets.php:71
170
  msgid "View Name:"
171
  msgstr "شاهد الاسم:"
172
 
173
- #: .././admin/settings.php:376 .././admin/settings.php:919
174
  msgid "Tracking ID:"
175
  msgstr "معرف التعقب:"
176
 
177
- #: .././admin/settings.php:376 .././admin/settings.php:919
178
  msgid "Default URL:"
179
  msgstr "الرابط الرئيسي:"
180
 
181
- #: .././admin/settings.php:376 .././admin/settings.php:919
182
  msgid "Time Zone:"
183
  msgstr "المنطقة الزمنية:"
184
 
185
- #: .././admin/settings.php:381
186
  msgid "Basic Tracking"
187
  msgstr "التعقب الاساسي"
188
 
189
- #: .././admin/settings.php:384
190
  msgid "Tracking Type:"
191
  msgstr ""
192
 
193
- #: .././admin/settings.php:386
194
  msgid "Classic Analytics"
195
  msgstr "الاحصائيات الكلاسيكية"
196
 
197
- #: .././admin/settings.php:387
198
  msgid "Universal Analytics"
199
  msgstr "الاحصائيات العالمية"
200
 
201
- #: .././admin/settings.php:398
202
  msgid "anonymize IPs while tracking"
203
  msgstr ""
204
 
205
- #: .././admin/settings.php:409
206
  msgid "enable remarketing, demographics and interests reports"
207
  msgstr ""
208
 
209
- #: .././admin/settings.php:427
210
  msgid "track downloads, mailto and outbound links"
211
  msgstr ""
212
 
213
- #: .././admin/settings.php:431
214
  msgid "Downloads Regex:"
215
  msgstr "حمل التقارير"
216
 
217
- #: .././admin/settings.php:442
218
  msgid "track affiliate links matching this regex"
219
  msgstr ""
220
 
221
- #: .././admin/settings.php:446
222
  msgid "Affiliates Regex:"
223
  msgstr "روابط الداعمين:"
224
 
225
- #: .././admin/settings.php:457
226
  msgid "track fragment identifiers, hashmarks (#) in URI links"
227
  msgstr ""
228
 
229
- #: .././admin/settings.php:468
230
  msgid "Authors:"
231
  msgstr ""
232
 
233
- #: .././admin/settings.php:476
234
  msgid "Publication Year:"
235
  msgstr ""
236
 
237
- #: .././admin/settings.php:484
238
  msgid "Categories:"
239
  msgstr ""
240
 
241
- #: .././admin/settings.php:492
242
  msgid "User Type:"
243
  msgstr ""
244
 
245
- #: .././admin/settings.php:504
246
  msgid "Advanced Tracking"
247
  msgstr "تتبع متطور"
248
 
249
- #: .././admin/settings.php:507
250
  msgid "Page Speed SR:"
251
  msgstr "سرعة الصفحة:"
252
 
253
- #: .././admin/settings.php:518
254
  msgid "exclude events from bounce-rate calculation"
255
  msgstr ""
256
 
257
- #: .././admin/settings.php:529
258
  msgid "enable enhanced link attribution"
259
  msgstr ""
260
 
261
- #: .././admin/settings.php:540
262
  msgid "enable AdSense account linking"
263
  msgstr ""
264
 
265
- #: .././admin/settings.php:551
266
  msgid "enable cross domain tracking"
267
  msgstr ""
268
 
269
- #: .././admin/settings.php:555
270
  msgid "Cross Domains:"
271
  msgstr "عبر الروابط التالية:"
272
 
273
- #: .././admin/settings.php:566
274
  msgid "Exclude tracking for:"
275
  msgstr ""
276
 
277
- #: .././admin/settings.php:651
278
  msgid "Google Analytics Errors & Debugging"
279
  msgstr ""
280
 
281
- #: .././admin/settings.php:661
282
  msgid "Errors & Details"
283
  msgstr ""
284
 
285
- #: .././admin/settings.php:662
286
  msgid "Plugin Settings"
287
  msgstr ""
288
 
289
- #: .././admin/settings.php:670
290
  msgid "Last Error detected"
291
  msgstr ""
292
 
293
- #: .././admin/settings.php:676 .././admin/settings.php:689
294
  msgid "None"
295
  msgstr ""
296
 
297
- #: .././admin/settings.php:683
298
  msgid "Error Details"
299
  msgstr ""
300
 
301
- #: .././admin/settings.php:703
302
  msgid "Plugin Configuration"
303
  msgstr ""
304
 
305
- #: .././admin/settings.php:725 .././admin/settings.php:990
306
  msgid ""
307
  "Loading the required libraries. If this results in a blank screen or a fatal "
308
  "error, try this solution:"
309
  msgstr ""
310
 
311
- #: .././admin/settings.php:725
312
  msgid "Library conflicts between WordPress plugins"
313
  msgstr ""
314
 
315
- #: .././admin/settings.php:740 .././admin/settings.php:1007
316
  msgid "Plugin authorization succeeded."
317
  msgstr "تم تفعيل تصريح الاضافة بنجاح."
318
 
319
- #: .././admin/settings.php:755 .././admin/settings.php:1031
320
  msgid ""
321
  "The access code is <strong>NOT</strong> your <strong>Tracking ID</strong> "
322
  "(UA-XXXXX-X). Try again, and use the red link to get your access code"
323
  msgstr ""
324
 
325
- #: .././admin/settings.php:778 .././admin/settings.php:1063
326
  msgid "Cleared Cache."
327
  msgstr "الخزن المزال."
328
 
329
- #: .././admin/settings.php:787 .././admin/settings.php:1072
330
  msgid "Token Reseted and Revoked."
331
  msgstr "الجزء المراح والمعدل."
332
 
333
- #: .././admin/settings.php:797
334
  msgid "All errors reseted."
335
  msgstr ""
336
 
337
- #: .././admin/settings.php:810 .././admin/settings.php:1086
338
  msgid "All other domains/properties were removed."
339
  msgstr "كل الروابط/والخصائص تم إزالتها."
340
 
341
- #: .././admin/settings.php:822 .././admin/settings.php:1098
342
  msgid "Google Analytics Settings"
343
  msgstr "إعدادات احصائيات كوكل"
344
 
345
- #: .././admin/settings.php:837 .././admin/settings.php:1112
346
  msgid "Use the red link (see below) to generate and get your access code!"
347
  msgstr ""
348
 
349
- #: .././admin/settings.php:848 .././admin/settings.php:1140
350
  msgid "Plugin Authorization"
351
  msgstr "تصريح الأضافة"
352
 
353
- #: .././admin/settings.php:853 .././admin/settings.php:1144
354
  #, php-format
355
  msgid ""
356
  "You should watch the %1$s and read this %2$s before proceeding to "
@@ -358,112 +354,107 @@ msgid ""
358
  "account!"
359
  msgstr ""
360
 
361
- #: .././admin/settings.php:853 .././admin/settings.php:1144
362
  msgid "video"
363
  msgstr "الڤيديو"
364
 
365
- #: .././admin/settings.php:853 .././admin/settings.php:1144
366
  msgid "tutorial"
367
  msgstr "الدرس"
368
 
369
- #: .././admin/settings.php:858 .././admin/settings.php:1151
370
  msgid "use your own API Project credentials"
371
  msgstr ""
372
 
373
- #: .././admin/settings.php:863 .././admin/settings.php:1159
374
  msgid "API Key:"
375
  msgstr "مفتاح API:"
376
 
377
- #: .././admin/settings.php:867 .././admin/settings.php:1163
378
  msgid "Client ID:"
379
  msgstr "معرف الزيون:"
380
 
381
- #: .././admin/settings.php:871 .././admin/settings.php:1167
382
  msgid "Client Secret:"
383
  msgstr "سر الزبون:"
384
 
385
- #: .././admin/settings.php:881 .././admin/settings.php:1177
386
  msgid "Clear Authorization"
387
  msgstr "أزل التصريحات"
388
 
389
- #: .././admin/settings.php:881 .././admin/settings.php:959
390
- #: .././admin/settings.php:1177 .././admin/settings.php:1254
391
  msgid "Clear Cache"
392
  msgstr "أزل الخزن"
393
 
394
- #: .././admin/settings.php:881
395
  msgid "Reset Errors"
396
  msgstr ""
397
 
398
- #: .././admin/settings.php:887 .././admin/setup.php:70 .././admin/setup.php:98
399
  msgid "General Settings"
400
  msgstr "الأعدادات العامة"
401
 
402
- #: .././admin/settings.php:890
403
  msgid "Select View:"
404
  msgstr ""
405
 
406
- #: .././admin/settings.php:901 .././admin/settings.php:1205
407
  msgid "Property not found"
408
  msgstr ""
409
 
410
- #: .././admin/settings.php:907
411
  msgid "Lock Selection"
412
  msgstr ""
413
 
414
- #: .././admin/settings.php:926
415
  msgid "Theme Color:"
416
  msgstr ""
417
 
418
- #: .././admin/settings.php:934 .././admin/settings.php:1214
419
  msgid "Automatic Updates"
420
  msgstr ""
421
 
422
- #: .././admin/settings.php:944 .././admin/settings.php:1224
423
  msgid ""
424
  "automatic updates for minor versions (security and maintenance releases only)"
425
  msgstr ""
426
 
427
- #: .././admin/settings.php:959 .././admin/settings.php:1254
428
- #: .././admin/widgets.php:42
429
  msgid "Authorize Plugin"
430
  msgstr "صرح الأضافة "
431
 
432
- #: .././admin/settings.php:1037
433
  msgid "Properties refreshed."
434
  msgstr "تم تحديث الخصائص."
435
 
436
- #: .././admin/settings.php:1122
437
  msgid "Network Setup"
438
  msgstr "اعدادات الشبكة"
439
 
440
- #: .././admin/settings.php:1132
441
  msgid "use a single Google Analytics account for the entire network"
442
  msgstr ""
443
 
444
- #: .././admin/settings.php:1177
445
  msgid "Refresh Properties"
446
  msgstr "حدث الخصائص"
447
 
448
- #: .././admin/settings.php:1183
449
  msgid "Properties/Views Settings"
450
  msgstr "اعدادات الخصائص/المشاهدة"
451
 
452
- #: .././admin/settings.php:1238
453
  msgid "exclude Super Admin tracking for the entire network"
454
  msgstr ""
455
 
456
- #: .././admin/settings.php:1285
457
  msgid "Setup Tutorial & Demo"
458
  msgstr "درس التنصيب"
459
 
460
- #: .././admin/settings.php:1293
461
- msgid "Support & Reviews"
462
- msgstr "الدعم والتقييم"
463
-
464
- #: .././admin/settings.php:1300
465
- #, php-format
466
- msgid "Plugin documentation and support on %s"
467
  msgstr ""
468
 
469
  #: .././admin/settings.php:1307
@@ -519,175 +510,210 @@ msgstr ""
519
  msgid "Web Analytics"
520
  msgstr "احصائيات الويب"
521
 
522
- #: .././admin/setup.php:67 .././admin/setup.php:95
523
  msgid "Google Analytics"
524
  msgstr "أحصائيات كوكل"
525
 
526
- #: .././admin/setup.php:73
527
  msgid "Backend Settings"
528
  msgstr "أعدادات العمل"
529
 
530
- #: .././admin/setup.php:76
531
  msgid "Frontend Settings"
532
  msgstr "اعدادات الظهور"
533
 
534
- #: .././admin/setup.php:79
535
  msgid "Tracking Code"
536
  msgstr "كود التعقب"
537
 
538
- #: .././admin/setup.php:169 .././admin/widgets.php:126
539
  msgid "Today"
540
  msgstr "اليوم"
541
 
542
- #: .././admin/setup.php:170 .././admin/widgets.php:127
543
  msgid "Yesterday"
544
  msgstr "البارحة"
545
 
546
- #: .././admin/setup.php:171 .././admin/widgets.php:128
547
- #: .././front/widgets.php:74 .././front/widgets.php:182
548
- msgid "Last 7 Days"
549
- msgstr "اخر ٧ ايام"
 
 
 
 
 
 
 
550
 
551
- #: .././admin/setup.php:172 .././admin/widgets.php:130
552
- #: .././front/widgets.php:80 .././front/widgets.php:184
553
- msgid "Last 30 Days"
554
- msgstr "اخر ٣٠ يوم"
 
 
555
 
556
- #: .././admin/setup.php:173 .././admin/widgets.php:131
557
- msgid "Last 90 Days"
558
- msgstr "أخر ٩٠ يوم"
559
 
560
- #: .././admin/setup.php:175 .././admin/setup.php:190
 
 
 
 
 
561
  msgid "Unique Views"
562
  msgstr ""
563
 
564
- #: .././admin/setup.php:176 .././admin/setup.php:191
565
- #: .././admin/widgets.php:136 .././admin/widgets.php:875
566
- #: .././tools/gapi.php:391
567
  msgid "Users"
568
  msgstr ""
569
 
570
- #: .././admin/setup.php:177 .././admin/widgets.php:137
571
  msgid "Organic"
572
  msgstr "عضوي"
573
 
574
- #: .././admin/setup.php:178 .././admin/setup.php:192
575
- #: .././admin/widgets.php:138 .././admin/widgets.php:879
576
- #: .././tools/gapi.php:394
577
  msgid "Page Views"
578
  msgstr "مشاهدات الصفحة"
579
 
580
- #: .././admin/setup.php:179 .././admin/setup.php:193
581
- #: .././admin/widgets.php:139 .././admin/widgets.php:883
582
- #: .././tools/gapi.php:397
583
  msgid "Bounce Rate"
584
  msgstr "نسبة القفز"
585
 
586
- #: .././admin/setup.php:180 .././admin/widgets.php:140
587
  msgid "Location"
588
  msgstr ""
589
 
590
- #: .././admin/setup.php:181 .././admin/widgets.php:142 .././tools/gapi.php:566
 
591
  msgid "Referrers"
592
  msgstr ""
593
 
594
- #: .././admin/setup.php:182 .././admin/widgets.php:143 .././tools/gapi.php:612
595
- #: .././tools/gapi.php:918
596
  msgid "Searches"
597
  msgstr ""
598
 
599
- #: .././admin/setup.php:183 .././admin/widgets.php:144
600
  msgid "Traffic Details"
601
  msgstr ""
602
 
603
- #: .././admin/setup.php:185 .././admin/widgets.php:510
604
- #: .././admin/widgets.php:607 .././admin/widgets.php:805
605
- #: .././admin/widgets.php:917 .././front/item-reports.php:97
606
  msgid "A JavaScript Error is blocking plugin resources!"
607
  msgstr ""
608
 
609
- #: .././admin/setup.php:186 .././admin/widgets.php:713
610
  msgid "Traffic Mediums"
611
  msgstr ""
612
 
613
- #: .././admin/setup.php:187 .././admin/widgets.php:729
614
  msgid "Visitor Type"
615
  msgstr ""
616
 
617
- #: .././admin/setup.php:188 .././admin/widgets.php:745
618
  msgid "Social Networks"
619
  msgstr ""
620
 
621
- #: .././admin/setup.php:189 .././admin/widgets.php:761
622
  msgid "Search Engines"
623
  msgstr ""
624
 
625
- #: .././admin/setup.php:194 .././admin/widgets.php:887
 
626
  msgid "Organic Search"
627
  msgstr ""
628
 
629
- #: .././admin/setup.php:195 .././admin/widgets.php:891
 
630
  msgid "Pages/Session"
631
  msgstr ""
632
 
633
- #: .././admin/setup.php:196 .././admin/widgets.php:523
634
- #: .././admin/widgets.php:541 .././admin/widgets.php:620
635
- #: .././admin/widgets.php:638 .././admin/widgets.php:657
636
- #: .././admin/widgets.php:676 .././admin/widgets.php:696
637
- #: .././admin/widgets.php:819 .././admin/widgets.php:930
638
- #: .././admin/widgets.php:949 .././front/item-reports.php:109
639
- #: .././front/item-reports.php:128
 
640
  msgid "Invalid response, more details in JavaScript Console (F12)."
641
  msgstr ""
642
 
643
- #: .././admin/setup.php:197
644
  msgid "Not enough data collected"
645
  msgstr ""
646
 
647
- #: .././admin/setup.php:198 .././admin/widgets.php:528
648
- #: .././admin/widgets.php:546 .././admin/widgets.php:625
649
- #: .././admin/widgets.php:643 .././admin/widgets.php:662
650
- #: .././admin/widgets.php:681 .././admin/widgets.php:701
651
- #: .././admin/widgets.php:824 .././admin/widgets.php:827
652
- #: .././admin/widgets.php:935 .././admin/widgets.php:954
653
- #: .././front/item-reports.php:114 .././front/item-reports.php:133
654
- #: .././front/widgets.php:110
655
  msgid "This report is unavailable"
656
  msgstr ""
657
 
658
- #: .././admin/setup.php:199
659
  msgid "report generated by"
660
  msgstr ""
661
 
662
- #: .././admin/setup.php:233
663
  msgid "Settings"
664
  msgstr "الاعدادات"
665
 
666
- #: .././admin/widgets.php:33 .././front/widgets.php:22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  msgid "Google Analytics Dashboard"
668
  msgstr "لوحة أحصائيات كوكل"
669
 
670
- #: .././admin/widgets.php:42
671
  msgid "This plugin needs an authorization:"
672
  msgstr "هذه الاضافة تحتاج الى تصريح:"
673
 
674
- #: .././admin/widgets.php:76
675
  msgid "Something went wrong while retrieving profiles list."
676
  msgstr "حدث خطأ ما اثناء استرجاع قائمة البروفايلات."
677
 
678
- #: .././admin/widgets.php:76
679
  msgid "More details"
680
  msgstr "المزيد من التفاصيل"
681
 
682
- #: .././admin/widgets.php:89 .././admin/widgets.php:100
683
  msgid "An admin should asign a default Google Analytics Profile."
684
  msgstr "المدير يجب ان يحصل على حساب احصائيات كوكل رئيسي."
685
 
686
- #: .././admin/widgets.php:89 .././admin/widgets.php:100
687
  msgid "Select Domain"
688
  msgstr "حدد النطاق"
689
 
690
- #: .././admin/widgets.php:105
691
  msgid ""
692
  "Something went wrong while retrieving property data. You need to create and "
693
  "properly configure a Google Analytics account:"
@@ -695,192 +721,196 @@ msgstr ""
695
  "حدث خطأ ما اثناء استرجاع بيانات الملكية. تحتاج الى انشاء واعداد حساب كوكل "
696
  "للأحصائيات بصورة صحيحة:"
697
 
698
- #: .././admin/widgets.php:105
699
  msgid "Find out more!"
700
  msgstr "اعرف أكثر!"
701
 
702
- #: .././admin/widgets.php:125
703
  msgid "Real-Time"
704
  msgstr "الوقت الحقيقي"
705
 
706
- #: .././admin/widgets.php:129 .././front/widgets.php:77
707
- #: .././front/widgets.php:183
708
- msgid "Last 14 Days"
709
- msgstr "أخر ١٤ يوم"
710
-
711
- #: .././admin/widgets.php:135 .././admin/widgets.php:871
712
- #: .././front/widgets.php:46 .././tools/gapi.php:406 .././tools/gapi.php:567
713
- #: .././tools/gapi.php:613 .././tools/gapi.php:676 .././tools/gapi.php:786
714
- #: .././tools/gapi.php:827 .././tools/gapi.php:919
715
  msgid "Sessions"
716
  msgstr ""
717
 
718
- #: .././admin/widgets.php:141 .././tools/gapi.php:521
719
  msgid "Pages"
720
  msgstr ""
721
 
722
- #: .././admin/widgets.php:232 .././admin/widgets.php:472
723
  msgid "REFERRAL"
724
  msgstr "المصدر"
725
 
726
- #: .././admin/widgets.php:236 .././admin/widgets.php:473
727
  msgid "ORGANIC"
728
  msgstr "عضوي"
729
 
730
- #: .././admin/widgets.php:240 .././admin/widgets.php:360
731
- #: .././admin/widgets.php:474
732
  msgid "SOCIAL"
733
  msgstr "اجتماعي"
734
 
735
- #: .././admin/widgets.php:244 .././admin/widgets.php:363
736
- #: .././admin/widgets.php:475
737
  msgid "CAMPAIGN"
738
  msgstr ""
739
 
740
- #: .././admin/widgets.php:248 .././admin/widgets.php:366
741
- #: .././admin/widgets.php:478
742
  msgid "DIRECT"
743
  msgstr "مباشر"
744
 
745
- #: .././admin/widgets.php:252 .././admin/widgets.php:479
746
  msgid "NEW"
747
  msgstr "جديد"
748
 
749
- #: .././admin/widgets.php:354
750
  msgid "REFERRALS"
751
  msgstr "المصادر"
752
 
753
- #: .././admin/widgets.php:357
754
  msgid "KEYWORDS"
755
  msgstr "الكلمات المفتاحية"
756
 
757
- #: .././front/item-reports.php:143
758
- msgid "Views vs UniqueViews"
759
- msgstr "المشاهدات ضد المشاهدات الحقيقية"
760
-
761
- #: .././front/item-reports.php:193
762
- msgid "Google Analytics Reports"
763
- msgstr ""
764
-
765
- #: .././front/widgets.php:23
766
  msgid "Will display your google analytics stats in a widget"
767
  msgstr "ستظهر احصائيات حسابك في مربع جانبي"
768
 
769
- #: .././front/widgets.php:46 .././tools/gapi.php:827
770
  msgid "trend"
771
  msgstr ""
772
 
773
- #: .././front/widgets.php:133
774
  msgid "Period:"
775
  msgstr "الفترة:"
776
 
777
- #: .././front/widgets.php:133
778
  msgid "Sessions:"
779
  msgstr ""
780
 
781
- #: .././front/widgets.php:137
782
  msgid "generated by"
783
  msgstr "اظهرت بواسطة"
784
 
785
- #: .././front/widgets.php:147
786
  msgid "Google Analytics Stats"
787
  msgstr "احصائيات كوكل"
788
 
789
- #: .././front/widgets.php:154
790
  msgid "Title:"
791
  msgstr "العنوان:"
792
 
793
- #: .././front/widgets.php:161
794
  msgid "Display:"
795
  msgstr "اظهر:"
796
 
797
- #: .././front/widgets.php:165
798
  msgid "Chart & Totals"
799
  msgstr "الاحصائيات والكل"
800
 
801
- #: .././front/widgets.php:166
802
  msgid "Chart"
803
  msgstr "الاحصائيات"
804
 
805
- #: .././front/widgets.php:167
806
  msgid "Totals"
807
  msgstr "الكل"
808
 
809
- #: .././front/widgets.php:171
810
  msgid "Anonymize stats:"
811
  msgstr ""
812
 
813
- #: .././front/widgets.php:178
814
  msgid "Stats for:"
815
  msgstr "الاحصائيات لـ:"
816
 
817
- #: .././front/widgets.php:188
818
  msgid "Give credits:"
819
  msgstr "أعطي الفضل:"
820
 
821
- #: .././gadwp.php:46 .././gadwp.php:55 .././gadwp.php:63
822
  msgid "This is not allowed, read the documentation!"
823
  msgstr ""
824
 
825
- #: .././tools/gapi.php:134
826
  msgid "Use this link to get your access code:"
827
  msgstr "أستخدم هذا الرابط للحصول على كود التعقب الخاص بك:"
828
 
829
- #: .././tools/gapi.php:134
830
  msgid "Get Access Code"
831
  msgstr "احصل على كود الدخول"
832
 
833
- #: .././tools/gapi.php:138 .././tools/gapi.php:139
834
  msgid "Use the red link to get your access code!"
835
  msgstr ""
836
 
837
- #: .././tools/gapi.php:138
838
  msgid "Access Code:"
839
  msgstr "كود الدخول:"
840
 
841
- #: .././tools/gapi.php:145
842
  msgid "Save Access Code"
843
  msgstr "أحفظ كود الدخول"
844
 
845
- #: .././tools/gapi.php:400
846
  msgid "Organic Searches"
847
  msgstr "البحث العضوي"
848
 
849
- #: .././tools/gapi.php:403
850
  msgid "Unique Page Views"
851
  msgstr ""
852
 
853
- #: .././tools/gapi.php:411
854
  msgid "Hour"
855
  msgstr "الساعة"
856
 
857
- #: .././tools/gapi.php:414 .././tools/gapi.php:826 .././tools/gapi.php:876
858
  msgid "Date"
859
  msgstr "التاريخ"
860
 
861
- #: .././tools/gapi.php:522 .././tools/gapi.php:877
862
  msgid "Views"
863
  msgstr "المشاهدات"
864
 
865
- #: .././tools/gapi.php:640
866
  msgid "Countries"
867
  msgstr ""
868
 
869
- #: .././tools/gapi.php:650
870
  msgid "Cities from"
871
  msgstr ""
872
 
873
- #: .././tools/gapi.php:722
874
  msgid "Channels"
875
  msgstr ""
876
 
877
- #: .././tools/gapi.php:785
878
  msgid "Type"
879
  msgstr "النوع"
880
 
881
- #: .././tools/gapi.php:878
882
- msgid "UniqueViews"
883
- msgstr "المشاهدات الخاصة"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
884
 
885
  #~ msgid "and/or hide all other domains"
886
  #~ msgstr "و/أو أخفي كل الروابط الأخرى"
3
  "Project-Id-Version: Google Analytics Dashboard for WP\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/google-analytics-"
5
  "dashboard-for-wp\n"
6
+ "POT-Creation-Date: 2015-07-05 16:05+0300\n"
7
+ "PO-Revision-Date: 2015-07-05 16:05+0300\n"
8
  "Last-Translator: Alin Marcu <admin@deconf.com>\n"
9
  "Language-Team: Ahmed Majed <admin@almobdaa.com>\n"
10
  "Language: ar\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Poedit 1.8.2\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n;_x;_ex;_nx;esc_attr__;esc_attr_e;esc_attr_x;esc_html__;esc_html_e;esc_html_x;_n_noop;_nx_noop\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
  "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
19
  "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
20
  "X-Poedit-SearchPath-0: ../.\n"
21
 
22
+ #: .././admin/item-reports.php:61 .././front/item-reports.php:29
23
  msgid "Analytics"
24
  msgstr ""
25
 
26
+ #: .././admin/settings.php:89 .././admin/settings.php:184
27
+ #: .././admin/settings.php:318 .././admin/settings.php:795
28
+ #: .././admin/settings.php:1068
29
  msgid "Settings saved."
30
  msgstr ""
31
 
32
+ #: .././admin/settings.php:91 .././admin/settings.php:186
33
+ #: .././admin/settings.php:320 .././admin/settings.php:772
34
+ #: .././admin/settings.php:782 .././admin/settings.php:791
35
+ #: .././admin/settings.php:797 .././admin/settings.php:808
36
+ #: .././admin/settings.php:1029 .././admin/settings.php:1054
37
+ #: .././admin/settings.php:1064 .././admin/settings.php:1070
38
+ #: .././admin/settings.php:1081
39
  msgid "Cheating Huh?"
40
  msgstr "تغش ها؟"
41
 
42
+ #: .././admin/settings.php:95 .././admin/settings.php:190
43
+ #: .././admin/settings.php:324 .././admin/settings.php:641
44
+ #: .././admin/settings.php:823 .././admin/settings.php:1095
45
  #, php-format
46
  msgid "Something went wrong, check %1$s or %2$s."
47
  msgstr ""
48
 
49
+ #: .././admin/settings.php:95 .././admin/settings.php:190
50
+ #: .././admin/settings.php:324 .././admin/settings.php:641
51
+ #: .././admin/settings.php:823 .././admin/settings.php:1095
52
+ #: .././admin/setup.php:46 .././admin/setup.php:59
53
  msgid "Errors & Debug"
54
  msgstr ""
55
 
56
+ #: .././admin/settings.php:95 .././admin/settings.php:190
57
+ #: .././admin/settings.php:324 .././admin/settings.php:641
58
+ #: .././admin/settings.php:823 .././admin/settings.php:1095
59
  msgid "authorize the plugin"
60
  msgstr "صرح بالدخول للأضافة"
61
 
62
+ #: .././admin/settings.php:100
63
  msgid "Google Analytics Frontend Settings"
64
  msgstr "اعدادات الظهور الامامي لأحصائيات كوكل"
65
 
66
+ #: .././admin/settings.php:110 .././admin/settings.php:205
67
  msgid "Permissions"
68
  msgstr ""
69
 
70
+ #: .././admin/settings.php:113 .././admin/settings.php:208
71
  msgid "Show stats to:"
72
  msgstr ""
73
 
74
+ #: .././admin/settings.php:154
75
+ msgid "enable web page reports on frontend"
76
  msgstr ""
77
 
78
+ #: .././admin/settings.php:161 .././admin/settings.php:297
79
+ #: .././admin/settings.php:598 .././admin/settings.php:943
80
+ #: .././admin/settings.php:1232
 
 
 
 
81
  msgid "Save Changes"
82
  msgstr ""
83
 
84
+ #: .././admin/settings.php:195
85
  msgid "Google Analytics Backend Settings"
86
  msgstr ""
87
 
88
+ #: .././admin/settings.php:251
89
  msgid "enable Switch View functionality"
90
  msgstr ""
91
 
92
+ #: .././admin/settings.php:262
93
  msgid "enable reports on Posts List and Pages List"
94
  msgstr ""
95
 
96
+ #: .././admin/settings.php:273
97
  msgid "enable the main Dashboard Widget"
98
  msgstr ""
99
 
100
+ #: .././admin/settings.php:277
101
  msgid "Real-Time Settings"
102
  msgstr "اعدادات الوقت الحقيقي"
103
 
104
+ #: .././admin/settings.php:280
105
  msgid "Maximum number of pages to display on real-time tab:"
106
  msgstr "اكثر عدد صفحات يتم اظهارها في قسم الوقت الحقيقي:"
107
 
108
+ #: .././admin/settings.php:285
109
  msgid "Location Settings"
110
  msgstr ""
111
 
112
+ #: .././admin/settings.php:289
113
  msgid "Target Geo Map to country:"
114
  msgstr ""
115
 
116
+ #: .././admin/settings.php:327
117
  msgid ""
118
  "The tracking component is disabled. You should set <strong>Tracking Options</"
119
  "strong> to <strong>Enabled</strong>"
120
  msgstr ""
121
 
122
+ #: .././admin/settings.php:332
123
  msgid "Google Analytics Tracking Code"
124
  msgstr "كود تعقب احصائيات كوكل"
125
 
126
+ #: .././admin/settings.php:341
127
  msgid "Basic Settings"
128
  msgstr ""
129
 
130
+ #: .././admin/settings.php:342 .././admin/settings.php:408
131
  msgid "Events Tracking"
132
  msgstr "تعقب الافعال"
133
 
134
+ #: .././admin/settings.php:343 .././admin/settings.php:456
135
  msgid "Custom Definitions"
136
  msgstr "تعاريف مخصصة"
137
 
138
+ #: .././admin/settings.php:344 .././admin/settings.php:554
139
+ #: .././admin/settings.php:1215
140
  msgid "Exclude Tracking"
141
  msgstr "لا تتبع"
142
 
143
+ #: .././admin/settings.php:345
144
  msgid "Advanced Settings"
145
  msgstr ""
146
 
147
+ #: .././admin/settings.php:353
148
  msgid "Tracking Settings"
149
  msgstr "اعدادات التعقب"
150
 
151
+ #: .././admin/settings.php:356
152
  msgid "Tracking Options:"
153
  msgstr ""
154
 
155
+ #: .././admin/settings.php:358
156
  msgid "Disabled"
157
  msgstr "تعطيل"
158
 
159
+ #: .././admin/settings.php:359
160
  msgid "Enabled"
161
  msgstr "تفعيل"
162
 
163
+ #: .././admin/settings.php:367 .././admin/settings.php:888
164
+ #: .././admin/settings.php:910 .././admin/settings.php:1188
165
+ #: .././admin/widgets.php:61
166
  msgid "View Name:"
167
  msgstr "شاهد الاسم:"
168
 
169
+ #: .././admin/settings.php:367 .././admin/settings.php:910
170
  msgid "Tracking ID:"
171
  msgstr "معرف التعقب:"
172
 
173
+ #: .././admin/settings.php:367 .././admin/settings.php:910
174
  msgid "Default URL:"
175
  msgstr "الرابط الرئيسي:"
176
 
177
+ #: .././admin/settings.php:367 .././admin/settings.php:910
178
  msgid "Time Zone:"
179
  msgstr "المنطقة الزمنية:"
180
 
181
+ #: .././admin/settings.php:372
182
  msgid "Basic Tracking"
183
  msgstr "التعقب الاساسي"
184
 
185
+ #: .././admin/settings.php:375
186
  msgid "Tracking Type:"
187
  msgstr ""
188
 
189
+ #: .././admin/settings.php:377
190
  msgid "Classic Analytics"
191
  msgstr "الاحصائيات الكلاسيكية"
192
 
193
+ #: .././admin/settings.php:378
194
  msgid "Universal Analytics"
195
  msgstr "الاحصائيات العالمية"
196
 
197
+ #: .././admin/settings.php:389
198
  msgid "anonymize IPs while tracking"
199
  msgstr ""
200
 
201
+ #: .././admin/settings.php:400
202
  msgid "enable remarketing, demographics and interests reports"
203
  msgstr ""
204
 
205
+ #: .././admin/settings.php:418
206
  msgid "track downloads, mailto and outbound links"
207
  msgstr ""
208
 
209
+ #: .././admin/settings.php:422
210
  msgid "Downloads Regex:"
211
  msgstr "حمل التقارير"
212
 
213
+ #: .././admin/settings.php:433
214
  msgid "track affiliate links matching this regex"
215
  msgstr ""
216
 
217
+ #: .././admin/settings.php:437
218
  msgid "Affiliates Regex:"
219
  msgstr "روابط الداعمين:"
220
 
221
+ #: .././admin/settings.php:448
222
  msgid "track fragment identifiers, hashmarks (#) in URI links"
223
  msgstr ""
224
 
225
+ #: .././admin/settings.php:459
226
  msgid "Authors:"
227
  msgstr ""
228
 
229
+ #: .././admin/settings.php:467
230
  msgid "Publication Year:"
231
  msgstr ""
232
 
233
+ #: .././admin/settings.php:475
234
  msgid "Categories:"
235
  msgstr ""
236
 
237
+ #: .././admin/settings.php:483
238
  msgid "User Type:"
239
  msgstr ""
240
 
241
+ #: .././admin/settings.php:495
242
  msgid "Advanced Tracking"
243
  msgstr "تتبع متطور"
244
 
245
+ #: .././admin/settings.php:498
246
  msgid "Page Speed SR:"
247
  msgstr "سرعة الصفحة:"
248
 
249
+ #: .././admin/settings.php:509
250
  msgid "exclude events from bounce-rate calculation"
251
  msgstr ""
252
 
253
+ #: .././admin/settings.php:520
254
  msgid "enable enhanced link attribution"
255
  msgstr ""
256
 
257
+ #: .././admin/settings.php:531
258
  msgid "enable AdSense account linking"
259
  msgstr ""
260
 
261
+ #: .././admin/settings.php:542
262
  msgid "enable cross domain tracking"
263
  msgstr ""
264
 
265
+ #: .././admin/settings.php:546
266
  msgid "Cross Domains:"
267
  msgstr "عبر الروابط التالية:"
268
 
269
+ #: .././admin/settings.php:557
270
  msgid "Exclude tracking for:"
271
  msgstr ""
272
 
273
+ #: .././admin/settings.php:645
274
  msgid "Google Analytics Errors & Debugging"
275
  msgstr ""
276
 
277
+ #: .././admin/settings.php:655
278
  msgid "Errors & Details"
279
  msgstr ""
280
 
281
+ #: .././admin/settings.php:656
282
  msgid "Plugin Settings"
283
  msgstr ""
284
 
285
+ #: .././admin/settings.php:663
286
  msgid "Last Error detected"
287
  msgstr ""
288
 
289
+ #: .././admin/settings.php:669 .././admin/settings.php:682
290
  msgid "None"
291
  msgstr ""
292
 
293
+ #: .././admin/settings.php:676
294
  msgid "Error Details"
295
  msgstr ""
296
 
297
+ #: .././admin/settings.php:696
298
  msgid "Plugin Configuration"
299
  msgstr ""
300
 
301
+ #: .././admin/settings.php:717 .././admin/settings.php:980
302
  msgid ""
303
  "Loading the required libraries. If this results in a blank screen or a fatal "
304
  "error, try this solution:"
305
  msgstr ""
306
 
307
+ #: .././admin/settings.php:717
308
  msgid "Library conflicts between WordPress plugins"
309
  msgstr ""
310
 
311
+ #: .././admin/settings.php:732 .././admin/settings.php:997
312
  msgid "Plugin authorization succeeded."
313
  msgstr "تم تفعيل تصريح الاضافة بنجاح."
314
 
315
+ #: .././admin/settings.php:747 .././admin/settings.php:1020
316
  msgid ""
317
  "The access code is <strong>NOT</strong> your <strong>Tracking ID</strong> "
318
  "(UA-XXXXX-X). Try again, and use the red link to get your access code"
319
  msgstr ""
320
 
321
+ #: .././admin/settings.php:770 .././admin/settings.php:1052
322
  msgid "Cleared Cache."
323
  msgstr "الخزن المزال."
324
 
325
+ #: .././admin/settings.php:779 .././admin/settings.php:1061
326
  msgid "Token Reseted and Revoked."
327
  msgstr "الجزء المراح والمعدل."
328
 
329
+ #: .././admin/settings.php:789
330
  msgid "All errors reseted."
331
  msgstr ""
332
 
333
+ #: .././admin/settings.php:802 .././admin/settings.php:1075
334
  msgid "All other domains/properties were removed."
335
  msgstr "كل الروابط/والخصائص تم إزالتها."
336
 
337
+ #: .././admin/settings.php:813 .././admin/settings.php:1086
338
  msgid "Google Analytics Settings"
339
  msgstr "إعدادات احصائيات كوكل"
340
 
341
+ #: .././admin/settings.php:828 .././admin/settings.php:1100
342
  msgid "Use the red link (see below) to generate and get your access code!"
343
  msgstr ""
344
 
345
+ #: .././admin/settings.php:839 .././admin/settings.php:1128
346
  msgid "Plugin Authorization"
347
  msgstr "تصريح الأضافة"
348
 
349
+ #: .././admin/settings.php:844 .././admin/settings.php:1132
350
  #, php-format
351
  msgid ""
352
  "You should watch the %1$s and read this %2$s before proceeding to "
354
  "account!"
355
  msgstr ""
356
 
357
+ #: .././admin/settings.php:844 .././admin/settings.php:1132
358
  msgid "video"
359
  msgstr "الڤيديو"
360
 
361
+ #: .././admin/settings.php:844 .././admin/settings.php:1132
362
  msgid "tutorial"
363
  msgstr "الدرس"
364
 
365
+ #: .././admin/settings.php:849 .././admin/settings.php:1139
366
  msgid "use your own API Project credentials"
367
  msgstr ""
368
 
369
+ #: .././admin/settings.php:854 .././admin/settings.php:1147
370
  msgid "API Key:"
371
  msgstr "مفتاح API:"
372
 
373
+ #: .././admin/settings.php:858 .././admin/settings.php:1151
374
  msgid "Client ID:"
375
  msgstr "معرف الزيون:"
376
 
377
+ #: .././admin/settings.php:862 .././admin/settings.php:1155
378
  msgid "Client Secret:"
379
  msgstr "سر الزبون:"
380
 
381
+ #: .././admin/settings.php:872 .././admin/settings.php:1165
382
  msgid "Clear Authorization"
383
  msgstr "أزل التصريحات"
384
 
385
+ #: .././admin/settings.php:872 .././admin/settings.php:950
386
+ #: .././admin/settings.php:1165 .././admin/settings.php:1241
387
  msgid "Clear Cache"
388
  msgstr "أزل الخزن"
389
 
390
+ #: .././admin/settings.php:872
391
  msgid "Reset Errors"
392
  msgstr ""
393
 
394
+ #: .././admin/settings.php:878 .././admin/setup.php:42 .././admin/setup.php:58
395
  msgid "General Settings"
396
  msgstr "الأعدادات العامة"
397
 
398
+ #: .././admin/settings.php:881
399
  msgid "Select View:"
400
  msgstr ""
401
 
402
+ #: .././admin/settings.php:892 .././admin/settings.php:1192
403
  msgid "Property not found"
404
  msgstr ""
405
 
406
+ #: .././admin/settings.php:898
407
  msgid "Lock Selection"
408
  msgstr ""
409
 
410
+ #: .././admin/settings.php:917
411
  msgid "Theme Color:"
412
  msgstr ""
413
 
414
+ #: .././admin/settings.php:925 .././admin/settings.php:1201
415
  msgid "Automatic Updates"
416
  msgstr ""
417
 
418
+ #: .././admin/settings.php:935 .././admin/settings.php:1211
419
  msgid ""
420
  "automatic updates for minor versions (security and maintenance releases only)"
421
  msgstr ""
422
 
423
+ #: .././admin/settings.php:950 .././admin/settings.php:1241
424
+ #: .././admin/widgets.php:32
425
  msgid "Authorize Plugin"
426
  msgstr "صرح الأضافة "
427
 
428
+ #: .././admin/settings.php:1026
429
  msgid "Properties refreshed."
430
  msgstr "تم تحديث الخصائص."
431
 
432
+ #: .././admin/settings.php:1110
433
  msgid "Network Setup"
434
  msgstr "اعدادات الشبكة"
435
 
436
+ #: .././admin/settings.php:1120
437
  msgid "use a single Google Analytics account for the entire network"
438
  msgstr ""
439
 
440
+ #: .././admin/settings.php:1165
441
  msgid "Refresh Properties"
442
  msgstr "حدث الخصائص"
443
 
444
+ #: .././admin/settings.php:1171
445
  msgid "Properties/Views Settings"
446
  msgstr "اعدادات الخصائص/المشاهدة"
447
 
448
+ #: .././admin/settings.php:1225
449
  msgid "exclude Super Admin tracking for the entire network"
450
  msgstr ""
451
 
452
+ #: .././admin/settings.php:1273
453
  msgid "Setup Tutorial & Demo"
454
  msgstr "درس التنصيب"
455
 
456
+ #: .././admin/settings.php:1281
457
+ msgid "Follow & Review"
 
 
 
 
 
458
  msgstr ""
459
 
460
  #: .././admin/settings.php:1307
510
  msgid "Web Analytics"
511
  msgstr "احصائيات الويب"
512
 
513
+ #: .././admin/setup.php:41 .././admin/setup.php:57
514
  msgid "Google Analytics"
515
  msgstr "أحصائيات كوكل"
516
 
517
+ #: .././admin/setup.php:43
518
  msgid "Backend Settings"
519
  msgstr "أعدادات العمل"
520
 
521
+ #: .././admin/setup.php:44
522
  msgid "Frontend Settings"
523
  msgstr "اعدادات الظهور"
524
 
525
+ #: .././admin/setup.php:45
526
  msgid "Tracking Code"
527
  msgstr "كود التعقب"
528
 
529
+ #: .././admin/setup.php:159 .././admin/widgets.php:117 .././front/setup.php:71
530
  msgid "Today"
531
  msgstr "اليوم"
532
 
533
+ #: .././admin/setup.php:160 .././admin/widgets.php:118 .././front/setup.php:72
534
  msgid "Yesterday"
535
  msgstr "البارحة"
536
 
537
+ #: .././admin/setup.php:161 .././admin/setup.php:162 .././admin/setup.php:163
538
+ #: .././admin/setup.php:164 .././admin/widgets.php:119
539
+ #: .././admin/widgets.php:120 .././admin/widgets.php:121
540
+ #: .././admin/widgets.php:122 .././front/setup.php:73 .././front/setup.php:74
541
+ #: .././front/setup.php:75 .././front/setup.php:76 .././front/widgets.php:64
542
+ #: .././front/widgets.php:67 .././front/widgets.php:70
543
+ #: .././front/widgets.php:158 .././front/widgets.php:159
544
+ #: .././front/widgets.php:160
545
+ #, php-format
546
+ msgid "Last %d Days"
547
+ msgstr ""
548
 
549
+ #: .././admin/setup.php:165 .././admin/setup.php:166
550
+ #: .././admin/widgets.php:123 .././admin/widgets.php:124
551
+ #: .././front/setup.php:77 .././front/setup.php:78
552
+ #, php-format
553
+ msgid "%s Year"
554
+ msgstr ""
555
 
556
+ #: .././admin/setup.php:165 .././admin/widgets.php:123 .././front/setup.php:77
557
+ msgid "One"
558
+ msgstr ""
559
 
560
+ #: .././admin/setup.php:166 .././admin/widgets.php:124 .././front/setup.php:78
561
+ msgid "Three"
562
+ msgstr ""
563
+
564
+ #: .././admin/setup.php:169 .././admin/setup.php:185 .././front/setup.php:81
565
+ #: .././front/setup.php:97
566
  msgid "Unique Views"
567
  msgstr ""
568
 
569
+ #: .././admin/setup.php:170 .././admin/setup.php:186
570
+ #: .././admin/widgets.php:130 .././admin/widgets.php:830
571
+ #: .././front/setup.php:82 .././front/setup.php:98 .././tools/gapi.php:358
572
  msgid "Users"
573
  msgstr ""
574
 
575
+ #: .././admin/setup.php:171 .././admin/widgets.php:131 .././front/setup.php:83
576
  msgid "Organic"
577
  msgstr "عضوي"
578
 
579
+ #: .././admin/setup.php:172 .././admin/setup.php:187
580
+ #: .././admin/widgets.php:132 .././admin/widgets.php:834
581
+ #: .././front/setup.php:84 .././front/setup.php:99 .././tools/gapi.php:361
582
  msgid "Page Views"
583
  msgstr "مشاهدات الصفحة"
584
 
585
+ #: .././admin/setup.php:173 .././admin/setup.php:188
586
+ #: .././admin/widgets.php:133 .././admin/widgets.php:838
587
+ #: .././front/setup.php:85 .././front/setup.php:100 .././tools/gapi.php:364
588
  msgid "Bounce Rate"
589
  msgstr "نسبة القفز"
590
 
591
+ #: .././admin/setup.php:174 .././admin/widgets.php:134 .././front/setup.php:86
592
  msgid "Location"
593
  msgstr ""
594
 
595
+ #: .././admin/setup.php:175 .././admin/widgets.php:136 .././front/setup.php:87
596
+ #: .././tools/gapi.php:503
597
  msgid "Referrers"
598
  msgstr ""
599
 
600
+ #: .././admin/setup.php:176 .././admin/widgets.php:137 .././front/setup.php:88
601
+ #: .././tools/gapi.php:536
602
  msgid "Searches"
603
  msgstr ""
604
 
605
+ #: .././admin/setup.php:177 .././admin/widgets.php:138 .././front/setup.php:89
606
  msgid "Traffic Details"
607
  msgstr ""
608
 
609
+ #: .././admin/setup.php:180 .././admin/widgets.php:505
610
+ #: .././admin/widgets.php:590 .././admin/widgets.php:757
611
+ #: .././admin/widgets.php:861 .././front/setup.php:92
612
  msgid "A JavaScript Error is blocking plugin resources!"
613
  msgstr ""
614
 
615
+ #: .././admin/setup.php:181 .././admin/widgets.php:681 .././front/setup.php:93
616
  msgid "Traffic Mediums"
617
  msgstr ""
618
 
619
+ #: .././admin/setup.php:182 .././admin/widgets.php:696 .././front/setup.php:94
620
  msgid "Visitor Type"
621
  msgstr ""
622
 
623
+ #: .././admin/setup.php:183 .././admin/widgets.php:711 .././front/setup.php:95
624
  msgid "Social Networks"
625
  msgstr ""
626
 
627
+ #: .././admin/setup.php:184 .././admin/widgets.php:726 .././front/setup.php:96
628
  msgid "Search Engines"
629
  msgstr ""
630
 
631
+ #: .././admin/setup.php:189 .././admin/widgets.php:842
632
+ #: .././front/setup.php:101
633
  msgid "Organic Search"
634
  msgstr ""
635
 
636
+ #: .././admin/setup.php:190 .././admin/widgets.php:846
637
+ #: .././front/setup.php:102
638
  msgid "Pages/Session"
639
  msgstr ""
640
 
641
+ #: .././admin/setup.php:191 .././admin/widgets.php:517
642
+ #: .././admin/widgets.php:531 .././admin/widgets.php:541
643
+ #: .././admin/widgets.php:602 .././admin/widgets.php:616
644
+ #: .././admin/widgets.php:630 .././admin/widgets.php:644
645
+ #: .././admin/widgets.php:658 .././admin/widgets.php:668
646
+ #: .././admin/widgets.php:770 .././admin/widgets.php:782
647
+ #: .././admin/widgets.php:873 .././admin/widgets.php:887
648
+ #: .././admin/widgets.php:897 .././front/setup.php:103
649
  msgid "Invalid response, more details in JavaScript Console (F12)."
650
  msgstr ""
651
 
652
+ #: .././admin/setup.php:192 .././front/setup.php:104
653
  msgid "Not enough data collected"
654
  msgstr ""
655
 
656
+ #: .././admin/setup.php:193 .././admin/widgets.php:522
657
+ #: .././admin/widgets.php:536 .././admin/widgets.php:607
658
+ #: .././admin/widgets.php:621 .././admin/widgets.php:635
659
+ #: .././admin/widgets.php:649 .././admin/widgets.php:663
660
+ #: .././admin/widgets.php:775 .././admin/widgets.php:777
661
+ #: .././admin/widgets.php:878 .././admin/widgets.php:892
662
+ #: .././front/setup.php:105 .././front/widgets.php:100
 
663
  msgid "This report is unavailable"
664
  msgstr ""
665
 
666
+ #: .././admin/setup.php:194 .././front/setup.php:106
667
  msgid "report generated by"
668
  msgstr ""
669
 
670
+ #: .././admin/setup.php:225
671
  msgid "Settings"
672
  msgstr "الاعدادات"
673
 
674
+ #: .././admin/setup.php:237
675
+ #, php-format
676
+ msgid "Google Analytics Dashboard for WP has been updated to version %s."
677
+ msgstr ""
678
+
679
+ #: .././admin/setup.php:237
680
+ #, php-format
681
+ msgid "For details, check out %1$s and %2$s."
682
+ msgstr ""
683
+
684
+ #: .././admin/setup.php:237
685
+ msgid "the documentation page"
686
+ msgstr ""
687
+
688
+ #: .././admin/setup.php:237
689
+ msgid "the plugin&#39;s settings page"
690
+ msgstr ""
691
+
692
+ #: .././admin/widgets.php:27 .././front/widgets.php:21
693
  msgid "Google Analytics Dashboard"
694
  msgstr "لوحة أحصائيات كوكل"
695
 
696
+ #: .././admin/widgets.php:32
697
  msgid "This plugin needs an authorization:"
698
  msgstr "هذه الاضافة تحتاج الى تصريح:"
699
 
700
+ #: .././admin/widgets.php:66
701
  msgid "Something went wrong while retrieving profiles list."
702
  msgstr "حدث خطأ ما اثناء استرجاع قائمة البروفايلات."
703
 
704
+ #: .././admin/widgets.php:66
705
  msgid "More details"
706
  msgstr "المزيد من التفاصيل"
707
 
708
+ #: .././admin/widgets.php:79 .././admin/widgets.php:90
709
  msgid "An admin should asign a default Google Analytics Profile."
710
  msgstr "المدير يجب ان يحصل على حساب احصائيات كوكل رئيسي."
711
 
712
+ #: .././admin/widgets.php:79 .././admin/widgets.php:90
713
  msgid "Select Domain"
714
  msgstr "حدد النطاق"
715
 
716
+ #: .././admin/widgets.php:95
717
  msgid ""
718
  "Something went wrong while retrieving property data. You need to create and "
719
  "properly configure a Google Analytics account:"
721
  "حدث خطأ ما اثناء استرجاع بيانات الملكية. تحتاج الى انشاء واعداد حساب كوكل "
722
  "للأحصائيات بصورة صحيحة:"
723
 
724
+ #: .././admin/widgets.php:95
725
  msgid "Find out more!"
726
  msgstr "اعرف أكثر!"
727
 
728
+ #: .././admin/widgets.php:116
729
  msgid "Real-Time"
730
  msgstr "الوقت الحقيقي"
731
 
732
+ #: .././admin/widgets.php:129 .././admin/widgets.php:826
733
+ #: .././front/widgets.php:36 .././tools/gapi.php:373 .././tools/gapi.php:503
734
+ #: .././tools/gapi.php:536 .././tools/gapi.php:586 .././tools/gapi.php:666
735
+ #: .././tools/gapi.php:695
 
 
 
 
 
736
  msgid "Sessions"
737
  msgstr ""
738
 
739
+ #: .././admin/widgets.php:135 .././tools/gapi.php:471
740
  msgid "Pages"
741
  msgstr ""
742
 
743
+ #: .././admin/widgets.php:236 .././admin/widgets.php:478
744
  msgid "REFERRAL"
745
  msgstr "المصدر"
746
 
747
+ #: .././admin/widgets.php:240 .././admin/widgets.php:479
748
  msgid "ORGANIC"
749
  msgstr "عضوي"
750
 
751
+ #: .././admin/widgets.php:244 .././admin/widgets.php:364
752
+ #: .././admin/widgets.php:480
753
  msgid "SOCIAL"
754
  msgstr "اجتماعي"
755
 
756
+ #: .././admin/widgets.php:248 .././admin/widgets.php:367
757
+ #: .././admin/widgets.php:481
758
  msgid "CAMPAIGN"
759
  msgstr ""
760
 
761
+ #: .././admin/widgets.php:252 .././admin/widgets.php:370
762
+ #: .././admin/widgets.php:484
763
  msgid "DIRECT"
764
  msgstr "مباشر"
765
 
766
+ #: .././admin/widgets.php:256 .././admin/widgets.php:485
767
  msgid "NEW"
768
  msgstr "جديد"
769
 
770
+ #: .././admin/widgets.php:358
771
  msgid "REFERRALS"
772
  msgstr "المصادر"
773