Google Analytics for WordPress by MonsterInsights - Version 5.1.4

Version Description

Release Date: December 2nd, 2014

  • Enhancements:

    • Added GA property name to 'Analytics profile' selection in settings. Thanks stephenyeargin for reporting.
    • Removed firebug lite as it's rather obsolete with todays development consoles.
  • i18n:

    • Several string fixes for easier translation.
    • Added en_GB and he_IL.
  • Bugfixes:

    • Fixes a bug where site admins for sites on a multisite setup would receive a notice when visiting another site on the same setup which they didn't administrate, props nerrad.
    • Fixes a bug where saving the admin settings would cause non-string form fields to be ignored or rejected.
Download this release

Release Info

Developer joostdevalk
Plugin Icon 128x128 Google Analytics for WordPress by MonsterInsights
Version 5.1.4
Comparing to
See all releases

Code changes from version 5.1.3 to 5.1.4

CONTRIBUTING.md CHANGED
@@ -15,6 +15,8 @@ For localization, please refer to [translate.yoast.com](http://translate.yoast.c
15
  * Clearly describe the issue including steps to reproduce the bug.
16
  * Make sure you fill in the earliest version that you know has the issue as well as the version of WordPress you're using.
17
 
 
 
18
  ## Making Changes
19
 
20
  * Fork the repository on GitHub
15
  * Clearly describe the issue including steps to reproduce the bug.
16
  * Make sure you fill in the earliest version that you know has the issue as well as the version of WordPress you're using.
17
 
18
+ _Note:_ do **not** report security issues here. Email them to security at yoast dot com so we can deal with them swiftly and securely.
19
+
20
  ## Making Changes
21
 
22
  * Fork the repository on GitHub
admin/class-admin-menu.php CHANGED
@@ -52,7 +52,7 @@ if ( ! class_exists( 'Yoast_GA_Admin_Menu' ) ) {
52
 
53
  // Add main page
54
  add_menu_page(
55
- __( 'Yoast Google Analytics:', 'google-analytics-for-wordpress' ) . ' ' . __( 'General Settings', 'google-analytics-for-wordpress' ), __( 'Analytics', 'google-analytics-for-wordpress' ), 'manage_options', 'yst_ga_' . $menu_name,
56
  array(
57
  $this->target_object,
58
  'load_page',
52
 
53
  // Add main page
54
  add_menu_page(
55
+ __( 'Yoast Google Analytics:', 'google-analytics-for-wordpress' ) . ' ' . __( 'General settings', 'google-analytics-for-wordpress' ), __( 'Analytics', 'google-analytics-for-wordpress' ), 'manage_options', 'yst_ga_' . $menu_name,
56
  array(
57
  $this->target_object,
58
  'load_page',
admin/class-admin.php CHANGED
@@ -84,7 +84,7 @@ if ( ! class_exists( 'Yoast_GA_Admin' ) ) {
84
  public function save_settings( $data ) {
85
  foreach ( $data as $key => $value ) {
86
  if ( $key != 'return_tab' ) {
87
- if ( $key != 'custom_code' ) {
88
  $value = strip_tags( $value );
89
  }
90
  $this->options[$key] = $value;
@@ -373,6 +373,10 @@ if ( ! class_exists( 'Yoast_GA_Admin' ) ) {
373
  }
374
  if ( count( $values ) >= 1 ) {
375
  foreach ( $values as $value ) {
 
 
 
 
376
  if ( is_array( $this->options[$name] ) ) {
377
  if ( in_array( $value['id'], $this->options[$name] ) ) {
378
  $select .= '<option value="' . $value['id'] . '" selected="selected">' . stripslashes( $value['name'] ) . '</option>';
@@ -382,6 +386,10 @@ if ( ! class_exists( 'Yoast_GA_Admin' ) ) {
382
  } else {
383
  $select .= '<option value="' . $value['id'] . '" ' . selected( $this->options[$name], $value['id'], false ) . '>' . stripslashes( $value['name'] ) . '</option>';
384
  }
 
 
 
 
385
  }
386
  }
387
  $select .= '</select>';
84
  public function save_settings( $data ) {
85
  foreach ( $data as $key => $value ) {
86
  if ( $key != 'return_tab' ) {
87
+ if ( $key != 'custom_code' && is_string( $value ) ) {
88
  $value = strip_tags( $value );
89
  }
90
  $this->options[$key] = $value;
373
  }
374
  if ( count( $values ) >= 1 ) {
375
  foreach ( $values as $value ) {
376
+ if( isset($value['parent_name']) ){
377
+ $select .= '<optgroup label="' . $value['parent_name'] . '">';
378
+ }
379
+
380
  if ( is_array( $this->options[$name] ) ) {
381
  if ( in_array( $value['id'], $this->options[$name] ) ) {
382
  $select .= '<option value="' . $value['id'] . '" selected="selected">' . stripslashes( $value['name'] ) . '</option>';
386
  } else {
387
  $select .= '<option value="' . $value['id'] . '" ' . selected( $this->options[$name], $value['id'], false ) . '>' . stripslashes( $value['name'] ) . '</option>';
388
  }
389
+
390
+ if( isset($value['parent_name']) ){
391
+ $select .= '</optgroup>';
392
+ }
393
  }
394
  }
395
  $select .= '</select>';
admin/class-google-analytics.php CHANGED
@@ -85,12 +85,13 @@ if ( ! class_exists( 'Yoast_Google_Analytics', false ) ) {
85
  * @return array
86
  */
87
  public function get_profiles() {
88
-
89
  $return = array();
 
 
90
  $response = $this->do_request( 'https://www.googleapis.com/analytics/v2.4/management/accounts/~all/webproperties/~all/profiles', 'https://www.googleapis.com/auth/analytics.readonly' );
91
 
92
  if ( $response ) {
93
- $this->save_profile_response( $response );
94
 
95
  $return = $this->parse_profile_response( $response );
96
  }
@@ -98,6 +99,31 @@ if ( ! class_exists( 'Yoast_Google_Analytics', false ) ) {
98
  return $return;
99
  }
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  /**
102
  * Getting a access token
103
  *
@@ -212,8 +238,10 @@ if ( ! class_exists( 'Yoast_Google_Analytics', false ) ) {
212
  *
213
  * @param $response
214
  */
215
- protected function save_profile_response( $response ) {
216
- $this->options['ga_api_response'] = $response;
 
 
217
  $this->update_options();
218
  }
219
 
@@ -247,10 +275,16 @@ if ( ! class_exists( 'Yoast_Google_Analytics', false ) ) {
247
  }
248
 
249
  foreach ( $ga_accounts as $key => $ga_account ) {
250
- $return[] = array(
251
  'id' => $ga_account['ua'],
252
  'name' => $ga_account['title'] . ' (' . $ga_account['ua'] . ')',
253
  );
 
 
 
 
 
 
254
  }
255
  }
256
  } catch ( Exception $e ) {
85
  * @return array
86
  */
87
  public function get_profiles() {
 
88
  $return = array();
89
+ $accounts = $this->format_accounts_call( $this->do_request( 'https://www.googleapis.com/analytics/v3/management/accounts/~all/webproperties', 'https://www.googleapis.com/auth/analytics.readonly' ) );
90
+
91
  $response = $this->do_request( 'https://www.googleapis.com/analytics/v2.4/management/accounts/~all/webproperties/~all/profiles', 'https://www.googleapis.com/auth/analytics.readonly' );
92
 
93
  if ( $response ) {
94
+ $this->save_profile_response( $response, $accounts );
95
 
96
  $return = $this->parse_profile_response( $response );
97
  }
99
  return $return;
100
  }
101
 
102
+ /**
103
+ * Format the accounts request
104
+ *
105
+ * @param $response
106
+ *
107
+ * @return array
108
+ */
109
+ private function format_accounts_call( $response ) {
110
+ if ( isset( $response['response']['code'] ) && $response['response']['code'] == 200 ) {
111
+ $body = json_decode( $response['body'] );
112
+
113
+ if ( is_array( $body->items ) ) {
114
+ $accounts = array();
115
+
116
+ foreach ( $body->items as $item ) {
117
+ $accounts[(string) $item->id] = (string) $item->name;
118
+ }
119
+
120
+ return $accounts;
121
+ }
122
+ }
123
+
124
+ return array();
125
+ }
126
+
127
  /**
128
  * Getting a access token
129
  *
238
  *
239
  * @param $response
240
  */
241
+ protected function save_profile_response( $response, $accounts ) {
242
+ $this->options['ga_api_response'] = $response;
243
+ $this->options['ga_api_response_accounts'] = $accounts;
244
+
245
  $this->update_options();
246
  }
247
 
275
  }
276
 
277
  foreach ( $ga_accounts as $key => $ga_account ) {
278
+ $tmp_array = array(
279
  'id' => $ga_account['ua'],
280
  'name' => $ga_account['title'] . ' (' . $ga_account['ua'] . ')',
281
  );
282
+
283
+ if ( isset( $this->options['ga_api_response_accounts'][$ga_account['ua']] ) ) {
284
+ $tmp_array['parent_name'] = $this->options['ga_api_response_accounts'][$ga_account['ua']];
285
+ }
286
+
287
+ $return[] = $tmp_array;
288
  }
289
  }
290
  } catch ( Exception $e ) {
admin/pages/dashboard.php CHANGED
@@ -3,7 +3,7 @@ global $yoast_ga_admin;
3
 
4
  echo $yoast_ga_admin->content_head();
5
  ?>
6
- <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: Dashboard', 'google-analytics-for-wordpress' ); ?></h2>
7
 
8
  <div id="ga-promote">
9
  <p><?php printf( __( 'This feature %1$swill be coming soon%2$s. For now, you can %3$sread our posts on Analytics%2$s, or of course, %4$slog into Google Analytics%2$s yourself.', 'google-analytics-for-wordpress' ), '<a href="https://yoast.com/google-analytics-5/#utm_medium=textlink&utm_source=gawp-config&utm_campaign=wpgaplugin">', '</a>', '<a href="https://yoast.com/cat/analytics/#utm_medium=textlink&utm_source=gawp-config&utm_campaign=wpgaplugin">', '<a href="http://www.google.com/analytics/">' ); ?>
3
 
4
  echo $yoast_ga_admin->content_head();
5
  ?>
6
+ <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: ', 'google-analytics-for-wordpress' ) . __( 'Dashboard', 'google-analytics-for-wordpress' ); ?></h2>
7
 
8
  <div id="ga-promote">
9
  <p><?php printf( __( 'This feature %1$swill be coming soon%2$s. For now, you can %3$sread our posts on Analytics%2$s, or of course, %4$slog into Google Analytics%2$s yourself.', 'google-analytics-for-wordpress' ), '<a href="https://yoast.com/google-analytics-5/#utm_medium=textlink&utm_source=gawp-config&utm_campaign=wpgaplugin">', '</a>', '<a href="https://yoast.com/cat/analytics/#utm_medium=textlink&utm_source=gawp-config&utm_campaign=wpgaplugin">', '<a href="http://www.google.com/analytics/">' ); ?>
admin/pages/extensions.php CHANGED
@@ -7,7 +7,7 @@ $has_extensions = false;
7
 
8
  $extensions = $yoast_ga_admin->get_extensions();
9
  ?>
10
- <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: Extensions', 'google-analytics-for-wordpress' ); ?></h2>
11
 
12
  <h2 class="nav-tab-wrapper" id="ga-tabs">
13
  <a class="nav-tab active" id="extensions-tab" href="#top#extensions"><?php _e( 'Extensions', 'google-analytics-for-wordpress' ); ?></a>
7
 
8
  $extensions = $yoast_ga_admin->get_extensions();
9
  ?>
10
+ <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: ', 'google-analytics-for-wordpress' ) . __( 'Extensions', 'google-analytics-for-wordpress' ); ?></h2>
11
 
12
  <h2 class="nav-tab-wrapper" id="ga-tabs">
13
  <a class="nav-tab active" id="extensions-tab" href="#top#extensions"><?php _e( 'Extensions', 'google-analytics-for-wordpress' ); ?></a>
admin/pages/settings.php CHANGED
@@ -3,7 +3,7 @@ global $yoast_ga_admin;
3
 
4
  echo $yoast_ga_admin->content_head();
5
  ?>
6
- <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: Settings', 'google-analytics-for-wordpress' ); ?></h2>
7
 
8
  <?php
9
  settings_errors( 'yoast_google_analytics' );
@@ -67,15 +67,15 @@ echo $yoast_ga_admin->create_form( 'settings' );
67
  <?php
68
  echo $yoast_ga_admin->input( 'checkbox', __( 'Track outbound click & downloads', 'google-analytics-for-wordpress' ), 'track_outbound', null, __( 'Clicks &amp; downloads will be tracked as events, you can find these under Content &raquo; Event Tracking in your Google Analytics reports.', 'google-analytics-for-wordpress' ) );
69
  echo $yoast_ga_admin->input( 'checkbox', __( 'Allow tracking of anonymous data', 'google-analytics-for-wordpress' ), 'anonymous_data', null, __( 'By allowing us to track anonymous data we can better help you, because we know with which WordPress configurations, themes and plugins we should test. No personal data will be submitted.', 'google-analytics-for-wordpress' ) );
70
- echo $yoast_ga_admin->input( 'checkbox', __( 'Anonymize IP\'s', 'google-analytics-for-wordpress' ), 'anonymize_ips', null, __( 'This adds <code><a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp" target="_blank">_anonymizeIp</a></code>, telling Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage.', 'google-analytics-for-wordpress' ) );
71
  echo $yoast_ga_admin->select( 'Ignore users', 'ignore_users', $yoast_ga_admin->get_userroles(), __( 'Users of the role you select will be ignored, so if you select Editor, all Editors will be ignored.', 'google-analytics-for-wordpress' ), true );
72
  ?>
73
  </div>
74
  <div id="universal" class="gatab">
75
  <?php
76
  echo '<h2>' . __( 'Universal settings', 'google-analytics-for-wordpress' ) . '</h2>';
77
- echo $yoast_ga_admin->input( 'checkbox', __( 'Enable Universal tracking', 'google-analytics-for-wordpress' ), 'enable_universal', null, __( 'First enable Universal tracking in your Google Analytics account. How to do that, please read <a href="http://kb.yoast.com/article/125-universal-analytics#utm_medium=kb-link&utm_source=gawp-config&utm_campaign=wpgaplugin" target="_blank">this guide</a> to learn how to do that.', 'google-analytics-for-wordpress' ) );
78
- echo $yoast_ga_admin->input( 'checkbox', __( 'Enable Demographics and Interest Reports', 'google-analytics-for-wordpress' ), 'demographics', null, __( 'You have to enable the Demographics in Google Analytics before you can see the tracking data. We have a doc in our <a href="http://kb.yoast.com/article/154-enable-demographics-and-interests-report-in-google-analytics/#utm_medium=kb-link&utm_source=gawp-config&utm_campaign=wpgaplugin" target="_blank">knowlegde base</a> about this feature.', 'google-analytics-for-wordpress' ) );
79
  ?>
80
  </div>
81
  <div id="advanced" class="gatab">
@@ -90,8 +90,8 @@ echo $yoast_ga_admin->create_form( 'settings' );
90
  echo $yoast_ga_admin->input( 'text', __( 'Label for those links', 'google-analytics-for-wordpress' ), 'track_internal_as_label', null, 'The label to use for these links, this will be added to where the click came from, so if the label is "aff", the label for a click from the content of an article becomes "outbound-article-aff".' );
91
 
92
  echo $yoast_ga_admin->input( 'checkbox', __( 'Tag links in RSS feed with campaign variables', 'google-analytics-for-wordpress' ), 'tag_links_in_rss', null, __( 'Do not use this feature if you use FeedBurner, as FeedBurner can do this automatically, and better than this plugin can. Check <a href="https://support.google.com/feedburner/answer/165769?hl=en&amp;ref_topic=13075" target="_blank">this help page</a> for info on how to enable this feature in FeedBurner.', 'google-analytics-for-wordpress' ) );
93
- echo $yoast_ga_admin->input( 'checkbox', __( 'Allow anchor', 'google-analytics-for-wordpress' ), 'allow_anchor', null, __( 'This adds a <code><a href="http://code.google.com/apis/analytics/docs/gaJSApiCampaignTracking.html#_gat.GA_Tracker_._setAllowAnchor" target="_blank">_setAllowAnchor</a></code> call to your tracking code, and makes RSS link tagging use a # as well.', 'google-analytics-for-wordpress' ) );
94
- echo $yoast_ga_admin->input( 'checkbox', __( 'Add <code>_setAllowLinker</code>', 'google-analytics-for-wordpress' ), 'add_allow_linker', null, __( 'This adds a <code><a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setAllowLinker" target="_blank">_setAllowLinker</a></code> call to your tracking code, allowing you to use <code>_link</code> and related functions.', 'google-analytics-for-wordpress' ) );
95
  echo $yoast_ga_admin->textarea( 'Custom code', 'custom_code', __( 'Not for the average user: this allows you to add a line of code, to be added before the <code>trackPageview</code> call.', 'google-analytics-for-wordpress' ) );
96
 
97
  do_action( 'yst_ga_advanced-tab' );
@@ -109,11 +109,10 @@ echo $yoast_ga_admin->create_form( 'settings' );
109
  echo '<h2>' . __( 'Debug settings', 'google-analytics-for-wordpress' ) . '</h2>';
110
 
111
  echo '<div id="ga-promote">';
112
- echo '<p class="ga-topdescription">' . __( 'If you want to confirm that tracking on your blog is working as it should, enable these options and check the console in Firebug (for Firefox), Firebug Lite (for other browsers) or Chrome & Safari\'s Web Inspector. Be absolutely sure to disable debugging afterwards, as it is slower than normal tracking.', 'google-analytics-for-wordpress' ) . '</p>';
113
- echo '<p class="ga-topdescription"><strong>' . __( 'Note', 'google-analytics-for-wordpress' ) . ':</strong> ' . __( 'the debugging and firebug scripts are only loaded for admins.', 'google-analytics-for-wordpress' ) . '</p>';
114
  echo '</div>';
115
  echo $yoast_ga_admin->input( 'checkbox', __( 'Enable debug mode', 'google-analytics-for-wordpress' ), 'debug_mode' );
116
- echo $yoast_ga_admin->input( 'checkbox', __( 'Enable Firebug Lite', 'google-analytics-for-wordpress' ), 'firebug_lite' );
117
  ?>
118
  </div>
119
  </div>
3
 
4
  echo $yoast_ga_admin->content_head();
5
  ?>
6
+ <h2 id="yoast_ga_title"><?php echo __( 'Yoast Google Analytics: ', 'google-analytics-for-wordpress' ) . __( 'Settings', 'google-analytics-for-wordpress' ); ?></h2>
7
 
8
  <?php
9
  settings_errors( 'yoast_google_analytics' );
67
  <?php
68
  echo $yoast_ga_admin->input( 'checkbox', __( 'Track outbound click & downloads', 'google-analytics-for-wordpress' ), 'track_outbound', null, __( 'Clicks &amp; downloads will be tracked as events, you can find these under Content &raquo; Event Tracking in your Google Analytics reports.', 'google-analytics-for-wordpress' ) );
69
  echo $yoast_ga_admin->input( 'checkbox', __( 'Allow tracking of anonymous data', 'google-analytics-for-wordpress' ), 'anonymous_data', null, __( 'By allowing us to track anonymous data we can better help you, because we know with which WordPress configurations, themes and plugins we should test. No personal data will be submitted.', 'google-analytics-for-wordpress' ) );
70
+ echo $yoast_ga_admin->input( 'checkbox', __( 'Anonymize IP\'s', 'google-analytics-for-wordpress' ), 'anonymize_ips', null, sprintf( __( 'This adds <code>%1$s _anonymizeIp%2$s</code>, telling Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage.', 'google-analytics-for-wordpress' ), '<a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gat.html#_gat._anonymizeIp" target="_blank">', '</a>' ) );
71
  echo $yoast_ga_admin->select( 'Ignore users', 'ignore_users', $yoast_ga_admin->get_userroles(), __( 'Users of the role you select will be ignored, so if you select Editor, all Editors will be ignored.', 'google-analytics-for-wordpress' ), true );
72
  ?>
73
  </div>
74
  <div id="universal" class="gatab">
75
  <?php
76
  echo '<h2>' . __( 'Universal settings', 'google-analytics-for-wordpress' ) . '</h2>';
77
+ echo $yoast_ga_admin->input( 'checkbox', __( 'Enable Universal tracking', 'google-analytics-for-wordpress' ), 'enable_universal', null, sprintf( __( 'First enable Universal tracking in your Google Analytics account. How to do that, please read %1$sthis guide%2$s to learn how to do that.', 'google-analytics-for-wordpress' ), '<a href="http://kb.yoast.com/article/125-universal-analytics#utm_medium=kb-link&utm_source=gawp-config&utm_campaign=wpgaplugin" target="_blank">', '</a>' ) );
78
+ echo $yoast_ga_admin->input( 'checkbox', __( 'Enable Demographics and Interest Reports', 'google-analytics-for-wordpress' ), 'demographics', null, sprintf( __( 'You have to enable the Demographics in Google Analytics before you can see the tracking data. We have a doc in our %1$sknowlegde base%2$s about this feature.', 'google-analytics-for-wordpress' ), '<a href="http://kb.yoast.com/article/154-enable-demographics-and-interests-report-in-google-analytics/#utm_medium=kb-link&utm_source=gawp-config&utm_campaign=wpgaplugin" target="_blank">', '</a>' ) );
79
  ?>
80
  </div>
81
  <div id="advanced" class="gatab">
90
  echo $yoast_ga_admin->input( 'text', __( 'Label for those links', 'google-analytics-for-wordpress' ), 'track_internal_as_label', null, 'The label to use for these links, this will be added to where the click came from, so if the label is "aff", the label for a click from the content of an article becomes "outbound-article-aff".' );
91
 
92
  echo $yoast_ga_admin->input( 'checkbox', __( 'Tag links in RSS feed with campaign variables', 'google-analytics-for-wordpress' ), 'tag_links_in_rss', null, __( 'Do not use this feature if you use FeedBurner, as FeedBurner can do this automatically, and better than this plugin can. Check <a href="https://support.google.com/feedburner/answer/165769?hl=en&amp;ref_topic=13075" target="_blank">this help page</a> for info on how to enable this feature in FeedBurner.', 'google-analytics-for-wordpress' ) );
93
+ echo $yoast_ga_admin->input( 'checkbox', __( 'Allow anchor', 'google-analytics-for-wordpress' ), 'allow_anchor', null, sprintf( __( 'This adds a <code>%1$s_setAllowAnchor%2$s</code> call to your tracking code, and makes RSS link tagging use a # as well.', 'google-analytics-for-wordpress' ), '<a href="http://code.google.com/apis/analytics/docs/gaJSApiCampaignTracking.html#_gat.GA_Tracker_._setAllowAnchor" target="_blank">', '</a>' ) );
94
+ echo $yoast_ga_admin->input( 'checkbox', __( 'Add <code>_setAllowLinker</code>', 'google-analytics-for-wordpress' ), 'add_allow_linker', null, sprintf( __( 'This adds a <code>%1$s_setAllowLinker%2$s</code> call to your tracking code, allowing you to use <code>_link</code> and related functions.', 'google-analytics-for-wordpress' ), '<a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setAllowLinker" target="_blank">', '</a>' ) );
95
  echo $yoast_ga_admin->textarea( 'Custom code', 'custom_code', __( 'Not for the average user: this allows you to add a line of code, to be added before the <code>trackPageview</code> call.', 'google-analytics-for-wordpress' ) );
96
 
97
  do_action( 'yst_ga_advanced-tab' );
109
  echo '<h2>' . __( 'Debug settings', 'google-analytics-for-wordpress' ) . '</h2>';
110
 
111
  echo '<div id="ga-promote">';
112
+ echo '<p class="ga-topdescription">' . __( 'If you want to confirm that tracking on your blog is working as it should, enable this option and check the console of your browser. Be absolutely sure to disable debugging afterwards, as it is slower than normal tracking.', 'google-analytics-for-wordpress' ) . '</p>';
113
+ echo '<p class="ga-topdescription"><strong>' . __( 'Note', 'google-analytics-for-wordpress' ) . ':</strong> ' . __( 'the debugging scripts is only loaded for admins.', 'google-analytics-for-wordpress' ) . '</p>';
114
  echo '</div>';
115
  echo $yoast_ga_admin->input( 'checkbox', __( 'Enable debug mode', 'google-analytics-for-wordpress' ), 'debug_mode' );
 
116
  ?>
117
  </div>
118
  </div>
css/chosen.css CHANGED
@@ -4,6 +4,7 @@
4
  zoom: 1;
5
  position: relative;
6
  font-size: 13px;
 
7
  *display: inline;
8
  }
9
 
@@ -17,6 +18,7 @@
17
  background: #fff;
18
  box-shadow: 0 4px 5px rgba(0,0,0,0.15);
19
  }
 
20
  /* @end */
21
 
22
  /* @group Single Chosen */
@@ -36,6 +38,7 @@
36
  line-height: 24px;
37
  white-space: nowrap;
38
  text-decoration: none;
 
39
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );
40
  }
41
 
@@ -50,6 +53,7 @@
50
  white-space: nowrap;
51
  text-overflow: ellipsis;
52
  -ms-text-overflow: ellipsis;
 
53
  -o-text-overflow: ellipsis;
54
  }
55
 
@@ -111,6 +115,7 @@
111
  border-radius: 0 0 4px 4px;
112
  background-clip: padding-box;
113
  }
 
114
  /* @end */
115
 
116
  .chzn-container-single-nosearch .chzn-search input {
@@ -173,6 +178,7 @@
173
  box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0,0,0,0.05);
174
  line-height: 13px;
175
  cursor: default;
 
176
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
177
  }
178
 
@@ -182,6 +188,7 @@
182
  color: #666;
183
  background-color: #e4e4e4;
184
  background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
 
185
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
186
  }
187
 
@@ -207,6 +214,7 @@
207
  .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
208
  background-position: -42px -10px;
209
  }
 
210
  /* @end */
211
 
212
  /* @group Results */
@@ -217,6 +225,7 @@
217
  max-height: 240px;
218
  margin: 0 4px 4px 0;
219
  padding: 0 0 0 4px;
 
220
  -webkit-overflow-scrolling: touch;
221
  }
222
 
@@ -242,6 +251,7 @@
242
  color: #fff;
243
  background-color: #3875d7;
244
  background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
 
245
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );
246
  }
247
 
@@ -277,7 +287,7 @@
277
  position: absolute;
278
  z-index: 1;
279
  width: 321px;
280
- /* This should by dynamic with js */
281
  margin: 0 4px;
282
  background: white;
283
  text-align: center;
@@ -301,6 +311,7 @@
301
  .chzn-container .chzn-results-scroll-up span {
302
  background: url("../img/chosen-sprite.png") no-repeat -22px -3px;
303
  }
 
304
  /* @end */
305
 
306
  /* @group Active */
@@ -316,6 +327,7 @@
316
  background-color: #eee;
317
  background-image: linear-gradient(#eee 20%, #fff 80%);
318
  box-shadow: 0 1px 0 #fff inset;
 
319
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
320
  }
321
 
@@ -336,6 +348,7 @@
336
  .chzn-container-active .chzn-choices .search-field input {
337
  color: #111 !important;
338
  }
 
339
  /* @end */
340
 
341
  /* @group Disabled Support */
@@ -365,6 +378,7 @@
365
  .chzn-rtl .chzn-single span {
366
  margin-right: 0;
367
  margin-left: 26px;
 
368
  direction: rtl;
369
  }
370
 
@@ -414,6 +428,7 @@
414
  padding: 4px 5px 4px 20px;
415
  background: #fff url("../img/chosen-sprite.png") no-repeat -30px -20px;
416
  background: url("../img/chosen-sprite.png") no-repeat -30px -20px, linear-gradient(#eee 1%, #fff 15%);
 
417
  direction: rtl;
418
  }
419
 
@@ -424,14 +439,22 @@
424
  .chzn-container-single.chzn-rtl .chzn-single-with-drop div b {
425
  background-position: -12px 2px;
426
  }
 
427
  /* @end */
428
 
429
  /* @group Retina compatibility */
430
  @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
431
- .chzn-rtl .chzn-search input, .chzn-container-single .chzn-single abbr, .chzn-container-single .chzn-single div b, .chzn-container-single .chzn-search input, .chzn-container-multi .chzn-choices .search-choice .search-choice-close, .chzn-container .chzn-results-scroll-down span, .chzn-container .chzn-results-scroll-up span {
 
 
 
 
 
 
432
  background-image: url("../img/chosen-sprite@2x.png") !important;
433
  background-repeat: no-repeat !important;
434
  background-size: 52px 37px !important;
435
  }
436
  }
 
437
  /* @end */
4
  zoom: 1;
5
  position: relative;
6
  font-size: 13px;
7
+
8
  *display: inline;
9
  }
10
 
18
  background: #fff;
19
  box-shadow: 0 4px 5px rgba(0,0,0,0.15);
20
  }
21
+
22
  /* @end */
23
 
24
  /* @group Single Chosen */
38
  line-height: 24px;
39
  white-space: nowrap;
40
  text-decoration: none;
41
+
42
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );
43
  }
44
 
53
  white-space: nowrap;
54
  text-overflow: ellipsis;
55
  -ms-text-overflow: ellipsis;
56
+
57
  -o-text-overflow: ellipsis;
58
  }
59
 
115
  border-radius: 0 0 4px 4px;
116
  background-clip: padding-box;
117
  }
118
+
119
  /* @end */
120
 
121
  .chzn-container-single-nosearch .chzn-search input {
178
  box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0,0,0,0.05);
179
  line-height: 13px;
180
  cursor: default;
181
+
182
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
183
  }
184
 
188
  color: #666;
189
  background-color: #e4e4e4;
190
  background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
191
+
192
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
193
  }
194
 
214
  .chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
215
  background-position: -42px -10px;
216
  }
217
+
218
  /* @end */
219
 
220
  /* @group Results */
225
  max-height: 240px;
226
  margin: 0 4px 4px 0;
227
  padding: 0 0 0 4px;
228
+
229
  -webkit-overflow-scrolling: touch;
230
  }
231
 
251
  color: #fff;
252
  background-color: #3875d7;
253
  background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
254
+
255
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );
256
  }
257
 
287
  position: absolute;
288
  z-index: 1;
289
  width: 321px;
290
+ /* This should by dynamic with js */
291
  margin: 0 4px;
292
  background: white;
293
  text-align: center;
311
  .chzn-container .chzn-results-scroll-up span {
312
  background: url("../img/chosen-sprite.png") no-repeat -22px -3px;
313
  }
314
+
315
  /* @end */
316
 
317
  /* @group Active */
327
  background-color: #eee;
328
  background-image: linear-gradient(#eee 20%, #fff 80%);
329
  box-shadow: 0 1px 0 #fff inset;
330
+
331
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
332
  }
333
 
348
  .chzn-container-active .chzn-choices .search-field input {
349
  color: #111 !important;
350
  }
351
+
352
  /* @end */
353
 
354
  /* @group Disabled Support */
378
  .chzn-rtl .chzn-single span {
379
  margin-right: 0;
380
  margin-left: 26px;
381
+
382
  direction: rtl;
383
  }
384
 
428
  padding: 4px 5px 4px 20px;
429
  background: #fff url("../img/chosen-sprite.png") no-repeat -30px -20px;
430
  background: url("../img/chosen-sprite.png") no-repeat -30px -20px, linear-gradient(#eee 1%, #fff 15%);
431
+
432
  direction: rtl;
433
  }
434
 
439
  .chzn-container-single.chzn-rtl .chzn-single-with-drop div b {
440
  background-position: -12px 2px;
441
  }
442
+
443
  /* @end */
444
 
445
  /* @group Retina compatibility */
446
  @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
447
+ .chzn-rtl .chzn-search input,
448
+ .chzn-container-single .chzn-single abbr,
449
+ .chzn-container-single .chzn-single div b,
450
+ .chzn-container-single .chzn-search input,
451
+ .chzn-container-multi .chzn-choices .search-choice .search-choice-close,
452
+ .chzn-container .chzn-results-scroll-down span,
453
+ .chzn-container .chzn-results-scroll-up span {
454
  background-image: url("../img/chosen-sprite@2x.png") !important;
455
  background-repeat: no-repeat !important;
456
  background-size: 52px 37px !important;
457
  }
458
  }
459
+
460
  /* @end */
css/chosen.min.css CHANGED
@@ -1 +1 @@
1
- .chzn-container{display:inline-block;zoom:1;position:relative;font-size:13px;*display:inline}.chzn-container .chzn-drop{position:absolute;z-index:1010;top:29px;left:0;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chzn-container-single .chzn-single{display:block;overflow:hidden;position:relative;height:23px;padding:0 0 0 8px;border:1px solid #aaa;border-radius:5px;color:#444;background-color:#fff;background-image:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);line-height:24px;white-space:nowrap;text-decoration:none;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0)}.chzn-container-single .chzn-default{color:#999}.chzn-container-single .chzn-single span{display:block;overflow:hidden;margin-right:26px;white-space:nowrap;text-overflow:ellipsis;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis}.chzn-container-single .chzn-single abbr{display:block;position:absolute;top:6px;right:26px;width:12px;height:12px;background:url(../img/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chzn-container-single .chzn-single abbr:hover,.chzn-container-single.chzn-disabled .chzn-single abbr:hover{background-position:-42px -10px}.chzn-container-single .chzn-single div{display:block;position:absolute;top:0;right:0;width:18px;height:100%}.chzn-container-single .chzn-single div b{display:block;width:100%;height:100%;background:url(../img/chosen-sprite.png) no-repeat 0 2px}.chzn-container-single .chzn-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chzn-container-single .chzn-search input{margin:1px 0;padding:4px 20px 4px 5px;border:1px solid #aaa;outline:0;background:#fff url(../img/chosen-sprite.png) no-repeat 100% -20px;background:url(../img/chosen-sprite.png) no-repeat 100% -20px,linear-gradient(#eee 1%,#fff 15%);font-family:sans-serif;font-size:1em}.chzn-container-single .chzn-drop{border-radius:0 0 4px 4px;background-clip:padding-box}.chzn-container-single-nosearch .chzn-search input{position:absolute;left:-9000px}.chzn-container-multi .chzn-choices{overflow:hidden;position:relative;height:auto!important;height:1%;margin:0;padding:0;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chzn-container-multi .chzn-choices li{float:left;list-style:none}.chzn-container-multi .chzn-choices .search-field{margin:0;padding:0;white-space:nowrap}.chzn-container-multi .chzn-choices .search-field input{height:15px;margin:1px 0;padding:5px;border:0!important;outline:0;color:#666;background:transparent!important;box-shadow:none;font-family:sans-serif;font-size:100%}.chzn-container-multi .chzn-choices .search-field .default{color:#999}.chzn-container-multi .chzn-choices .search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;color:#333;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);line-height:13px;cursor:default;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0)}.chzn-container-multi .chzn-choices .search-choice.search-choice-disabled{padding-right:5px;border:1px solid #ccc;color:#666;background-color:#e4e4e4;background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0)}.chzn-container-multi .chzn-choices .search-choice-focus{background:#d4d4d4}.chzn-container-multi .chzn-choices .search-choice .search-choice-close{display:block;position:absolute;top:4px;right:3px;width:12px;height:12px;background:url(../img/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover,.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close{background-position:-42px -10px}.chzn-container .chzn-results{overflow-x:hidden;overflow-y:auto;position:relative;max-height:240px;margin:0 4px 4px 0;padding:0 0 0 4px;-webkit-overflow-scrolling:touch}.chzn-container-multi .chzn-results{margin:-1px 0 0;padding:0}.chzn-container .chzn-results li{display:none;margin:0;padding:5px 6px;line-height:15px;list-style:none}.chzn-container .chzn-results .active-result{display:list-item;cursor:pointer}.chzn-container .chzn-results .highlighted{color:#fff;background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0)}.chzn-container .chzn-results li em{background:#feffde;font-style:normal}.chzn-container .chzn-results .highlighted em{background:0 0}.chzn-container .chzn-results .no-results{display:list-item;background:#f4f4f4}.chzn-container .chzn-results .group-result{color:#999;font-weight:700;cursor:default}.chzn-container .chzn-results .group-option{padding-left:15px}.chzn-container-multi .chzn-drop .result-selected{display:none}.chzn-container .chzn-results-scroll{position:absolute;z-index:1;width:321px;margin:0 4px;background:#fff;text-align:center}.chzn-container .chzn-results-scroll span{display:inline-block;width:9px;height:17px;text-indent:-5000px}.chzn-container .chzn-results-scroll-down{bottom:0}.chzn-container .chzn-results-scroll-down span{background:url(../img/chosen-sprite.png) no-repeat -4px -3px}.chzn-container .chzn-results-scroll-up span{background:url(../img/chosen-sprite.png) no-repeat -22px -3px}.chzn-container-active .chzn-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chzn-container-active .chzn-single-with-drop{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-color:#eee;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0)}.chzn-container-active .chzn-single-with-drop div{border-left:none;background:0 0}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 2px}.chzn-container-active .chzn-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chzn-container-active .chzn-choices .search-field input{color:#111!important}.chzn-disabled{opacity:.5!important;cursor:default}.chzn-disabled .chzn-choices .search-choice .search-choice-close,.chzn-disabled .chzn-single{cursor:default}.chzn-rtl{text-align:right}.chzn-rtl .chzn-single{overflow:visible;padding:0 8px 0 0}.chzn-rtl .chzn-single span{margin-right:0;margin-left:26px;direction:rtl}.chzn-rtl .chzn-single div{right:auto;left:3px}.chzn-rtl .chzn-single abbr{right:auto;left:26px}.chzn-rtl .chzn-choices .search-field input{direction:rtl}.chzn-rtl .chzn-choices li{float:right}.chzn-rtl .chzn-choices .search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chzn-rtl .chzn-choices .search-choice .search-choice-close{right:auto;left:4px}.chzn-rtl.chzn-container-single .chzn-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chzn-rtl .chzn-results .group-option{padding-right:15px;padding-left:0}.chzn-rtl.chzn-container-active .chzn-single-with-drop div{border-right:none}.chzn-rtl .chzn-search input{padding:4px 5px 4px 20px;background:#fff url(../img/chosen-sprite.png) no-repeat -30px -20px;background:url(../img/chosen-sprite.png) no-repeat -30px -20px,linear-gradient(#eee 1%,#fff 15%);direction:rtl}.chzn-container-single.chzn-rtl .chzn-single div b{background-position:6px 2px}.chzn-container-single.chzn-rtl .chzn-single-with-drop div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.chzn-container .chzn-results-scroll-down span,.chzn-container .chzn-results-scroll-up span,.chzn-container-multi .chzn-choices .search-choice .search-choice-close,.chzn-container-single .chzn-search input,.chzn-container-single .chzn-single abbr,.chzn-container-single .chzn-single div b,.chzn-rtl .chzn-search input{background-image:url(../img/chosen-sprite@2x.png)!important;background-repeat:no-repeat!important;background-size:52px 37px!important}}
1
+ .chzn-container{display:inline-block;zoom:1;position:relative;font-size:13px}.chzn-container .chzn-drop{position:absolute;z-index:1010;top:29px;left:0;border:1px solid #aaa;border-top:0;background:#fff;box-shadow:0 4px 5px rgba(0,0,0,.15)}.chzn-container-single .chzn-single{display:block;overflow:hidden;position:relative;height:23px;padding:0 0 0 8px;border:1px solid #aaa;border-radius:5px;color:#444;background-color:#fff;background-image:linear-gradient(#fff 20%,#f6f6f6 50%,#eee 52%,#f4f4f4 100%);background-clip:padding-box;box-shadow:0 0 3px #fff inset,0 1px 1px rgba(0,0,0,.1);line-height:24px;white-space:nowrap;text-decoration:none;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0)}.chzn-container-single .chzn-default{color:#999}.chzn-container-single .chzn-single span{display:block;overflow:hidden;margin-right:26px;white-space:nowrap;text-overflow:ellipsis;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis}.chzn-container-single .chzn-single abbr{display:block;position:absolute;top:6px;right:26px;width:12px;height:12px;background:url(../img/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chzn-container-single .chzn-single abbr:hover,.chzn-container-single.chzn-disabled .chzn-single abbr:hover{background-position:-42px -10px}.chzn-container-single .chzn-single div{display:block;position:absolute;top:0;right:0;width:18px;height:100%}.chzn-container-single .chzn-single div b{display:block;width:100%;height:100%;background:url(../img/chosen-sprite.png) 0 2px no-repeat}.chzn-container-single .chzn-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.chzn-container-single .chzn-search input{margin:1px 0;padding:4px 20px 4px 5px;border:1px solid #aaa;outline:0;background:url(../img/chosen-sprite.png) 100% -20px no-repeat #fff;background:url(../img/chosen-sprite.png) 100% -20px no-repeat,linear-gradient(#eee 1%,#fff 15%);font-family:sans-serif;font-size:1em}.chzn-container-single .chzn-drop{border-radius:0 0 4px 4px;background-clip:padding-box}.chzn-container-single-nosearch .chzn-search input{position:absolute;left:-9000px}.chzn-container-multi .chzn-choices{overflow:hidden;position:relative;height:auto!important;height:1%;margin:0;padding:0;border:1px solid #aaa;background-color:#fff;background-image:linear-gradient(#eee 1%,#fff 15%);cursor:text}.chzn-container-multi .chzn-choices li{float:left;list-style:none}.chzn-container-multi .chzn-choices .search-field{margin:0;padding:0;white-space:nowrap}.chzn-container-multi .chzn-choices .search-field input{height:15px;margin:1px 0;padding:5px;border:0!important;outline:0;color:#666;background:0 0!important;box-shadow:none;font-family:sans-serif;font-size:100%}.chzn-container-multi .chzn-choices .search-field .default{color:#999}.chzn-container-multi .chzn-choices .search-choice{position:relative;margin:3px 0 3px 5px;padding:3px 20px 3px 5px;border:1px solid #aaa;border-radius:3px;color:#333;background-color:#e4e4e4;background-image:linear-gradient(#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);line-height:13px;cursor:default;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0)}.chzn-container-multi .chzn-choices .search-choice.search-choice-disabled{padding-right:5px;border:1px solid #ccc;color:#666;background-color:#e4e4e4;background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0)}.chzn-container-multi .chzn-choices .search-choice-focus{background:#d4d4d4}.chzn-container-multi .chzn-choices .search-choice .search-choice-close{display:block;position:absolute;top:4px;right:3px;width:12px;height:12px;background:url(../img/chosen-sprite.png) -42px 1px no-repeat;font-size:1px}.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover,.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close{background-position:-42px -10px}.chzn-container .chzn-results{overflow-x:hidden;overflow-y:auto;position:relative;max-height:240px;margin:0 4px 4px 0;padding:0 0 0 4px;-webkit-overflow-scrolling:touch}.chzn-container-multi .chzn-results{margin:-1px 0 0;padding:0}.chzn-container .chzn-results li{display:none;margin:0;padding:5px 6px;line-height:15px;list-style:none}.chzn-container .chzn-results .active-result{display:list-item;cursor:pointer}.chzn-container .chzn-results .highlighted{color:#fff;background-color:#3875d7;background-image:linear-gradient(#3875d7 20%,#2a62bc 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0)}.chzn-container .chzn-results li em{background:#feffde;font-style:normal}.chzn-container .chzn-results .highlighted em{background:0 0}.chzn-container .chzn-results .no-results{display:list-item;background:#f4f4f4}.chzn-container .chzn-results .group-result{color:#999;font-weight:700;cursor:default}.chzn-container .chzn-results .group-option{padding-left:15px}.chzn-container-multi .chzn-drop .result-selected{display:none}.chzn-container .chzn-results-scroll{position:absolute;z-index:1;width:321px;margin:0 4px;background:#fff;text-align:center}.chzn-container .chzn-results-scroll span{display:inline-block;width:9px;height:17px;text-indent:-5000px}.chzn-container .chzn-results-scroll-down{bottom:0}.chzn-container .chzn-results-scroll-down span{background:url(../img/chosen-sprite.png) -4px -3px no-repeat}.chzn-container .chzn-results-scroll-up span{background:url(../img/chosen-sprite.png) -22px -3px no-repeat}.chzn-container-active .chzn-single{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chzn-container-active .chzn-single-with-drop{border:1px solid #aaa;border-bottom-right-radius:0;border-bottom-left-radius:0;background-color:#eee;background-image:linear-gradient(#eee 20%,#fff 80%);box-shadow:0 1px 0 #fff inset;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0)}.chzn-container-active .chzn-single-with-drop div{border-left:none;background:0 0}.chzn-container-active .chzn-single-with-drop div b{background-position:-18px 2px}.chzn-container-active .chzn-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.chzn-container-active .chzn-choices .search-field input{color:#111!important}.chzn-disabled{opacity:.5!important;cursor:default}.chzn-disabled .chzn-choices .search-choice .search-choice-close,.chzn-disabled .chzn-single{cursor:default}.chzn-rtl{text-align:right}.chzn-rtl .chzn-single{overflow:visible;padding:0 8px 0 0}.chzn-rtl .chzn-single span{margin-right:0;margin-left:26px;direction:rtl}.chzn-rtl .chzn-single div{right:auto;left:3px}.chzn-rtl .chzn-single abbr{right:auto;left:26px}.chzn-rtl .chzn-choices .search-field input{direction:rtl}.chzn-rtl .chzn-choices li{float:right}.chzn-rtl .chzn-choices .search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.chzn-rtl .chzn-choices .search-choice .search-choice-close{right:auto;left:4px}.chzn-rtl.chzn-container-single .chzn-results{margin:0 0 4px 4px;padding:0 4px 0 0}.chzn-rtl .chzn-results .group-option{padding-right:15px;padding-left:0}.chzn-rtl.chzn-container-active .chzn-single-with-drop div{border-right:none}.chzn-rtl .chzn-search input{padding:4px 5px 4px 20px;background:url(../img/chosen-sprite.png) -30px -20px no-repeat #fff;background:url(../img/chosen-sprite.png) -30px -20px no-repeat,linear-gradient(#eee 1%,#fff 15%);direction:rtl}.chzn-container-single.chzn-rtl .chzn-single div b{background-position:6px 2px}.chzn-container-single.chzn-rtl .chzn-single-with-drop div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio:2),only screen and (min-resolution:144dpi){.chzn-container .chzn-results-scroll-down span,.chzn-container .chzn-results-scroll-up span,.chzn-container-multi .chzn-choices .search-choice .search-choice-close,.chzn-container-single .chzn-search input,.chzn-container-single .chzn-single abbr,.chzn-container-single .chzn-single div b,.chzn-rtl .chzn-search input{background-image:url(../img/chosen-sprite@2x.png)!important;background-repeat:no-repeat!important;background-size:52px 37px!important}}
css/yoast_ga_styles.min.css CHANGED
@@ -1 +1 @@
1
- h2#yoast_ga_title{padding:9px 15px 4px 0;font-size:23px;font-weight:400;line-height:29px}.nav-tab-wrapper{margin-bottom:0}.gatab{display:none}.gatab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px 3px;background-color:#fff}.tabwrapper .gatab{padding:0;border:0;background:0}.tabwrapper .gatab h2{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.ga-form-submit{margin-top:20px}.ga-form-label-left{float:left;width:250px;margin:0 0 0 5px;font-size:14px;font-weight:bold;cursor:default}.ga-form-input{margin-top:10px;margin-bottom:10px}#yoast-ga-wrapper{display:table;width:auto;max-width:1150px}.yoast-ga-content{display:table-cell;min-width:850px;height:500px;margin:0;padding:0;vertical-align:top}.yoast-ga-banners{display:table-cell;width:261px;height:500px;margin:0;padding:0;padding:20px;vertical-align:top}.ga-form-input{display:table;margin-bottom:20px}.ga-form-table{display:table-cell}.ga-form-description{display:block;float:right;max-width:325px;color:#999}p.ga-topdescription{max-width:600px}#ga-promote{max-width:600px;padding-left:10px;border:1px solid #ccc;background-color:#fff}#yoast-ga-form-settings input[type="text"]{width:325px}#enter_ua{display:none;margin-top:10px;padding-top:10px}#yoast-ga-form-text-settings-ga_general-manual_ua_code_field{margin-top:-30px}select.ga-multiple{width:300px;height:150px !important}.wpseotab .extension{float:left;box-sizing:border-box;width:350px;height:230px;margin:10px 20px 10px 0;border:1px solid #ccc}.wpseotab .extension p{margin:0;padding:10px}.wpseotab .extension h3{box-sizing:border-box;height:110px;margin:0;padding:20px 10px 0 120px;border-bottom:1px solid #ccc;background:#fff no-repeat left 10px;background-size:130px 100px}.wpseotab .extension button.installed{border-color:#00a000;background-color:#00a000;cursor:default}.wpseotab .extension .button-primary.activate-link{border-color:#f06000;background-color:#f18500}.extension a{text-decoration:none}.ecommerce h3{background-image:url(../img/eComm_130x100.png) !important}.ga_premium h3{background-image:url(../img/ga-premium-banner.png) !important}#ga-debug-info h3{height:30px;margin-top:10px;padding-left:16px;font-size:14px}.yoast_help{margin:2px 5px 0 5px}
1
+ h2#yoast_ga_title{padding:9px 15px 4px 0;font-size:23px;font-weight:400;line-height:29px}.nav-tab-wrapper{margin-bottom:0}.gatab{display:none}.gatab.active{display:block;padding:.5em .9em;border:1px solid #ddd;border-radius:0 3px 3px;background-color:#fff}.tabwrapper .gatab{padding:0;border:none;background:0 0}.tabwrapper .gatab h2{padding:9px 15px 4px 0;font-size:23px;font-weight:400}.ga-form-submit{margin-top:20px}.ga-form-label-left{float:left;width:250px;margin:0 0 0 5px;font-size:14px;font-weight:700;cursor:default}.ga-form-input{margin-top:10px}#yoast-ga-wrapper{display:table;width:auto;max-width:1150px}.yoast-ga-content{display:table-cell;min-width:850px;height:500px;margin:0;padding:0;vertical-align:top}.yoast-ga-banners{display:table-cell;width:261px;height:500px;margin:0;padding:20px;vertical-align:top}.ga-form-input{display:table;margin-bottom:20px}.ga-form-table{display:table-cell}.ga-form-description{display:block;float:right;max-width:325px;color:#999}p.ga-topdescription{max-width:600px}#ga-promote{max-width:600px;padding-left:10px;border:1px solid #ccc;background-color:#fff}#yoast-ga-form-settings input[type=text]{width:325px}#enter_ua{display:none;margin-top:10px;padding-top:10px}#yoast-ga-form-text-settings-ga_general-manual_ua_code_field{margin-top:-30px}select.ga-multiple{width:300px;height:150px!important}.wpseotab .extension{float:left;box-sizing:border-box;width:350px;height:230px;margin:10px 20px 10px 0;border:1px solid #ccc}.wpseotab .extension p{margin:0;padding:10px}.wpseotab .extension h3{box-sizing:border-box;height:110px;margin:0;padding:20px 10px 0 120px;border-bottom:1px solid #ccc;background:left 10px/130px 100px no-repeat #fff}.wpseotab .extension button.installed{border-color:#00a000;background-color:#00a000;cursor:default}.wpseotab .extension .button-primary.activate-link{border-color:#f06000;background-color:#f18500}.extension a{text-decoration:none}.ecommerce h3{background-image:url(../img/eComm_130x100.png)!important}.ga_premium h3{background-image:url(../img/ga-premium-banner.png)!important}#ga-debug-info h3{height:30px;margin-top:10px;padding-left:16px;font-size:14px}.yoast_help{margin:2px 5px 0}
frontend/class-frontend.php CHANGED
@@ -54,7 +54,7 @@ if ( ! class_exists( 'Yoast_GA_Frontend' ) ) {
54
  }
55
 
56
  if ( isset( $this->options['ignore_users'] ) ) {
57
- if ( in_array( $current_user->roles[0], $this->options['ignore_users'] ) ) {
58
  return false;
59
  } else {
60
  return true;
@@ -231,4 +231,4 @@ if ( ! class_exists( 'Yoast_GA_Frontend' ) ) {
231
  }
232
  }
233
 
234
- }
54
  }
55
 
56
  if ( isset( $this->options['ignore_users'] ) ) {
57
+ if ( ! empty( $current_user->roles ) && in_array( $current_user->roles[0], $this->options['ignore_users'] ) ) {
58
  return false;
59
  } else {
60
  return true;
231
  }
232
  }
233
 
234
+ }
googleanalytics.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google Analytics by Yoast
4
  Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. error page, search result and automatic clickout and download tracking.
6
  Author: Team Yoast
7
- Version: 5.1.3
8
  Requires at least: 3.8
9
  Author URI: https://yoast.com/
10
  License: GPL v3
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30
 
31
  // This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
32
 
33
- define( 'GAWP_VERSION', '5.1.3' );
34
 
35
  define( 'GAWP_FILE', __FILE__ );
36
 
4
  Plugin URI: https://yoast.com/wordpress/plugins/google-analytics/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wpgaplugin&utm_content=v504
5
  Description: This plugin makes it simple to add Google Analytics to your WordPress blog, adding lots of features, eg. error page, search result and automatic clickout and download tracking.
6
  Author: Team Yoast
7
+ Version: 5.1.4
8
  Requires at least: 3.8
9
  Author URI: https://yoast.com/
10
  License: GPL v3
30
 
31
  // This plugin was originally based on Rich Boakes' Analytics plugin: http://boakes.org/analytics, but has since been rewritten and refactored multiple times.
32
 
33
+ define( 'GAWP_VERSION', '5.1.4' );
34
 
35
  define( 'GAWP_FILE', __FILE__ );
36
 
img/banner-ga-ecommerce.png CHANGED
Binary file
img/banner-premium-ga.png CHANGED
Binary file
img/banner-website-review.png CHANGED
Binary file
img/eBook_261x130.png CHANGED
Binary file
img/eComm_130x100.png CHANGED
Binary file
img/ga-premium-banner.png CHANGED
Binary file
includes/class-options.php CHANGED
@@ -190,6 +190,13 @@ if ( ! class_exists( 'Yoast_GA_Options' ) ) {
190
  }
191
  }
192
 
 
 
 
 
 
 
 
193
  // Check is API option already exists - if not add it
194
  $yst_ga_api = get_option( 'yst_ga_api' );
195
  if ( $yst_ga_api === false ) {
@@ -238,7 +245,6 @@ if ( ! class_exists( 'Yoast_GA_Options' ) ) {
238
  'add_allow_linker' => 0,
239
  'custom_code' => null,
240
  'debug_mode' => 0,
241
- 'firebug_lite' => 0,
242
  )
243
  );
244
 
190
  }
191
  }
192
 
193
+ // 5.1.2+ Remove firebug_lite from options, if set
194
+ if ( ! isset ( $this->options['version']) || version_compare( $this->options['version'], '5.1.2', '<') ) {
195
+ if ( isset( $this->options['firebug_lite'] ) ) {
196
+ unset( $this->options['firebug_lite'] );
197
+ }
198
+ }
199
+
200
  // Check is API option already exists - if not add it
201
  $yst_ga_api = get_option( 'yst_ga_api' );
202
  if ( $yst_ga_api === false ) {
245
  'add_allow_linker' => 0,
246
  'custom_code' => null,
247
  'debug_mode' => 0,
 
248
  )
249
  );
250
 
js/yoast_ga_admin.js CHANGED
@@ -1,13 +1,12 @@
1
  jQuery(document).ready(function() {
2
-
3
  jQuery('#ga-tabs').find('a').click(function() {
4
  jQuery('#ga-tabs').find('a').removeClass('nav-tab-active');
5
  jQuery('.gatab').removeClass('active');
6
 
7
- var id = jQuery(this).attr('id').replace('-tab','');
8
  jQuery('#' + id).addClass('active');
9
  jQuery(this).addClass('nav-tab-active');
10
- jQuery("#return_tab").val(id);
11
  });
12
 
13
  jQuery('a.activate-link').click(function() {
@@ -18,54 +17,53 @@ jQuery(document).ready(function() {
18
  });
19
 
20
  // init
21
- var active_tab = window.location.hash.replace('#top#','');
22
 
23
  // default to first tab
24
- if ( active_tab == '' || active_tab == '#_=_') {
25
- active_tab = jQuery('.gatab').attr('id');
26
  }
27
 
28
- jQuery('#' + active_tab).addClass('active');
29
- jQuery('#' + active_tab + '-tab').addClass('nav-tab-active');
30
 
31
  // Manually enter a UA code
32
- jQuery('#yoast-ga-form-checkbox-settings-manual_ua_code').click(function(){
33
- if(jQuery(this).is(':checked')){
34
  jQuery('#enter_ua').show();
35
- }
36
- else{
37
  jQuery('#enter_ua').hide();
38
- jQuery('#yoast-ga-form-text-settings-manual_ua_code_field').attr('value','');
39
  }
40
  });
41
 
42
  jQuery('.nav-tab-active').click();
43
 
44
- if(jQuery("#yoast-ga-form-checkbox-settings-manual_ua_code").is(':checked')){
45
  jQuery('#enter_ua').show();
46
  }
47
 
48
- jQuery(".yoast_help").qtip({
49
  position: {
50
  corner: {
51
- target : 'topMiddle',
52
  tooltip: 'bottomLeft'
53
  }
54
  },
55
- show : {
56
  when: {
57
  event: 'mouseover'
58
  }
59
  },
60
- hide : {
61
  fixed: true,
62
- when : {
63
  event: 'mouseout'
64
  }
65
  },
66
- style : {
67
- tip : 'bottomLeft',
68
  name: 'blue'
69
  }
70
  });
71
- });
1
  jQuery(document).ready(function() {
 
2
  jQuery('#ga-tabs').find('a').click(function() {
3
  jQuery('#ga-tabs').find('a').removeClass('nav-tab-active');
4
  jQuery('.gatab').removeClass('active');
5
 
6
+ var id = jQuery(this).attr('id').replace('-tab', '');
7
  jQuery('#' + id).addClass('active');
8
  jQuery(this).addClass('nav-tab-active');
9
+ jQuery('#return_tab').val(id);
10
  });
11
 
12
  jQuery('a.activate-link').click(function() {
17
  });
18
 
19
  // init
20
+ var activeTab = window.location.hash.replace('#top#', '');
21
 
22
  // default to first tab
23
+ if (activeTab === '' || activeTab === '#_=_') {
24
+ activeTab = jQuery('.gatab').attr('id');
25
  }
26
 
27
+ jQuery('#' + activeTab).addClass('active');
28
+ jQuery('#' + activeTab + '-tab').addClass('nav-tab-active');
29
 
30
  // Manually enter a UA code
31
+ jQuery('#yoast-ga-form-checkbox-settings-manual_ua_code').click(function() {
32
+ if (jQuery(this).is(':checked')) {
33
  jQuery('#enter_ua').show();
34
+ } else {
 
35
  jQuery('#enter_ua').hide();
36
+ jQuery('#yoast-ga-form-text-settings-manual_ua_code_field').attr('value', '');
37
  }
38
  });
39
 
40
  jQuery('.nav-tab-active').click();
41
 
42
+ if (jQuery('#yoast-ga-form-checkbox-settings-manual_ua_code').is(':checked')) {
43
  jQuery('#enter_ua').show();
44
  }
45
 
46
+ jQuery('.yoast_help').qtip({
47
  position: {
48
  corner: {
49
+ target: 'topMiddle',
50
  tooltip: 'bottomLeft'
51
  }
52
  },
53
+ show: {
54
  when: {
55
  event: 'mouseover'
56
  }
57
  },
58
+ hide: {
59
  fixed: true,
60
+ when: {
61
  event: 'mouseout'
62
  }
63
  },
64
+ style: {
65
+ tip: 'bottomLeft',
66
  name: 'blue'
67
  }
68
  });
69
+ });
js/yoast_ga_admin.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery("#ga-tabs").find("a").click(function(){jQuery("#ga-tabs").find("a").removeClass("nav-tab-active");jQuery(".gatab").removeClass("active");var e=jQuery(this).attr("id").replace("-tab","");jQuery("#"+e).addClass("active");jQuery(this).addClass("nav-tab-active");jQuery("#return_tab").val(e)});jQuery("a.activate-link").click(function(){jQuery("#extensions.wpseotab").removeClass("active");jQuery("#extensions-tab").removeClass("nav-tab-active");jQuery("#licenses.wpseotab").addClass("active");jQuery("#licenses-tab").addClass("nav-tab-active")});var e=window.location.hash.replace("#top#","");if(e==""||e=="#_=_"){e=jQuery(".gatab").attr("id")}jQuery("#"+e).addClass("active");jQuery("#"+e+"-tab").addClass("nav-tab-active");jQuery("#yoast-ga-form-checkbox-settings-manual_ua_code").click(function(){if(jQuery(this).is(":checked")){jQuery("#enter_ua").show()}else{jQuery("#enter_ua").hide();jQuery("#yoast-ga-form-text-settings-manual_ua_code_field").attr("value","")}});jQuery(".nav-tab-active").click();if(jQuery("#yoast-ga-form-checkbox-settings-manual_ua_code").is(":checked")){jQuery("#enter_ua").show()}jQuery(".yoast_help").qtip({position:{corner:{target:"topMiddle",tooltip:"bottomLeft"}},show:{when:{event:"mouseover"}},hide:{fixed:true,when:{event:"mouseout"}},style:{tip:"bottomLeft",name:"blue"}})})
1
+ jQuery(document).ready(function(){jQuery("#ga-tabs").find("a").click(function(){jQuery("#ga-tabs").find("a").removeClass("nav-tab-active"),jQuery(".gatab").removeClass("active");var a=jQuery(this).attr("id").replace("-tab","");jQuery("#"+a).addClass("active"),jQuery(this).addClass("nav-tab-active"),jQuery("#return_tab").val(a)}),jQuery("a.activate-link").click(function(){jQuery("#extensions.wpseotab").removeClass("active"),jQuery("#extensions-tab").removeClass("nav-tab-active"),jQuery("#licenses.wpseotab").addClass("active"),jQuery("#licenses-tab").addClass("nav-tab-active")});var a=window.location.hash.replace("#top#","");(""===a||"#_=_"===a)&&(a=jQuery(".gatab").attr("id")),jQuery("#"+a).addClass("active"),jQuery("#"+a+"-tab").addClass("nav-tab-active"),jQuery("#yoast-ga-form-checkbox-settings-manual_ua_code").click(function(){jQuery(this).is(":checked")?jQuery("#enter_ua").show():(jQuery("#enter_ua").hide(),jQuery("#yoast-ga-form-text-settings-manual_ua_code_field").attr("value",""))}),jQuery(".nav-tab-active").click(),jQuery("#yoast-ga-form-checkbox-settings-manual_ua_code").is(":checked")&&jQuery("#enter_ua").show(),jQuery(".yoast_help").qtip({position:{corner:{target:"topMiddle",tooltip:"bottomLeft"}},show:{when:{event:"mouseover"}},hide:{fixed:!0,when:{event:"mouseout"}},style:{tip:"bottomLeft",name:"blue"}})});
languages/google-analytics-for-wordpress-en_GB.mo ADDED
Binary file
languages/google-analytics-for-wordpress-fi.mo CHANGED
Binary file
languages/google-analytics-for-wordpress-he_IL.mo ADDED
Binary file
languages/google-analytics-for-wordpress-nl_NL.mo CHANGED
Binary file
languages/google-analytics-for-wordpress-ru_RU.mo CHANGED
Binary file
languages/google-analytics-for-wordpress.pot CHANGED
@@ -2,35 +2,35 @@
2
  # This file is distributed under the GPL v3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Google Analytics by Yoast 5.1\n"
6
  "Report-Msgid-Bugs-To: "
7
- "http://wordpress.org/support/plugin/google-analytics-for-wordpress\n"
8
- "POT-Creation-Date: 2014-11-12 13:56:41+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: Remkus de Vries <translations@yoast.com>\n"
14
  "Language-Team: Yoast Translate <translations@yoast.com>\n"
15
- "X-Generator: grunt-wp-i18n 0.4.4\n"
16
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
- "X-Poedit-Basepath: .\n"
18
- "X-Poedit-Language: English\n"
19
- "X-Poedit-Country: UNITED STATES\n"
20
- "X-Poedit-SourceCharset: utf-8\n"
21
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2; "
22
- "_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; "
23
- "esc_html_e;esc_attr_x:1,2c; esc_html_x:1,2c;\n"
24
- "X-Poedit-Bookmarks: \n"
25
  "X-Poedit-SearchPath-0: .\n"
 
26
  "X-Textdomain-Support: yes\n"
27
 
28
  #: admin/class-admin-menu.php:55 admin/class-admin-menu.php:79
29
  msgid "Yoast Google Analytics:"
30
  msgstr ""
31
 
32
- #: admin/class-admin-menu.php:55
33
- msgid "General Settings"
34
  msgstr ""
35
 
36
  #: admin/class-admin-menu.php:55
@@ -41,63 +41,93 @@ msgstr ""
41
  msgid "Please configure your %sGoogle Analytics settings%s!"
42
  msgstr ""
43
 
44
- #: admin/class-admin.php:103
45
  msgid "Settings saved!"
46
  msgstr ""
47
 
48
- #: admin/class-admin.php:110
49
  msgid "There where no changes to save, please try again."
50
  msgstr ""
51
 
52
- #: admin/class-admin.php:129
53
  msgid "FAQ"
54
  msgstr ""
55
 
56
- #: admin/class-admin.php:132
57
  msgid "Settings"
58
  msgstr ""
59
 
60
- #: admin/class-admin.php:185
61
  msgid ""
62
  "If you want to track custom dimensions, to for instance track page views "
63
  "per author or post type, you should upgrade to the %1$spremium version of "
64
  "Google Analytics by Yoast%2$s."
65
  msgstr ""
66
 
67
- #: admin/class-admin.php:187
68
  msgid ""
69
  "This will also give you email access to the support team at Yoast, who will "
70
  "provide support on the plugin 24/7."
71
  msgstr ""
72
 
73
- #: admin/class-admin.php:506
74
  msgid "Debug information"
75
  msgstr ""
76
 
77
- #: admin/class-admin.php:555
78
  msgid "Google Analytics by Yoast Premium"
79
  msgstr ""
80
 
81
- #: admin/class-admin.php:556
82
  msgid ""
83
  "The premium version of Google Analytics for WordPress with more features "
84
  "&amp; support."
85
  msgstr ""
86
 
87
- #: admin/class-admin.php:561
88
  msgid "Google Analytics"
89
  msgstr ""
90
 
91
- #: admin/class-admin.php:561
92
  msgid "E-Commerce tracking"
93
  msgstr ""
94
 
95
- #: admin/class-admin.php:562
96
  msgid ""
97
  "Track your E-Commerce data and transactions with this E-Commerce extension "
98
  "for Google Analytics."
99
  msgstr ""
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  #: admin/license-manager/class-license-manager.php:137
102
  msgid ""
103
  "<b>Warning!</b> You're blocking external requests which means you won't be "
@@ -243,8 +273,13 @@ msgstr ""
243
  msgid "%sRenew your license now%s."
244
  msgstr ""
245
 
 
 
 
 
 
246
  #: admin/pages/dashboard.php:6
247
- msgid "Yoast Google Analytics: Dashboard"
248
  msgstr ""
249
 
250
  #: admin/pages/dashboard.php:9
@@ -254,11 +289,7 @@ msgid ""
254
  "yourself."
255
  msgstr ""
256
 
257
- #: admin/pages/extensions.php:10
258
- msgid "Yoast Google Analytics: Extensions"
259
- msgstr ""
260
-
261
- #: admin/pages/extensions.php:13
262
  msgid "Extensions"
263
  msgstr ""
264
 
@@ -272,10 +303,6 @@ msgid ""
272
  "are no licenses to activate."
273
  msgstr ""
274
 
275
- #: admin/pages/settings.php:6
276
- msgid "Yoast Google Analytics: Settings"
277
- msgstr ""
278
-
279
  #: admin/pages/settings.php:13
280
  msgid "General"
281
  msgstr ""
@@ -296,10 +323,6 @@ msgstr ""
296
  msgid "Debug mode"
297
  msgstr ""
298
 
299
- #: admin/pages/settings.php:28
300
- msgid "General settings"
301
- msgstr ""
302
-
303
  #: admin/pages/settings.php:41
304
  msgid "Google profile"
305
  msgstr ""
@@ -347,11 +370,9 @@ msgstr ""
347
 
348
  #: admin/pages/settings.php:70
349
  msgid ""
350
- "This adds <code><a "
351
- "href=\"http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gat.html#_"
352
- "gat._anonymizeIp\" target=\"_blank\">_anonymizeIp</a></code>, telling "
353
- "Google Analytics to anonymize the information sent by the tracker objects "
354
- "by removing the last octet of the IP address prior to its storage."
355
  msgstr ""
356
 
357
  #: admin/pages/settings.php:71
@@ -371,10 +392,7 @@ msgstr ""
371
  #: admin/pages/settings.php:77
372
  msgid ""
373
  "First enable Universal tracking in your Google Analytics account. How to do "
374
- "that, please read <a "
375
- "href=\"http://kb.yoast.com/article/125-universal-analytics#utm_medium=kb-"
376
- "link&utm_source=gawp-config&utm_campaign=wpgaplugin\" "
377
- "target=\"_blank\">this guide</a> to learn how to do that."
378
  msgstr ""
379
 
380
  #: admin/pages/settings.php:78
@@ -384,10 +402,7 @@ msgstr ""
384
  #: admin/pages/settings.php:78
385
  msgid ""
386
  "You have to enable the Demographics in Google Analytics before you can see "
387
- "the tracking data. We have a doc in our <a "
388
- "href=\"http://kb.yoast.com/article/154-enable-demographics-and-interests-"
389
- "report-in-google-analytics/#utm_medium=kb-link&utm_source=gawp-config&utm_"
390
- "campaign=wpgaplugin\" target=\"_blank\">knowlegde base</a> about this "
391
  "feature."
392
  msgstr ""
393
 
@@ -450,11 +465,8 @@ msgstr ""
450
 
451
  #: admin/pages/settings.php:93
452
  msgid ""
453
- "This adds a <code><a "
454
- "href=\"http://code.google.com/apis/analytics/docs/gaJSApiCampaignTracking."
455
- "html#_gat.GA_Tracker_._setAllowAnchor\" "
456
- "target=\"_blank\">_setAllowAnchor</a></code> call to your tracking code, "
457
- "and makes RSS link tagging use a # as well."
458
  msgstr ""
459
 
460
  #: admin/pages/settings.php:94
@@ -463,11 +475,8 @@ msgstr ""
463
 
464
  #: admin/pages/settings.php:94
465
  msgid ""
466
- "This adds a <code><a "
467
- "href=\"http://code.google.com/apis/analytics/docs/gaJS/"
468
- "gaJSApiDomainDirectory.html#_gat.GA_Tracker_._setAllowLinker\" "
469
- "target=\"_blank\">_setAllowLinker</a></code> call to your tracking code, "
470
- "allowing you to use <code>_link</code> and related functions."
471
  msgstr ""
472
 
473
  #: admin/pages/settings.php:95
@@ -483,10 +492,8 @@ msgstr ""
483
  #: admin/pages/settings.php:112
484
  msgid ""
485
  "If you want to confirm that tracking on your blog is working as it should, "
486
- "enable these options and check the console in Firebug (for Firefox), "
487
- "Firebug Lite (for other browsers) or Chrome & Safari's Web Inspector. Be "
488
- "absolutely sure to disable debugging afterwards, as it is slower than "
489
- "normal tracking."
490
  msgstr ""
491
 
492
  #: admin/pages/settings.php:113
@@ -494,18 +501,14 @@ msgid "Note"
494
  msgstr ""
495
 
496
  #: admin/pages/settings.php:113
497
- msgid "the debugging and firebug scripts are only loaded for admins."
498
  msgstr ""
499
 
500
  #: admin/pages/settings.php:115
501
  msgid "Enable debug mode"
502
  msgstr ""
503
 
504
- #: admin/pages/settings.php:116
505
- msgid "Enable Firebug Lite"
506
- msgstr ""
507
-
508
- #: admin/pages/settings.php:128
509
  msgid "Select the users to ignore"
510
  msgstr ""
511
 
2
  # This file is distributed under the GPL v3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Google Analytics by Yoast 5.1.4\n"
6
  "Report-Msgid-Bugs-To: "
7
+ "https://github.com/yoast/google-analytics-for-wordpress/issues\n"
8
+ "POT-Creation-Date: 2014-12-02 13:22:29+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: Yoast Translate Team <translations@yoast.com>\n"
14
  "Language-Team: Yoast Translate <translations@yoast.com>\n"
15
+ "X-Generator: grunt-wp-i18n 0.4.9\n"
16
+ "X-Poedit-KeywordsList: "
17
+ "__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
18
+ "attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
19
+ "Language: en\n"
20
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
+ "X-Poedit-Country: United States\n"
22
+ "X-Poedit-SourceCharset: UTF-8\n"
23
+ "X-Poedit-Basepath: ../\n"
 
24
  "X-Poedit-SearchPath-0: .\n"
25
+ "X-Poedit-Bookmarks: \n"
26
  "X-Textdomain-Support: yes\n"
27
 
28
  #: admin/class-admin-menu.php:55 admin/class-admin-menu.php:79
29
  msgid "Yoast Google Analytics:"
30
  msgstr ""
31
 
32
+ #: admin/class-admin-menu.php:55 admin/pages/settings.php:28
33
+ msgid "General settings"
34
  msgstr ""
35
 
36
  #: admin/class-admin-menu.php:55
41
  msgid "Please configure your %sGoogle Analytics settings%s!"
42
  msgstr ""
43
 
44
+ #: admin/class-admin.php:106
45
  msgid "Settings saved!"
46
  msgstr ""
47
 
48
+ #: admin/class-admin.php:113
49
  msgid "There where no changes to save, please try again."
50
  msgstr ""
51
 
52
+ #: admin/class-admin.php:132
53
  msgid "FAQ"
54
  msgstr ""
55
 
56
+ #: admin/class-admin.php:135 admin/pages/settings.php:6
57
  msgid "Settings"
58
  msgstr ""
59
 
60
+ #: admin/class-admin.php:188
61
  msgid ""
62
  "If you want to track custom dimensions, to for instance track page views "
63
  "per author or post type, you should upgrade to the %1$spremium version of "
64
  "Google Analytics by Yoast%2$s."
65
  msgstr ""
66
 
67
+ #: admin/class-admin.php:190
68
  msgid ""
69
  "This will also give you email access to the support team at Yoast, who will "
70
  "provide support on the plugin 24/7."
71
  msgstr ""
72
 
73
+ #: admin/class-admin.php:543
74
  msgid "Debug information"
75
  msgstr ""
76
 
77
+ #: admin/class-admin.php:592
78
  msgid "Google Analytics by Yoast Premium"
79
  msgstr ""
80
 
81
+ #: admin/class-admin.php:593
82
  msgid ""
83
  "The premium version of Google Analytics for WordPress with more features "
84
  "&amp; support."
85
  msgstr ""
86
 
87
+ #: admin/class-admin.php:598
88
  msgid "Google Analytics"
89
  msgstr ""
90
 
91
+ #: admin/class-admin.php:598
92
  msgid "E-Commerce tracking"
93
  msgstr ""
94
 
95
+ #: admin/class-admin.php:599
96
  msgid ""
97
  "Track your E-Commerce data and transactions with this E-Commerce extension "
98
  "for Google Analytics."
99
  msgstr ""
100
 
101
+ #: admin/i18n-module/i18n-module.php:170
102
+ msgid ""
103
+ "As you can see, there is a translation of this plugin in %1$s. This "
104
+ "translation is currently %3$d%% complete. We need your help to make it "
105
+ "complete and to fix any errors. Please register at %4$s to help complete "
106
+ "the translation to %1$s!"
107
+ msgstr ""
108
+
109
+ #: admin/i18n-module/i18n-module.php:172
110
+ msgid ""
111
+ "You're using WordPress in %1$s. While %2$s has been translated to %1$s for "
112
+ "%3$d%%, it's not been shipped with the plugin yet. You can help! Register "
113
+ "at %4$s to help complete the translation to %1$s!"
114
+ msgstr ""
115
+
116
+ #: admin/i18n-module/i18n-module.php:174
117
+ msgid ""
118
+ "You're using WordPress in a language we don't support yet. We'd love for "
119
+ "%2$s to be translated in that language too, but unfortunately, it isn't "
120
+ "right now. You can change that! Register at %4$s to help translate it!"
121
+ msgstr ""
122
+
123
+ #: admin/i18n-module/i18n-module.php:194
124
+ msgid "Translation of %s"
125
+ msgstr ""
126
+
127
+ #: admin/i18n-module/i18n-module.php:199
128
+ msgid "Register now &raquo;"
129
+ msgstr ""
130
+
131
  #: admin/license-manager/class-license-manager.php:137
132
  msgid ""
133
  "<b>Warning!</b> You're blocking external requests which means you won't be "
273
  msgid "%sRenew your license now%s."
274
  msgstr ""
275
 
276
+ #: admin/pages/dashboard.php:6 admin/pages/extensions.php:10
277
+ #: admin/pages/settings.php:6
278
+ msgid "Yoast Google Analytics: "
279
+ msgstr ""
280
+
281
  #: admin/pages/dashboard.php:6
282
+ msgid "Dashboard"
283
  msgstr ""
284
 
285
  #: admin/pages/dashboard.php:9
289
  "yourself."
290
  msgstr ""
291
 
292
+ #: admin/pages/extensions.php:10 admin/pages/extensions.php:13
 
 
 
 
293
  msgid "Extensions"
294
  msgstr ""
295
 
303
  "are no licenses to activate."
304
  msgstr ""
305
 
 
 
 
 
306
  #: admin/pages/settings.php:13
307
  msgid "General"
308
  msgstr ""
323
  msgid "Debug mode"
324
  msgstr ""
325
 
 
 
 
 
326
  #: admin/pages/settings.php:41
327
  msgid "Google profile"
328
  msgstr ""
370
 
371
  #: admin/pages/settings.php:70
372
  msgid ""
373
+ "This adds <code>%1$s _anonymizeIp%2$s</code>, telling Google Analytics to "
374
+ "anonymize the information sent by the tracker objects by removing the last "
375
+ "octet of the IP address prior to its storage."
 
 
376
  msgstr ""
377
 
378
  #: admin/pages/settings.php:71
392
  #: admin/pages/settings.php:77
393
  msgid ""
394
  "First enable Universal tracking in your Google Analytics account. How to do "
395
+ "that, please read %1$sthis guide%2$s to learn how to do that."
 
 
 
396
  msgstr ""
397
 
398
  #: admin/pages/settings.php:78
402
  #: admin/pages/settings.php:78
403
  msgid ""
404
  "You have to enable the Demographics in Google Analytics before you can see "
405
+ "the tracking data. We have a doc in our %1$sknowlegde base%2$s about this "
 
 
 
406
  "feature."
407
  msgstr ""
408
 
465
 
466
  #: admin/pages/settings.php:93
467
  msgid ""
468
+ "This adds a <code>%1$s_setAllowAnchor%2$s</code> call to your tracking "
469
+ "code, and makes RSS link tagging use a # as well."
 
 
 
470
  msgstr ""
471
 
472
  #: admin/pages/settings.php:94
475
 
476
  #: admin/pages/settings.php:94
477
  msgid ""
478
+ "This adds a <code>%1$s_setAllowLinker%2$s</code> call to your tracking "
479
+ "code, allowing you to use <code>_link</code> and related functions."
 
 
 
480
  msgstr ""
481
 
482
  #: admin/pages/settings.php:95
492
  #: admin/pages/settings.php:112
493
  msgid ""
494
  "If you want to confirm that tracking on your blog is working as it should, "
495
+ "enable this option and check the console of your browser. Be absolutely "
496
+ "sure to disable debugging afterwards, as it is slower than normal tracking."
 
 
497
  msgstr ""
498
 
499
  #: admin/pages/settings.php:113
501
  msgstr ""
502
 
503
  #: admin/pages/settings.php:113
504
+ msgid "the debugging scripts is only loaded for admins."
505
  msgstr ""
506
 
507
  #: admin/pages/settings.php:115
508
  msgid "Enable debug mode"
509
  msgstr ""
510
 
511
+ #: admin/pages/settings.php:127
 
 
 
 
512
  msgid "Select the users to ignore"
513
  msgstr ""
514
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://yoast.com/donate/
4
  Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
- Stable tag: 5.1.3
8
 
9
  Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
10
 
@@ -49,6 +49,22 @@ This section describes how to install the plugin and get it working.
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  = 5.1.3 =
53
 
54
  Release Date: November 26th, 2014
@@ -486,3 +502,4 @@ For all frequently asked questions, and their answers, check the [Yoast Knowledg
486
  1. Screenshot of the general settings panel for this plugin.
487
  2. Screenshot of the universal settings panel.
488
  3. Screenshot of the advanced settings panel.
 
4
  Tags: analytics, google analytics, statistics, tracking, stats, google, yoast
5
  Requires at least: 3.8
6
  Tested up to: 4.0
7
+ Stable tag: 5.1.4
8
 
9
  Track your WordPress site easily with the latest tracking codes and lots added data for search result pages and error pages.
10
 
49
 
50
  == Changelog ==
51
 
52
+ = 5.1.4 =
53
+
54
+ Release Date: December 2nd, 2014
55
+
56
+ * Enhancements:
57
+ * Added GA property name to 'Analytics profile' selection in settings. Thanks [stephenyeargin](https://github.com/stephenyeargin) for reporting.
58
+ * Removed firebug lite as it's rather obsolete with todays development consoles.
59
+
60
+ * i18n:
61
+ * Several string fixes for easier translation.
62
+ * Added en_GB and he_IL.
63
+
64
+ * Bugfixes:
65
+ * Fixes a bug where site admins for sites on a multisite setup would receive a notice when visiting another site on the same setup which they didn't administrate, props [nerrad](https://github.com/nerrad).
66
+ * Fixes a bug where saving the admin settings would cause non-string form fields to be ignored or rejected.
67
+
68
  = 5.1.3 =
69
 
70
  Release Date: November 26th, 2014
502
  1. Screenshot of the general settings panel for this plugin.
503
  2. Screenshot of the universal settings panel.
504
  3. Screenshot of the advanced settings panel.
505
+ 4. Screenshot of the account selection drop down.