GA Google Analytics - Version 20221002

Version Description

To upgrade GA Google Analytics, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically.

Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.

For more information, visit the GA Plugin Homepage.

Download this release

Release Info

Developer specialk
Plugin Icon 128x128 GA Google Analytics
Version 20221002
Comparing to
See all releases

Code changes from version 20220517 to 20221002

css/settings.css CHANGED
@@ -4,11 +4,15 @@
4
  box-sizing: border-box; width: 100%; overflow: hidden; position: relative; padding: 0 15px 10px 100px;
5
  background-image: url(../img/ga-icon-160x160.png); background-repeat: no-repeat; background-position: 15px 15px; background-size: 80px 80px;
6
  }
7
- .wp-admin .gap-col-1 { width: 60%; float: left; }
8
  .wp-admin .gap-col-2 { width: 33%; float: right; position: absolute; bottom: 0; right: 0; background-color: #fce586; background-image: linear-gradient(to right, #fce586, #fff); }
9
  .wp-admin .gap-panel-usage .gap-caption { margin: 15px; }
10
 
11
- @media (max-width: 600px) {
 
 
 
 
12
  .wp-admin .gap-col-1, .wp-admin .gap-col-2 { width: 100%; float: none; position: static; }
13
  .wp-admin .gap-col-2 { padding: 5px 15px 5px 0; }
14
  }
@@ -35,14 +39,18 @@
35
  }
36
 
37
  .wp-admin .wrap .gap-radio-inputs { margin: 7px 0; }
 
 
 
38
  .wp-admin .wrap .button-primary { margin: 0 0 15px 15px; }
39
 
40
- .wp-admin .wrap .gap-caption { line-height: 18px; font-size: 12px; padding: 5px 0 0 0; opacity: 0.8; }
41
- .wp-admin .wrap .gap-caption code { line-height: 18px; font-size: 12px; padding: 2px 3px; margin: 0; }
42
  .wp-admin .wrap .gap-caption:hover { opacity: 0.9; }
43
 
44
- .wp-admin .gap-note { opacity: 0.8; }
45
  .wp-admin .gap-toggle-all { margin: 5px 0; }
46
  .wp-admin .gap-credit-info { margin: -5px 0 0 3px; }
47
 
48
- .wp-admin .wrap .gap-blurb { margin-top: 5px; padding: 15px; background-color: #FEFAE8; }
 
 
4
  box-sizing: border-box; width: 100%; overflow: hidden; position: relative; padding: 0 15px 10px 100px;
5
  background-image: url(../img/ga-icon-160x160.png); background-repeat: no-repeat; background-position: 15px 15px; background-size: 80px 80px;
6
  }
7
+ .wp-admin .gap-col-1 { width: 100%; float: left; }
8
  .wp-admin .gap-col-2 { width: 33%; float: right; position: absolute; bottom: 0; right: 0; background-color: #fce586; background-image: linear-gradient(to right, #fce586, #fff); }
9
  .wp-admin .gap-panel-usage .gap-caption { margin: 15px; }
10
 
11
+ @media (max-width: 880px) {
12
+ .wp-admin .gap-col-1 { width: 60%; }
13
+ }
14
+
15
+ @media (max-width: 660px) {
16
  .wp-admin .gap-col-1, .wp-admin .gap-col-2 { width: 100%; float: none; position: static; }
17
  .wp-admin .gap-col-2 { padding: 5px 15px 5px 0; }
18
  }
39
  }
40
 
41
  .wp-admin .wrap .gap-radio-inputs { margin: 7px 0; }
42
+ .wp-admin .wrap .gap-radio-inputs .gap-note { color: #888; }
43
+ .wp-admin .wrap .gap-radio-inputs .gap-code { color: #777; }
44
+
45
  .wp-admin .wrap .button-primary { margin: 0 0 15px 15px; }
46
 
47
+ .wp-admin .wrap .gap-caption { line-height: 18px; font-size: 12px; padding: 5px 0 0 2px; opacity: 0.8; }
48
+ .wp-admin .wrap .gap-caption code { line-height: 18px; font-size: 11px; padding: 2px 3px; margin: 0; }
49
  .wp-admin .wrap .gap-caption:hover { opacity: 0.9; }
50
 
 
51
  .wp-admin .gap-toggle-all { margin: 5px 0; }
52
  .wp-admin .gap-credit-info { margin: -5px 0 0 3px; }
53
 
54
+ .wp-admin .wrap .gap-blurb { margin-top: 5px; padding: 15px; background-color: #FEFAE8; }
55
+
56
+ .wp-admin .wrap abbr[title] { cursor: help !important; border-bottom: 1px dotted #777 !important; text-decoration: none !important; }
ga-google-analytics.php CHANGED
@@ -9,9 +9,9 @@
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.6
12
- Tested up to: 6.0
13
- Stable tag: 20220517
14
- Version: 20220517
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
@@ -51,6 +51,7 @@ if (!class_exists('GA_Google_Analytics')) {
51
  add_action('admin_enqueue_scripts', array($this, 'admin_scripts'));
52
  add_filter('plugin_action_links', array($this, 'action_links'), 10, 2);
53
  add_filter('plugin_row_meta', array($this, 'plugin_links'), 10, 2);
 
54
  add_action('init', array($this, 'load_i18n'));
55
  add_action('admin_init', array($this, 'check_version'));
56
  add_action('admin_init', array($this, 'reset_options'));
@@ -60,7 +61,7 @@ if (!class_exists('GA_Google_Analytics')) {
60
 
61
  function constants() {
62
 
63
- if (!defined('GAP_VERSION')) define('GAP_VERSION', '20220517');
64
  if (!defined('GAP_REQUIRE')) define('GAP_REQUIRE', '4.6');
65
  if (!defined('GAP_AUTHOR')) define('GAP_AUTHOR', 'Jeff Starr');
66
  if (!defined('GAP_NAME')) define('GAP_NAME', __('GA Google Analytics', 'ga-google-analytics'));
@@ -167,6 +168,28 @@ if (!class_exists('GA_Google_Analytics')) {
167
 
168
  }
169
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  function check_version() {
171
 
172
  $wp_version = get_bloginfo('version');
@@ -370,15 +393,21 @@ if (!class_exists('GA_Google_Analytics')) {
370
 
371
  function options_locations() {
372
 
 
 
 
 
 
 
373
  return array(
374
 
375
  'header' => array(
376
  'value' => 'header',
377
- 'label' => esc_html__('Include tracking code in page head (via', 'ga-google-analytics') .' <code>wp_head</code>'. esc_html__(')', 'ga-google-analytics')
378
  ),
379
  'footer' => array(
380
  'value' => 'footer',
381
- 'label' => esc_html__('Include tracking code in page footer (via', 'ga-google-analytics') .' <code>wp_footer</code>'. esc_html__(')', 'ga-google-analytics')
382
  )
383
  );
384
 
@@ -391,22 +420,23 @@ if (!class_exists('GA_Google_Analytics')) {
391
  $url3 = 'https://developers.google.com/analytics/devguides/collection/gajs/';
392
 
393
  $link1 = '<a target="_blank" rel="noopener noreferrer" href="'. $url1 .'">'. esc_html__('Universal Analytics', 'ga-google-analytics') .'</a> ';
394
- $link2 = '<a target="_blank" rel="noopener noreferrer" href="'. $url2 .'">'. esc_html__('Global Site Tag', 'ga-google-analytics') .'</a> ';
395
  $link3 = '<a target="_blank" rel="noopener noreferrer" href="'. $url3 .'">'. esc_html__('Legacy', 'ga-google-analytics') .'</a> ';
396
 
 
397
  return array(
398
 
399
- 1 => array(
400
- 'value' => 1,
401
- 'label' => $link1 .' <span class="gap-note">/</span> <code>analytics.js</code> <span class="gap-note">'. esc_html__('(default)', 'ga-google-analytics') .'</span>'
402
- ),
403
  2 => array(
404
  'value' => 2,
405
- 'label' => $link2 .' <span class="gap-note">/</span> <code>gtag.js</code> <span class="gap-note">'. esc_html__('(new method)', 'ga-google-analytics') .'</span>'
406
  ),
 
 
 
 
407
  3 => array(
408
  'value' => 3,
409
- 'label' => $link3 .' <span class="gap-note">/</span> <code>ga.js</code> <span class="gap-note">'. esc_html__('(deprecated)', 'ga-google-analytics') .'</span>'
410
  )
411
  );
412
 
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.6
12
+ Tested up to: 6.1
13
+ Stable tag: 20221002
14
+ Version: 20221002
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
51
  add_action('admin_enqueue_scripts', array($this, 'admin_scripts'));
52
  add_filter('plugin_action_links', array($this, 'action_links'), 10, 2);
53
  add_filter('plugin_row_meta', array($this, 'plugin_links'), 10, 2);
54
+ add_filter('admin_footer_text', array($this, 'footer_text'), 10, 1);
55
  add_action('init', array($this, 'load_i18n'));
56
  add_action('admin_init', array($this, 'check_version'));
57
  add_action('admin_init', array($this, 'reset_options'));
61
 
62
  function constants() {
63
 
64
+ if (!defined('GAP_VERSION')) define('GAP_VERSION', '20221002');
65
  if (!defined('GAP_REQUIRE')) define('GAP_REQUIRE', '4.6');
66
  if (!defined('GAP_AUTHOR')) define('GAP_AUTHOR', 'Jeff Starr');
67
  if (!defined('GAP_NAME')) define('GAP_NAME', __('GA Google Analytics', 'ga-google-analytics'));
168
 
169
  }
170
 
171
+ function footer_text($text) {
172
+
173
+ if (!function_exists('get_current_screen')) require_once ABSPATH .'/wp-admin/includes/screen.php';
174
+
175
+ $screen = get_current_screen();
176
+
177
+ $ids = array('settings_page_ga-google-analytics');
178
+
179
+ if (isset($screen->id) && apply_filters('ga_google_analytics_admin_footer_text', in_array($screen->id, $ids))) {
180
+
181
+ $text = __('Like this plugin? Give it a', 'ga-google-analytics');
182
+
183
+ $text .= ' <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/support/plugin/ga-google-analytics/reviews/?rate=5#new-post">';
184
+
185
+ $text .= __('★★★★★ rating&nbsp;&raquo;', 'ga-google-analytics') .'</a>';
186
+
187
+ }
188
+
189
+ return $text;
190
+
191
+ }
192
+
193
  function check_version() {
194
 
195
  $wp_version = get_bloginfo('version');
393
 
394
  function options_locations() {
395
 
396
+ $label_header = esc_html__('Include tracking code in page head', 'ga-google-analytics') .' <span class="gap-note">'. esc_html__('(via', 'ga-google-analytics');
397
+ $label_header .= ' <span class="gap-code">wp_head</span>'. esc_html__(')', 'ga-google-analytics') .'</span>';
398
+
399
+ $label_footer = esc_html__('Include tracking code in page footer', 'ga-google-analytics') .' <span class="gap-note">'. esc_html__('(via', 'ga-google-analytics');
400
+ $label_footer .= ' <span class="gap-code">wp_footer</span>'. esc_html__(')', 'ga-google-analytics') .'</span>';
401
+
402
  return array(
403
 
404
  'header' => array(
405
  'value' => 'header',
406
+ 'label' => $label_header
407
  ),
408
  'footer' => array(
409
  'value' => 'footer',
410
+ 'label' => $label_footer
411
  )
412
  );
413
 
420
  $url3 = 'https://developers.google.com/analytics/devguides/collection/gajs/';
421
 
422
  $link1 = '<a target="_blank" rel="noopener noreferrer" href="'. $url1 .'">'. esc_html__('Universal Analytics', 'ga-google-analytics') .'</a> ';
423
+ $link2 = '<a target="_blank" rel="noopener noreferrer" href="'. $url2 .'">'. esc_html__('Google Tag', 'ga-google-analytics') .'</a> ';
424
  $link3 = '<a target="_blank" rel="noopener noreferrer" href="'. $url3 .'">'. esc_html__('Legacy', 'ga-google-analytics') .'</a> ';
425
 
426
+ // do not change numeric keys or values (order only)
427
  return array(
428
 
 
 
 
 
429
  2 => array(
430
  'value' => 2,
431
+ 'label' => $link2 .' <span class="gap-note"> / <span class="gap-code">gtag.js</span> '. esc_html__('(default)', 'ga-google-analytics') .'</span>',
432
  ),
433
+ 1 => array(
434
+ 'value' => 1,
435
+ 'label' => $link1 .' <span class="gap-note"> / <span class="gap-code">analytics.js</span> '. esc_html__('(deprecated)', 'ga-google-analytics') .'</span>',
436
+ ),
437
  3 => array(
438
  'value' => 3,
439
+ 'label' => $link3 .' <span class="gap-note"> / <span class="gap-code">ga.js</span> '. esc_html__('(deprecated)', 'ga-google-analytics') .'</span>',
440
  )
441
  );
442
 
img/250x250-sac-pro.jpg ADDED
Binary file
inc/settings-display.php CHANGED
@@ -26,7 +26,11 @@ if (!function_exists('add_action')) die(); ?>
26
 
27
  <div class="gap-col-1">
28
 
29
- <p><?php esc_html_e('This plugin adds the GA Tracking Code to your site. Log in to your Google account to view your stats.', 'ga-google-analytics'); ?></p>
 
 
 
 
30
 
31
  <ul>
32
  <li><a class="gap-toggle" data-target="usage" href="#gap-panel-usage"><?php esc_html_e('How to Use', 'ga-google-analytics'); ?></a></li>
@@ -67,19 +71,21 @@ if (!function_exists('add_action')) die(); ?>
67
  <div class="gap-panel-usage">
68
 
69
  <p class="gap-blurb">
70
- <strong><?php esc_html_e('Google Analytics 4!', 'ga-google-analytics'); ?></strong> <?php esc_html_e('Visit the', 'ga-google-analytics'); ?>
71
- <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/ga-google-analytics/"><?php esc_html_e('plugin homepage', 'ga-google-analytics'); ?></a>
72
- <?php esc_html_e('for steps to set up GA4 (look for the section called &ldquo;To enable Google Analytics 4&rdquo;).', 'ga-google-analytics'); ?>
73
  </p>
74
 
75
- <p><?php esc_html_e('How to use this plugin:', 'ga-google-analytics'); ?></p>
76
 
77
  <ol>
78
  <li><?php esc_html_e('Visit the "Plugin Settings" panel', 'ga-google-analytics'); ?></li>
79
- <li><?php esc_html_e('Enter your GA Tracking ID', 'ga-google-analytics'); ?></li>
80
  <li>
81
- <?php esc_html_e('Choose either', 'ga-google-analytics'); ?> <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/"><?php esc_html_e('Universal Analytics', 'ga-google-analytics'); ?></a>
82
- <?php esc_html_e('or', 'ga-google-analytics'); ?> <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/gtagjs/"><?php esc_html_e('Global Site Tag', 'ga-google-analytics'); ?></a>
 
 
83
  </li>
84
  <li><?php esc_html_e('Configure any other plugin settings as desired (optional)', 'ga-google-analytics'); ?></li>
85
  </ol>
@@ -112,7 +118,14 @@ if (!function_exists('add_action')) die(); ?>
112
  <table class="widefat">
113
  <tr>
114
  <th><label for="gap_options[gap_id]"><?php esc_html_e('GA Tracking ID', 'ga-google-analytics') ?></label></th>
115
- <td><input id="gap_options[gap_id]" name="gap_options[gap_id]" type="text" size="30" maxlength="30" value="<?php if (isset($gap_options['gap_id'])) echo esc_attr($gap_options['gap_id']); ?>"></td>
 
 
 
 
 
 
 
116
  </tr>
117
  <tr>
118
  <th><label for="gap_options[gap_enable]"><?php esc_html_e('Tracking Method', 'ga-google-analytics') ?></label></th>
@@ -175,12 +188,9 @@ if (!function_exists('add_action')) die(); ?>
175
  <td>
176
  <textarea id="gap_options[tracker_object]" name="gap_options[tracker_object]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['tracker_object'])) echo esc_textarea($gap_options['tracker_object']); ?></textarea>
177
  <div class="gap-caption">
178
- <?php esc_html_e('Any code entered here will be added to', 'ga-google-analytics'); ?> <code>ga('create')</code>
179
- <?php esc_html_e('for Universal Analytics, or added to', 'ga-google-analytics'); ?> <code>gtag('config')</code>
180
- <?php esc_html_e('for Global Site Tag. This is useful for things like', 'ga-google-analytics'); ?>
181
- <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers"><?php esc_html_e('tracker objects', 'ga-google-analytics'); ?></a>
182
- <?php esc_html_e('and', 'ga-google-analytics'); ?>
183
- <a target="_blank" rel="noopener noreferrer" href="https://support.google.com/optimize/answer/6262084"><?php esc_html_e('optimize', 'ga-google-analytics'); ?></a>.
184
  </div>
185
  </td>
186
  </tr>
@@ -189,7 +199,7 @@ if (!function_exists('add_action')) die(); ?>
189
  <td>
190
  <textarea id="gap_options[gap_custom_code]" name="gap_options[gap_custom_code]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['gap_custom_code'])) echo esc_textarea($gap_options['gap_custom_code']); ?></textarea>
191
  <div class="gap-caption">
192
- <?php esc_html_e('Any code entered here will be added to the GA code snippet. This is useful for things like creating', 'ga-google-analytics'); ?>
193
  <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers"><?php esc_html_e('multiple trackers', 'ga-google-analytics'); ?></a>
194
  <?php esc_html_e('and', 'ga-google-analytics'); ?>
195
  <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out"><?php esc_html_e('user opt-out', 'ga-google-analytics'); ?></a>.
@@ -203,8 +213,8 @@ if (!function_exists('add_action')) die(); ?>
203
  <td>
204
  <textarea id="gap_options[gap_custom]" name="gap_options[gap_custom]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['gap_custom'])) echo esc_textarea($gap_options['gap_custom']); ?></textarea>
205
  <div class="gap-caption">
206
- <?php esc_html_e('Here you may specify any markup to be displayed in the', 'ga-google-analytics'); ?> <code>&lt;head&gt;</code>
207
- <?php esc_html_e('section (or in the footer, depending on the "Tracking Code Location" setting, above).', 'ga-google-analytics'); ?>
208
  </div>
209
  </td>
210
  </tr>
26
 
27
  <div class="gap-col-1">
28
 
29
+ <p>
30
+ <?php esc_html_e('This plugin adds the', 'ga-google-analytics'); ?>
31
+ <abbr title="<?php esc_attr_e('Google Analytics', 'ga-google-analytics'); ?>"><?php esc_html_e('GA', 'ga-google-analytics'); ?></abbr>
32
+ <?php esc_html_e('tracking snippet to your site. Log in to your Google account to view your stats.', 'ga-google-analytics'); ?>
33
+ </p>
34
 
35
  <ul>
36
  <li><a class="gap-toggle" data-target="usage" href="#gap-panel-usage"><?php esc_html_e('How to Use', 'ga-google-analytics'); ?></a></li>
71
  <div class="gap-panel-usage">
72
 
73
  <p class="gap-blurb">
74
+ <strong><?php esc_html_e('Google Analytics 4!', 'ga-google-analytics'); ?></strong> <?php esc_html_e('Learn how to enable GA4. Quick steps available on the', 'ga-google-analytics'); ?>
75
+ <a target="_blank" rel="noopener noreferrer" href="https://wordpress.org/plugins/ga-google-analytics/#:~:text=Enable%20Google%20Analytics%204"><?php esc_html_e('plugin homepage', 'ga-google-analytics'); ?></a>
76
+ <?php esc_html_e('(under &ldquo;Enable Google Analytics 4&rdquo;).', 'ga-google-analytics'); ?>
77
  </p>
78
 
79
+ <p><strong><?php esc_html_e('How to use this plugin:', 'ga-google-analytics'); ?></strong></p>
80
 
81
  <ol>
82
  <li><?php esc_html_e('Visit the "Plugin Settings" panel', 'ga-google-analytics'); ?></li>
83
+ <li><?php esc_html_e('Enter your Google Tracking ID (aka, Tag ID)', 'ga-google-analytics'); ?></li>
84
  <li>
85
+ <?php esc_html_e('Choose either', 'ga-google-analytics'); ?>
86
+ <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/gtagjs/"><?php esc_html_e('Google Tag', 'ga-google-analytics'); ?></a>
87
+ <?php esc_html_e('(aka, Global Site Tag) or', 'ga-google-analytics'); ?>
88
+ <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/"><?php esc_html_e('Universal Analytics', 'ga-google-analytics'); ?></a>
89
  </li>
90
  <li><?php esc_html_e('Configure any other plugin settings as desired (optional)', 'ga-google-analytics'); ?></li>
91
  </ol>
118
  <table class="widefat">
119
  <tr>
120
  <th><label for="gap_options[gap_id]"><?php esc_html_e('GA Tracking ID', 'ga-google-analytics') ?></label></th>
121
+ <td>
122
+ <input id="gap_options[gap_id]" name="gap_options[gap_id]" type="text" size="30" maxlength="30" value="<?php if (isset($gap_options['gap_id'])) echo esc_attr($gap_options['gap_id']); ?>">
123
+ <div class="gap-caption">
124
+ <?php esc_html_e('Enter your Google Tracking ID (aka, Tag ID).', 'ga-google-analytics'); ?>
125
+ <a class="toggle-link" href="#more-info"><?php esc_html_e('Show info', 'ga-google-analytics'); ?></a>
126
+ <span class="toggle-data"> : <?php esc_html_e('Supported formats include GT-XXXXXXXXX, G-XXXXXXXXX, and AW-XXXXXXXXX. Google Tag Manager (GTM-XXXXXXXXX) currently is not supported.', 'ga-google-analytics'); ?></span>
127
+ </div>
128
+ </td>
129
  </tr>
130
  <tr>
131
  <th><label for="gap_options[gap_enable]"><?php esc_html_e('Tracking Method', 'ga-google-analytics') ?></label></th>
188
  <td>
189
  <textarea id="gap_options[tracker_object]" name="gap_options[tracker_object]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['tracker_object'])) echo esc_textarea($gap_options['tracker_object']); ?></textarea>
190
  <div class="gap-caption">
191
+ <?php esc_html_e('Optional code added to', 'ga-google-analytics'); ?> <code>gtag('config')</code>
192
+ <?php esc_html_e('for Google Tag, or added to', 'ga-google-analytics'); ?> <code>ga('create')</code>
193
+ <?php esc_html_e('for Universal Analytics.', 'ga-google-analytics'); ?>
 
 
 
194
  </div>
195
  </td>
196
  </tr>
199
  <td>
200
  <textarea id="gap_options[gap_custom_code]" name="gap_options[gap_custom_code]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['gap_custom_code'])) echo esc_textarea($gap_options['gap_custom_code']); ?></textarea>
201
  <div class="gap-caption">
202
+ <?php esc_html_e('Optional code added to the GA tracking snippet. This is useful for things like creating', 'ga-google-analytics'); ?>
203
  <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers"><?php esc_html_e('multiple trackers', 'ga-google-analytics'); ?></a>
204
  <?php esc_html_e('and', 'ga-google-analytics'); ?>
205
  <a target="_blank" rel="noopener noreferrer" href="https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out"><?php esc_html_e('user opt-out', 'ga-google-analytics'); ?></a>.
213
  <td>
214
  <textarea id="gap_options[gap_custom]" name="gap_options[gap_custom]" type="textarea" rows="4" cols="70"><?php if (isset($gap_options['gap_custom'])) echo esc_textarea($gap_options['gap_custom']); ?></textarea>
215
  <div class="gap-caption">
216
+ <?php esc_html_e('Optional markup added to', 'ga-google-analytics'); ?> <code>&lt;head&gt;</code>
217
+ <?php esc_html_e('or footer, depending on the previous setting, Tracking Code Location.', 'ga-google-analytics'); ?>
218
  </div>
219
  </td>
220
  </tr>
inc/support-panel.php CHANGED
@@ -7,44 +7,35 @@ $plugin_project = esc_html__('Google Analytics', 'ga-google-analytics');
7
  $plugin_url = esc_url(GAP_URL);
8
 
9
  $array = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
- 0 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/bbq-pro/" title="Premium WP Plugin: BBQ Pro">
12
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-bbq-pro.jpg" alt="BBQ Pro - Block Bad Queries" />
13
- </a>',
14
- 1 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/banhammer-pro/" title="Premium WP Plugin: Banhammer Pro">
15
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-banhammer-pro.jpg" alt="Banhammer Pro - Drop the hammer." />
16
- </a>',
17
- 2 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/blackhole-pro/" title="Premium WP Plugin: Blackhole Pro">
18
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-blackhole-pro.jpg" alt="Blackhole Pro - Block Bad Bots" />
19
- </a>',
20
- 3 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ses-pro/" title="Premium WP Plugin: SES Pro">
21
- <img width="125" rel="noopener noreferrer" height="125" src="'. $plugin_url .'img/250x250-ses-pro.jpg" alt="SES Pro - Ajax-Powered Email Signup Forms" />
22
- </a>',
23
- 4 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/" title="Premium WP Plugin: USP Pro">
24
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-usp-pro.jpg" alt="USP Pro - Unlimited Front-End Forms" />
25
- </a>',
26
-
27
- 5 => '<a target="_blank" rel="noopener noreferrer" href="https://digwp.com/" title="Take your WordPress Skills to the Next Level">
28
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-digging-into-wordpress.jpg" alt="Digging Into WordPress" />
29
- </a>',
30
- 6 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/" title="Learn the Way of WordPress">
31
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-tao-of-wordpress.jpg" alt="The Tao of WordPress" />
32
- </a>',
33
- 7 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/wordpress-themes-book/" title="WordPress Themes In Depth">
34
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-wp-themes-in-depth.jpg" alt="WordPress Themes In Depth" />
35
- </a>',
36
- 8 => '<a target="_blank" rel="noopener noreferrer" href="https://htaccessbook.com/" title="Optimize and Secure with .htaccess">
37
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy" />
38
- </a>',
39
- 9 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ga-google-analytics-pro/" title="Connect Google Analytics to WordPress">
40
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-ga-pro.jpg" alt="GA Google Analytics Pro" />
41
- </a>',
42
- 10 => '<a target="_blank" rel="noopener noreferrer" href="https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/" title="Wizard&rsquo;s SQL Recipes for WordPress">
43
- <img width="125" height="125" src="'. $plugin_url .'img/250x250-wizards-sql.jpg" alt="Wizard&rsquo;s SQL Recipes for WordPress" />
44
- </a>',
45
 
46
  );
47
-
48
  $items = array_rand($array, 3);
49
 
50
  $item1 = isset($array[$items[0]]) ? $array[$items[0]] : 0;
7
  $plugin_url = esc_url(GAP_URL);
8
 
9
  $array = array(
10
+
11
+ 0 => '<a target="_blank" rel="noopener noreferrer" href="https://digwp.com/" title="Take your WP skills to the next level"><img width="125" height="125" src="'. $plugin_url .'img/250x250-digging-into-wordpress.jpg" alt="Digging Into WordPress"></a>',
12
+
13
+ 1 => '<a target="_blank" rel="noopener noreferrer" href="https://htaccessbook.com/" title="Secure and optimize your website"><img width="125" height="125" src="'. $plugin_url .'img/250x250-htaccess-made-easy.jpg" alt=".htaccess made easy"></a>',
14
+
15
+ 2 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/" title="Learn the Way of WordPress"><img width="125" height="125" src="'. $plugin_url .'img/250x250-tao-of-wordpress.jpg" alt="The Tao of WordPress"></a>',
16
+
17
+ 3 => '<a target="_blank" rel="noopener noreferrer" href="https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/" title="Wizard&rsquo;s SQL Recipes for WordPress"><img width="125" height="125" src="'. $plugin_url .'img/250x250-wizards-sql.jpg" alt="Wizard&rsquo;s SQL Recipes for WordPress"></a>',
18
+
19
+ 4 => '<a target="_blank" rel="noopener noreferrer" href="https://wp-tao.com/wordpress-themes-book/" title="Build and sell awesome themes"><img width="125" height="125" src="'. $plugin_url .'img/250x250-wp-themes-in-depth.jpg" alt="WordPress Themes In Depth"></a>',
20
+
21
+ //
22
+
23
+ 5 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/banhammer-pro/" title="Banhammer Pro: Drop the hammer."><img width="125" height="125" src="'. $plugin_url .'img/250x250-banhammer-pro.jpg" alt="Banhammer Pro"></a>',
24
+
25
+ 6 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/bbq-pro/" title="Fastest WordPress Firewall"><img width="125" height="125" src="'. $plugin_url .'img/250x250-bbq-pro.jpg" alt="BBQ Pro Firewall"></a>',
26
+
27
+ 7 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/blackhole-pro/" title="Trap bad bots in a virtual black hole"><img width="125" height="125" src="'. $plugin_url .'img/250x250-blackhole-pro.jpg" alt="Blackhole Pro"></a>',
28
+
29
+ 8 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ga-google-analytics-pro/" title="Connect Google Analytics to WordPress"><img width="125" height="125" src="'. $plugin_url .'img/250x250-ga-pro.jpg" alt="GA Google Analytics Pro"></a>',
30
+
31
+ 9 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/simple-ajax-chat-pro/" title="Unlimited chats for WordPress"><img width="125" height="125" src="'. $plugin_url .'img/250x250-sac-pro.jpg" alt="Simple Ajax Chat Pro"></a>',
32
+
33
+ 10 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/ses-pro/" title="Simple email signup forms"><img width="125" height="125" src="'. $plugin_url .'img/250x250-ses-pro.jpg" alt="SES Pro"></a>',
34
 
35
+ 11 => '<a target="_blank" rel="noopener noreferrer" href="https://plugin-planet.com/usp-pro/" title="Unlimited front-end forms"><img width="125" height="125" src="'. $plugin_url .'img/250x250-usp-pro.jpg" alt="USP Pro"></a>',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  );
38
+
39
  $items = array_rand($array, 3);
40
 
41
  $item1 = isset($array[$items[0]]) ? $array[$items[0]] : 0;
js/settings.js CHANGED
@@ -12,8 +12,19 @@ jQuery(document).ready(function($) {
12
 
13
  $('.gap-reset-options').click(function() { return confirm(ga_google_analytics.confirm_message); });
14
 
15
- $('.gap-select-method:nth-child(1), .gap-select-method:nth-child(3)').click(function() { $('.gap-info-universal').slideDown(300); });
16
-
17
- $('.gap-select-method:nth-child(2)').click(function() { $('.gap-info-universal').slideUp(300); });
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  });
12
 
13
  $('.gap-reset-options').click(function() { return confirm(ga_google_analytics.confirm_message); });
14
 
15
+ $('.gap-select-method:nth-child(2) input, .gap-select-method:nth-child(3) input').click(function() { $('.gap-info-universal').slideDown(300); });
16
+
17
+ $('.gap-select-method:nth-child(1) input').click(function() { $('.gap-info-universal').slideUp(300); });
18
+
19
+ $('.toggle-data').css('display', 'none');
20
+ $('.toggle-link').on('click', function() {
21
+ if ($('.toggle-link').text() === 'Show info') {
22
+ $('.toggle-link').text('Hide info');
23
+ $('.toggle-data').css('display', 'inline');
24
+ } else {
25
+ $('.toggle-link').text('Show info');
26
+ $('.toggle-data').css('display', 'none');
27
+ }
28
+ });
29
 
30
  });
languages/ga-google-analytics.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: GA Google Analytics\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2022-05-17 22:43+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -14,33 +14,41 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
- #: ga-google-analytics.php:183
18
  msgid " or higher, and has been deactivated! "
19
  msgstr ""
20
 
21
- #: ga-google-analytics.php:401
 
 
 
 
22
  msgid "(default)"
23
  msgstr ""
24
 
25
- #: ga-google-analytics.php:409
26
  msgid "(deprecated)"
27
  msgstr ""
28
 
29
- #: ga-google-analytics.php:328
30
  msgid ""
31
  "(for Google Tag Manager), which is not supported. Please try again with a "
32
  "supported tracking code."
33
  msgstr ""
34
 
35
- #: ga-google-analytics.php:405
36
- msgid "(new method)"
37
  msgstr ""
38
 
39
- #: ga-google-analytics.php:377 ga-google-analytics.php:381
 
 
 
 
40
  msgid ")"
41
  msgstr ""
42
 
43
- #: inc/settings-display.php:285
44
  msgid "@"
45
  msgstr ""
46
 
@@ -48,226 +56,214 @@ msgstr ""
48
  msgid "Adds your Google Analytics Tracking Code to your WordPress site."
49
  msgstr ""
50
 
51
- #: inc/settings-display.php:220
52
  msgid "Admin Area"
53
  msgstr ""
54
 
55
- #: inc/settings-display.php:227
56
  msgid "Admin Users"
57
  msgstr ""
58
 
59
- #: inc/settings-display.php:216
60
  msgid "after"
61
  msgstr ""
62
 
63
- #: inc/settings-display.php:182 inc/settings-display.php:194
64
- #: inc/settings-display.php:196
65
  msgid "and"
66
  msgstr ""
67
 
68
- #: inc/support-panel.php:70
69
  msgid "and is greatly appreciated."
70
  msgstr ""
71
 
72
- #: inc/settings-display.php:178
73
- msgid "Any code entered here will be added to"
74
- msgstr ""
75
-
76
- #: inc/settings-display.php:192
77
- msgid ""
78
- "Any code entered here will be added to the GA code snippet. This is useful "
79
- "for things like creating"
80
- msgstr ""
81
-
82
- #: inc/support-panel.php:72
83
  msgid ""
84
  "Any size donation helps me to continue developing this free plugin and other "
85
  "awesome WordPress resources."
86
  msgstr ""
87
 
88
- #: ga-google-analytics.php:114
89
  msgid "Are you sure you want to restore all default options?"
90
  msgstr ""
91
 
92
- #: inc/settings-display.php:215
93
  msgid "before"
94
  msgstr ""
95
 
96
- #: inc/support-panel.php:62
97
  msgid "books"
98
  msgstr ""
99
 
100
- #: inc/settings-display.php:283
101
  msgid "by"
102
  msgstr ""
103
 
104
- #: ga-google-analytics.php:281 ga-google-analytics.php:287
105
  msgid "Cheatin&rsquo; huh?"
106
  msgstr ""
107
 
108
- #: inc/settings-display.php:49
109
  msgid "Check out the"
110
  msgstr ""
111
 
112
- #: inc/settings-display.php:81
113
  msgid "Choose either"
114
  msgstr ""
115
 
116
- #: ga-google-analytics.php:159
117
  msgid "Click here to rate and review this plugin on WordPress.org"
118
  msgstr ""
119
 
120
- #: inc/settings-display.php:256
121
  msgid "Click the link to restore the default plugin options."
122
  msgstr ""
123
 
124
- #: inc/settings-display.php:84
125
  msgid "Configure any other plugin settings as desired (optional)"
126
  msgstr ""
127
 
128
- #: inc/settings-display.php:202
129
  msgid "Custom Code"
130
  msgstr ""
131
 
132
- #: inc/settings-display.php:212
133
  msgid "Custom Code Location"
134
  msgstr ""
135
 
136
- #: inc/settings-display.php:188
137
  msgid "Custom GA Code"
138
  msgstr ""
139
 
140
- #: inc/settings-display.php:174
141
  msgid "Custom Tracker Objects"
142
  msgstr ""
143
 
144
- #: ga-google-analytics.php:245
145
  msgid "Default options restored."
146
  msgstr ""
147
 
148
- #: inc/settings-display.php:230
149
  msgid "Disable tracking of Admin-level users"
150
  msgstr ""
151
 
152
- #: inc/settings-display.php:127 inc/settings-display.php:131
153
  msgid "Display Advertising"
154
  msgstr ""
155
 
156
- #: inc/settings-display.php:215
157
  msgid "Display Custom Code"
158
  msgstr ""
159
 
160
- #: inc/support-panel.php:60
161
  msgid "Donate via PayPal"
162
  msgstr ""
163
 
164
- #: inc/support-panel.php:64
165
  msgid "donation"
166
  msgstr ""
167
 
168
- #: inc/settings-display.php:130 inc/settings-display.php:138
169
- #: inc/settings-display.php:146 inc/settings-display.php:154
170
  msgid "Enable support for"
171
  msgstr ""
172
 
173
- #: inc/settings-display.php:223
174
  msgid ""
175
  "Enable tracking in WP Admin Area (adds tracking code only; to view stats log "
176
  "into your Google account)"
177
  msgstr ""
178
 
179
- #: inc/settings-display.php:139
180
  msgid "Enhanced Link Attribution"
181
  msgstr ""
182
 
183
- #: inc/settings-display.php:79
184
- msgid "Enter your GA Tracking ID"
 
 
 
 
185
  msgstr ""
186
 
187
- #: ga-google-analytics.php:327
188
  msgid "Error: your tracking code begins with"
189
  msgstr ""
190
 
191
- #: inc/settings-display.php:236
192
  msgid "For advanced features, check out"
193
  msgstr ""
194
 
195
- #: inc/settings-display.php:180
196
- msgid "for Global Site Tag. This is useful for things like"
197
  msgstr ""
198
 
199
- #: inc/settings-display.php:72
200
- msgid ""
201
- "for steps to set up GA4 (look for the section called &ldquo;To enable Google "
202
- "Analytics 4&rdquo;)."
203
  msgstr ""
204
 
205
- #: inc/settings-display.php:179
206
- msgid "for Universal Analytics, or added to"
207
  msgstr ""
208
 
209
- #: inc/settings-display.php:151 inc/settings-display.php:155
210
- msgid "Force SSL"
211
  msgstr ""
212
 
213
  #. Name of the plugin
214
- #: ga-google-analytics.php:66 ga-google-analytics.php:84
215
  msgid "GA Google Analytics"
216
  msgstr ""
217
 
218
- #: inc/settings-display.php:50 inc/settings-display.php:237
219
  msgid "GA Google Analytics Pro"
220
  msgstr ""
221
 
222
- #: inc/settings-display.php:114
223
  msgid "GA Tracking ID"
224
  msgstr ""
225
 
226
- #: ga-google-analytics.php:134
227
  msgid "Get GA Pro!"
228
  msgstr ""
229
 
230
- #: inc/settings-display.php:40
231
  msgid "give it a 5-star rating"
232
  msgstr ""
233
 
234
- #: ga-google-analytics.php:394 inc/settings-display.php:82
235
- msgid "Global Site Tag"
236
- msgstr ""
237
-
238
- #: ga-google-analytics.php:135
239
  msgid "Go&nbsp;Pro"
240
  msgstr ""
241
 
242
- #: ga-google-analytics.php:85 inc/support-panel.php:5
 
243
  msgid "Google Analytics"
244
  msgstr ""
245
 
246
- #: inc/settings-display.php:70
247
  msgid "Google Analytics 4!"
248
  msgstr ""
249
 
250
- #: inc/settings-display.php:92
251
  msgid "Google Analytics account"
252
  msgstr ""
253
 
254
- #: inc/settings-display.php:94
255
  msgid "Google Analytics Help Center"
256
  msgstr ""
257
 
258
- #: inc/settings-display.php:206
259
- msgid "Here you may specify any markup to be displayed in the"
260
  msgstr ""
261
 
262
- #: ga-google-analytics.php:154
263
  msgid "Homepage"
264
  msgstr ""
265
 
266
- #: inc/settings-display.php:32 inc/settings-display.php:63
267
  msgid "How to Use"
268
  msgstr ""
269
 
270
- #: inc/settings-display.php:75
271
  msgid "How to use this plugin:"
272
  msgstr ""
273
 
@@ -279,23 +275,23 @@ msgstr ""
279
  msgid "https://plugin-planet.com/"
280
  msgstr ""
281
 
282
- #: inc/settings-display.php:169
283
  msgid "If in doubt, go with the head option."
284
  msgstr ""
285
 
286
- #: inc/settings-display.php:38
287
  msgid "If you like this plugin, please"
288
  msgstr ""
289
 
290
- #: ga-google-analytics.php:381
291
- msgid "Include tracking code in page footer (via"
292
  msgstr ""
293
 
294
- #: ga-google-analytics.php:377
295
- msgid "Include tracking code in page head (via"
296
  msgstr ""
297
 
298
- #: inc/settings-display.php:143 inc/settings-display.php:147
299
  msgid "IP Anonymization"
300
  msgstr ""
301
 
@@ -303,176 +299,200 @@ msgstr ""
303
  msgid "Jeff Starr"
304
  msgstr ""
305
 
306
- #: inc/settings-display.php:284
307
  msgid "Jeff Starr on Twitter"
308
  msgstr ""
309
 
310
- #: ga-google-analytics.php:395
 
 
 
 
311
  msgid "Legacy"
312
  msgstr ""
313
 
314
- #: inc/settings-display.php:135
 
 
 
 
315
  msgid "Link Attribution"
316
  msgstr ""
317
 
318
- #: inc/settings-display.php:234
319
  msgid "More Options"
320
  msgstr ""
321
 
322
- #: inc/settings-display.php:193
323
  msgid "multiple trackers"
324
  msgstr ""
325
 
326
- #: ga-google-analytics.php:249
327
  msgid "No changes made to options."
328
  msgstr ""
329
 
330
- #: inc/settings-display.php:91
331
  msgid ""
332
  "Note that it can take 24-48 hours after adding the tracking code before any "
333
  "analytical data appears in your"
334
  msgstr ""
335
 
336
- #: inc/settings-display.php:196
337
  msgid "Note: you can use"
338
  msgstr ""
339
 
340
- #: inc/settings-display.php:286
341
  msgid "Obsessive Web Development"
342
  msgstr ""
343
 
344
- #: inc/settings-display.php:183
345
- msgid "optimize"
346
  msgstr ""
347
 
348
- #: inc/support-panel.php:68 inc/settings-display.php:82
 
 
 
 
 
 
 
 
 
 
349
  msgid "or"
350
  msgstr ""
351
 
352
- #: inc/support-panel.php:68
353
  msgid "or by making a"
354
  msgstr ""
355
 
 
 
 
 
356
  #: inc/settings-display.php:21
357
  msgid "Overview"
358
  msgstr ""
359
 
360
- #: inc/support-panel.php:58
361
  msgid "Perishable Press Books"
362
  msgstr ""
363
 
364
- #: ga-google-analytics.php:184
365
  msgid "Please return to the"
366
  msgstr ""
367
 
368
- #: inc/support-panel.php:67
369
  msgid "Please show support by purchasing one of my"
370
  msgstr ""
371
 
372
- #: ga-google-analytics.php:153 inc/settings-display.php:34
373
- #: inc/settings-display.php:282
374
  msgid "Plugin Homepage"
375
  msgstr ""
376
 
377
- #: inc/settings-display.php:71
378
  msgid "plugin homepage"
379
  msgstr ""
380
 
381
- #: inc/support-panel.php:59
382
  msgid "Plugin Planet"
383
  msgstr ""
384
 
385
- #: inc/settings-display.php:33 inc/settings-display.php:106
386
  msgid "Plugin Settings"
387
  msgstr ""
388
 
389
- #: inc/support-panel.php:63
390
  msgid "plugins"
391
  msgstr ""
392
 
393
- #: inc/settings-display.php:50
394
  msgid "PRO Version"
395
  msgstr ""
396
 
397
- #: ga-google-analytics.php:160
398
  msgid "Rate this plugin"
399
  msgstr ""
400
 
401
- #: ga-google-analytics.php:182
402
  msgid "requires WordPress "
403
  msgstr ""
404
 
405
- #: ga-google-analytics.php:472
406
  msgid "Restore default plugin options"
407
  msgstr ""
408
 
409
- #: inc/settings-display.php:252
410
  msgid "Restore Defaults"
411
  msgstr ""
412
 
413
- #: inc/settings-display.php:244
414
  msgid "Save Changes"
415
  msgstr ""
416
 
417
- #: inc/settings-display.php:87
418
  msgid ""
419
  "Save changes and done. After 24-48 hours, you can log into your Google "
420
  "Analytics account to view your stats."
421
  msgstr ""
422
 
423
- #: inc/settings-display.php:207
424
- msgid ""
425
- "section (or in the footer, depending on the \"Tracking Code Location\" "
426
- "setting, above)."
427
  msgstr ""
428
 
429
- #: ga-google-analytics.php:125
430
- msgid "Settings"
431
  msgstr ""
432
 
433
- #: inc/settings-display.php:266
434
  msgid "Show Support"
435
  msgstr ""
436
 
437
- #: inc/support-panel.php:66
 
 
 
 
 
 
438
  msgid "Thank you for using"
439
  msgstr ""
440
 
441
- #: inc/settings-display.php:39
442
  msgid "THANK YOU for your support!"
443
  msgstr ""
444
 
445
- #: inc/settings-display.php:216
446
  msgid "the GA tracking code (leave unchecked to display"
447
  msgstr ""
448
 
449
- #: inc/settings-display.php:216
450
  msgid "the tracking code)"
451
  msgstr ""
452
 
453
- #: inc/settings-display.php:29
454
- msgid ""
455
- "This plugin adds the GA Tracking Code to your site. Log in to your Google "
456
- "account to view your stats."
457
  msgstr ""
458
 
459
- #: inc/settings-display.php:168
460
  msgid ""
461
  "Tip: Google recommends including the tracking code in the page head, but "
462
  "including it in the footer can benefit page performance."
463
  msgstr ""
464
 
465
- #: inc/settings-display.php:93
466
  msgid ""
467
  "To check that the GA tacking code is included, look at the source code of "
468
  "your web page(s). Learn more at the"
469
  msgstr ""
470
 
471
- #: inc/settings-display.php:197
472
  msgid "to get the current user ID and login name."
473
  msgstr ""
474
 
475
- #: ga-google-analytics.php:185
476
  msgid "to upgrade WordPress and try again."
477
  msgstr ""
478
 
@@ -480,38 +500,40 @@ msgstr ""
480
  msgid "Toggle all panels"
481
  msgstr ""
482
 
483
- #: inc/settings-display.php:181
484
- msgid "tracker objects"
485
- msgstr ""
486
-
487
- #: inc/settings-display.php:164
488
  msgid "Tracking Code Location"
489
  msgstr ""
490
 
491
- #: inc/settings-display.php:118
492
  msgid "Tracking Method"
493
  msgstr ""
494
 
495
- #: ga-google-analytics.php:393 inc/settings-display.php:81
496
- msgid "Universal Analytics"
 
 
497
  msgstr ""
498
 
499
- #: inc/settings-display.php:195
500
- msgid "user opt-out"
501
  msgstr ""
502
 
503
- #: inc/settings-display.php:70
504
- msgid "Visit the"
505
  msgstr ""
506
 
507
- #: inc/settings-display.php:78
508
  msgid "Visit the \"Plugin Settings\" panel"
509
  msgstr ""
510
 
511
- #: ga-google-analytics.php:185
512
  msgid "WP Admin Area"
513
  msgstr ""
514
 
515
- #: inc/support-panel.php:69
516
  msgid "Your generous support helps to ensure future development of"
517
  msgstr ""
 
 
 
 
3
  msgstr ""
4
  "Project-Id-Version: GA Google Analytics\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2022-10-03 21:57+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
+ #: ga-google-analytics.php:206
18
  msgid " or higher, and has been deactivated! "
19
  msgstr ""
20
 
21
+ #: inc/settings-display.php:87
22
+ msgid "(aka, Global Site Tag) or"
23
+ msgstr ""
24
+
25
+ #: ga-google-analytics.php:431
26
  msgid "(default)"
27
  msgstr ""
28
 
29
+ #: ga-google-analytics.php:435 ga-google-analytics.php:439
30
  msgid "(deprecated)"
31
  msgstr ""
32
 
33
+ #: ga-google-analytics.php:351
34
  msgid ""
35
  "(for Google Tag Manager), which is not supported. Please try again with a "
36
  "supported tracking code."
37
  msgstr ""
38
 
39
+ #: inc/settings-display.php:76
40
+ msgid "(under &ldquo;Enable Google Analytics 4&rdquo;)."
41
  msgstr ""
42
 
43
+ #: ga-google-analytics.php:396 ga-google-analytics.php:399
44
+ msgid "(via"
45
+ msgstr ""
46
+
47
+ #: ga-google-analytics.php:397 ga-google-analytics.php:400
48
  msgid ")"
49
  msgstr ""
50
 
51
+ #: inc/settings-display.php:295
52
  msgid "@"
53
  msgstr ""
54
 
56
  msgid "Adds your Google Analytics Tracking Code to your WordPress site."
57
  msgstr ""
58
 
59
+ #: inc/settings-display.php:230
60
  msgid "Admin Area"
61
  msgstr ""
62
 
63
+ #: inc/settings-display.php:237
64
  msgid "Admin Users"
65
  msgstr ""
66
 
67
+ #: inc/settings-display.php:226
68
  msgid "after"
69
  msgstr ""
70
 
71
+ #: inc/settings-display.php:204 inc/settings-display.php:206
 
72
  msgid "and"
73
  msgstr ""
74
 
75
+ #: inc/support-panel.php:61
76
  msgid "and is greatly appreciated."
77
  msgstr ""
78
 
79
+ #: inc/support-panel.php:63
 
 
 
 
 
 
 
 
 
 
80
  msgid ""
81
  "Any size donation helps me to continue developing this free plugin and other "
82
  "awesome WordPress resources."
83
  msgstr ""
84
 
85
+ #: ga-google-analytics.php:115
86
  msgid "Are you sure you want to restore all default options?"
87
  msgstr ""
88
 
89
+ #: inc/settings-display.php:225
90
  msgid "before"
91
  msgstr ""
92
 
93
+ #: inc/support-panel.php:53
94
  msgid "books"
95
  msgstr ""
96
 
97
+ #: inc/settings-display.php:293
98
  msgid "by"
99
  msgstr ""
100
 
101
+ #: ga-google-analytics.php:304 ga-google-analytics.php:310
102
  msgid "Cheatin&rsquo; huh?"
103
  msgstr ""
104
 
105
+ #: inc/settings-display.php:53
106
  msgid "Check out the"
107
  msgstr ""
108
 
109
+ #: inc/settings-display.php:85
110
  msgid "Choose either"
111
  msgstr ""
112
 
113
+ #: ga-google-analytics.php:160
114
  msgid "Click here to rate and review this plugin on WordPress.org"
115
  msgstr ""
116
 
117
+ #: inc/settings-display.php:266
118
  msgid "Click the link to restore the default plugin options."
119
  msgstr ""
120
 
121
+ #: inc/settings-display.php:90
122
  msgid "Configure any other plugin settings as desired (optional)"
123
  msgstr ""
124
 
125
+ #: inc/settings-display.php:212
126
  msgid "Custom Code"
127
  msgstr ""
128
 
129
+ #: inc/settings-display.php:222
130
  msgid "Custom Code Location"
131
  msgstr ""
132
 
133
+ #: inc/settings-display.php:198
134
  msgid "Custom GA Code"
135
  msgstr ""
136
 
137
+ #: inc/settings-display.php:187
138
  msgid "Custom Tracker Objects"
139
  msgstr ""
140
 
141
+ #: ga-google-analytics.php:268
142
  msgid "Default options restored."
143
  msgstr ""
144
 
145
+ #: inc/settings-display.php:240
146
  msgid "Disable tracking of Admin-level users"
147
  msgstr ""
148
 
149
+ #: inc/settings-display.php:140 inc/settings-display.php:144
150
  msgid "Display Advertising"
151
  msgstr ""
152
 
153
+ #: inc/settings-display.php:225
154
  msgid "Display Custom Code"
155
  msgstr ""
156
 
157
+ #: inc/support-panel.php:51
158
  msgid "Donate via PayPal"
159
  msgstr ""
160
 
161
+ #: inc/support-panel.php:55
162
  msgid "donation"
163
  msgstr ""
164
 
165
+ #: inc/settings-display.php:143 inc/settings-display.php:151
166
+ #: inc/settings-display.php:159 inc/settings-display.php:167
167
  msgid "Enable support for"
168
  msgstr ""
169
 
170
+ #: inc/settings-display.php:233
171
  msgid ""
172
  "Enable tracking in WP Admin Area (adds tracking code only; to view stats log "
173
  "into your Google account)"
174
  msgstr ""
175
 
176
+ #: inc/settings-display.php:152
177
  msgid "Enhanced Link Attribution"
178
  msgstr ""
179
 
180
+ #: inc/settings-display.php:83
181
+ msgid "Enter your Google Tracking ID (aka, Tag ID)"
182
+ msgstr ""
183
+
184
+ #: inc/settings-display.php:124
185
+ msgid "Enter your Google Tracking ID (aka, Tag ID)."
186
  msgstr ""
187
 
188
+ #: ga-google-analytics.php:350
189
  msgid "Error: your tracking code begins with"
190
  msgstr ""
191
 
192
+ #: inc/settings-display.php:246
193
  msgid "For advanced features, check out"
194
  msgstr ""
195
 
196
+ #: inc/settings-display.php:192
197
+ msgid "for Google Tag, or added to"
198
  msgstr ""
199
 
200
+ #: inc/settings-display.php:193
201
+ msgid "for Universal Analytics."
 
 
202
  msgstr ""
203
 
204
+ #: inc/settings-display.php:164 inc/settings-display.php:168
205
+ msgid "Force SSL"
206
  msgstr ""
207
 
208
+ #: inc/settings-display.php:31
209
+ msgid "GA"
210
  msgstr ""
211
 
212
  #. Name of the plugin
213
+ #: ga-google-analytics.php:67 ga-google-analytics.php:85
214
  msgid "GA Google Analytics"
215
  msgstr ""
216
 
217
+ #: inc/settings-display.php:54 inc/settings-display.php:247
218
  msgid "GA Google Analytics Pro"
219
  msgstr ""
220
 
221
+ #: inc/settings-display.php:120
222
  msgid "GA Tracking ID"
223
  msgstr ""
224
 
225
+ #: ga-google-analytics.php:135
226
  msgid "Get GA Pro!"
227
  msgstr ""
228
 
229
+ #: inc/settings-display.php:44
230
  msgid "give it a 5-star rating"
231
  msgstr ""
232
 
233
+ #: ga-google-analytics.php:136
 
 
 
 
234
  msgid "Go&nbsp;Pro"
235
  msgstr ""
236
 
237
+ #: ga-google-analytics.php:86 inc/support-panel.php:5
238
+ #: inc/settings-display.php:31
239
  msgid "Google Analytics"
240
  msgstr ""
241
 
242
+ #: inc/settings-display.php:74
243
  msgid "Google Analytics 4!"
244
  msgstr ""
245
 
246
+ #: inc/settings-display.php:98
247
  msgid "Google Analytics account"
248
  msgstr ""
249
 
250
+ #: inc/settings-display.php:100
251
  msgid "Google Analytics Help Center"
252
  msgstr ""
253
 
254
+ #: ga-google-analytics.php:423 inc/settings-display.php:86
255
+ msgid "Google Tag"
256
  msgstr ""
257
 
258
+ #: ga-google-analytics.php:155
259
  msgid "Homepage"
260
  msgstr ""
261
 
262
+ #: inc/settings-display.php:36 inc/settings-display.php:67
263
  msgid "How to Use"
264
  msgstr ""
265
 
266
+ #: inc/settings-display.php:79
267
  msgid "How to use this plugin:"
268
  msgstr ""
269
 
275
  msgid "https://plugin-planet.com/"
276
  msgstr ""
277
 
278
+ #: inc/settings-display.php:182
279
  msgid "If in doubt, go with the head option."
280
  msgstr ""
281
 
282
+ #: inc/settings-display.php:42
283
  msgid "If you like this plugin, please"
284
  msgstr ""
285
 
286
+ #: ga-google-analytics.php:399
287
+ msgid "Include tracking code in page footer"
288
  msgstr ""
289
 
290
+ #: ga-google-analytics.php:396
291
+ msgid "Include tracking code in page head"
292
  msgstr ""
293
 
294
+ #: inc/settings-display.php:156 inc/settings-display.php:160
295
  msgid "IP Anonymization"
296
  msgstr ""
297
 
299
  msgid "Jeff Starr"
300
  msgstr ""
301
 
302
+ #: inc/settings-display.php:294
303
  msgid "Jeff Starr on Twitter"
304
  msgstr ""
305
 
306
+ #: inc/settings-display.php:74
307
+ msgid "Learn how to enable GA4. Quick steps available on the"
308
+ msgstr ""
309
+
310
+ #: ga-google-analytics.php:424
311
  msgid "Legacy"
312
  msgstr ""
313
 
314
+ #: ga-google-analytics.php:181
315
+ msgid "Like this plugin? Give it a"
316
+ msgstr ""
317
+
318
+ #: inc/settings-display.php:148
319
  msgid "Link Attribution"
320
  msgstr ""
321
 
322
+ #: inc/settings-display.php:244
323
  msgid "More Options"
324
  msgstr ""
325
 
326
+ #: inc/settings-display.php:203
327
  msgid "multiple trackers"
328
  msgstr ""
329
 
330
+ #: ga-google-analytics.php:272
331
  msgid "No changes made to options."
332
  msgstr ""
333
 
334
+ #: inc/settings-display.php:97
335
  msgid ""
336
  "Note that it can take 24-48 hours after adding the tracking code before any "
337
  "analytical data appears in your"
338
  msgstr ""
339
 
340
+ #: inc/settings-display.php:206
341
  msgid "Note: you can use"
342
  msgstr ""
343
 
344
+ #: inc/settings-display.php:296
345
  msgid "Obsessive Web Development"
346
  msgstr ""
347
 
348
+ #: inc/settings-display.php:191
349
+ msgid "Optional code added to"
350
  msgstr ""
351
 
352
+ #: inc/settings-display.php:202
353
+ msgid ""
354
+ "Optional code added to the GA tracking snippet. This is useful for things "
355
+ "like creating"
356
+ msgstr ""
357
+
358
+ #: inc/settings-display.php:216
359
+ msgid "Optional markup added to"
360
+ msgstr ""
361
+
362
+ #: inc/support-panel.php:59
363
  msgid "or"
364
  msgstr ""
365
 
366
+ #: inc/support-panel.php:59
367
  msgid "or by making a"
368
  msgstr ""
369
 
370
+ #: inc/settings-display.php:217
371
+ msgid "or footer, depending on the previous setting, Tracking Code Location."
372
+ msgstr ""
373
+
374
  #: inc/settings-display.php:21
375
  msgid "Overview"
376
  msgstr ""
377
 
378
+ #: inc/support-panel.php:49
379
  msgid "Perishable Press Books"
380
  msgstr ""
381
 
382
+ #: ga-google-analytics.php:207
383
  msgid "Please return to the"
384
  msgstr ""
385
 
386
+ #: inc/support-panel.php:58
387
  msgid "Please show support by purchasing one of my"
388
  msgstr ""
389
 
390
+ #: ga-google-analytics.php:154 inc/settings-display.php:38
391
+ #: inc/settings-display.php:292
392
  msgid "Plugin Homepage"
393
  msgstr ""
394
 
395
+ #: inc/settings-display.php:75
396
  msgid "plugin homepage"
397
  msgstr ""
398
 
399
+ #: inc/support-panel.php:50
400
  msgid "Plugin Planet"
401
  msgstr ""
402
 
403
+ #: inc/settings-display.php:37 inc/settings-display.php:112
404
  msgid "Plugin Settings"
405
  msgstr ""
406
 
407
+ #: inc/support-panel.php:54
408
  msgid "plugins"
409
  msgstr ""
410
 
411
+ #: inc/settings-display.php:54
412
  msgid "PRO Version"
413
  msgstr ""
414
 
415
+ #: ga-google-analytics.php:161
416
  msgid "Rate this plugin"
417
  msgstr ""
418
 
419
+ #: ga-google-analytics.php:205
420
  msgid "requires WordPress "
421
  msgstr ""
422
 
423
+ #: ga-google-analytics.php:502
424
  msgid "Restore default plugin options"
425
  msgstr ""
426
 
427
+ #: inc/settings-display.php:262
428
  msgid "Restore Defaults"
429
  msgstr ""
430
 
431
+ #: inc/settings-display.php:254
432
  msgid "Save Changes"
433
  msgstr ""
434
 
435
+ #: inc/settings-display.php:93
436
  msgid ""
437
  "Save changes and done. After 24-48 hours, you can log into your Google "
438
  "Analytics account to view your stats."
439
  msgstr ""
440
 
441
+ #: ga-google-analytics.php:126
442
+ msgid "Settings"
 
 
443
  msgstr ""
444
 
445
+ #: inc/settings-display.php:125
446
+ msgid "Show info"
447
  msgstr ""
448
 
449
+ #: inc/settings-display.php:276
450
  msgid "Show Support"
451
  msgstr ""
452
 
453
+ #: inc/settings-display.php:126
454
+ msgid ""
455
+ "Supported formats include GT-XXXXXXXXX, G-XXXXXXXXX, and AW-XXXXXXXXX. "
456
+ "Google Tag Manager (GTM-XXXXXXXXX) currently is not supported."
457
+ msgstr ""
458
+
459
+ #: inc/support-panel.php:57
460
  msgid "Thank you for using"
461
  msgstr ""
462
 
463
+ #: inc/settings-display.php:43
464
  msgid "THANK YOU for your support!"
465
  msgstr ""
466
 
467
+ #: inc/settings-display.php:226
468
  msgid "the GA tracking code (leave unchecked to display"
469
  msgstr ""
470
 
471
+ #: inc/settings-display.php:226
472
  msgid "the tracking code)"
473
  msgstr ""
474
 
475
+ #: inc/settings-display.php:30
476
+ msgid "This plugin adds the"
 
 
477
  msgstr ""
478
 
479
+ #: inc/settings-display.php:181
480
  msgid ""
481
  "Tip: Google recommends including the tracking code in the page head, but "
482
  "including it in the footer can benefit page performance."
483
  msgstr ""
484
 
485
+ #: inc/settings-display.php:99
486
  msgid ""
487
  "To check that the GA tacking code is included, look at the source code of "
488
  "your web page(s). Learn more at the"
489
  msgstr ""
490
 
491
+ #: inc/settings-display.php:207
492
  msgid "to get the current user ID and login name."
493
  msgstr ""
494
 
495
+ #: ga-google-analytics.php:208
496
  msgid "to upgrade WordPress and try again."
497
  msgstr ""
498
 
500
  msgid "Toggle all panels"
501
  msgstr ""
502
 
503
+ #: inc/settings-display.php:177
 
 
 
 
504
  msgid "Tracking Code Location"
505
  msgstr ""
506
 
507
+ #: inc/settings-display.php:131
508
  msgid "Tracking Method"
509
  msgstr ""
510
 
511
+ #: inc/settings-display.php:32
512
+ msgid ""
513
+ "tracking snippet to your site. Log in to your Google account to view your "
514
+ "stats."
515
  msgstr ""
516
 
517
+ #: ga-google-analytics.php:422 inc/settings-display.php:88
518
+ msgid "Universal Analytics"
519
  msgstr ""
520
 
521
+ #: inc/settings-display.php:205
522
+ msgid "user opt-out"
523
  msgstr ""
524
 
525
+ #: inc/settings-display.php:82
526
  msgid "Visit the \"Plugin Settings\" panel"
527
  msgstr ""
528
 
529
+ #: ga-google-analytics.php:208
530
  msgid "WP Admin Area"
531
  msgstr ""
532
 
533
+ #: inc/support-panel.php:60
534
  msgid "Your generous support helps to ensure future development of"
535
  msgstr ""
536
+
537
+ #: ga-google-analytics.php:185
538
+ msgid "★★★★★ rating&nbsp;&raquo;"
539
+ msgstr ""
readme.txt CHANGED
@@ -9,9 +9,9 @@ Author URI: https://plugin-planet.com/
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.6
12
- Tested up to: 6.0
13
- Stable tag: 20220517
14
- Version: 20220517
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
@@ -33,16 +33,19 @@ This plugin enables Google Analytics for your entire WordPress site. Lightweight
33
 
34
  ### GA Tracking Options ###
35
 
 
36
  * [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/) / analytics.js
37
- * [Global Site Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/) / gtag.js
38
  * [Legacy](https://developers.google.com/analytics/devguides/collection/gajs/) / ga.js
39
 
40
- To enable __Google Analytics 4__:
 
 
 
41
 
42
  1. Follow [this guide](https://support.google.com/analytics/answer/9306384) to create a GA 4 account
43
  2. During account creation, you'll get a tracking (measurement) ID
44
  3. Add your new tracking ID to the plugin setting, "GA Tracking ID"
45
- 4. Select "Global Site Tag" for the plugin setting, "Tracking Method"
46
 
47
  Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
48
 
@@ -55,7 +58,7 @@ Save changes and done. Wait 24-48 hours before viewing collected data in your GA
55
  * Supports [IP Anonymization](https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization)
56
  * Supports [Force SSL](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#forceSSL)
57
  * Supports [Tracker Objects](https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers)
58
- * Supports [Google Optimize](https://support.google.com/optimize/answer/6262084)
59
  * Supports [User Opt-Out](https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out)
60
 
61
  Also supports tracking links and conversions via the Custom Code setting. Learn more about [Google Analytics](https://www.google.com/analytics/)!
@@ -76,7 +79,7 @@ Also supports tracking links and conversions via the Custom Code setting. Learn
76
  * Option to enable page tracking in the Admin Area
77
  * Works with or without Gutenberg Block Editor
78
  * Easy to customize the tracking code
79
- * More features available in the [Pro version](https://plugin-planet.com/ga-google-analytics-pro/)
80
 
81
  This is a lightweight plugin that inserts the required GA tracking code. To view your site statistics, visit your Google Analytics account.
82
 
@@ -108,6 +111,30 @@ __Cookies:__ This plugin uses simple cookies for the visitor Opt-Out Box to reme
108
 
109
  __Services:__ This plugin does not connect to any third-party locations or services, but it does enable Google to collect all sorts of data.
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
 
113
  == Installation ==
@@ -128,16 +155,17 @@ __Note:__ this plugin adds the required GA code to your web pages. In order for
128
 
129
  To enable Google Analytics tracking on your site, follow these steps:
130
 
131
- 1. Visit the "Plugin Settings" panel
132
- 2. Enter your GA Tracking ID
133
- 3. Choose either [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/) or [Global Site Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/)*
134
- 4. Configure any other plugin settings as desired (optional)
 
135
 
136
  Save changes and done. After 24-48 hours, you can log into your Google Analytics account to view your stats.
137
 
138
- __Notes:__
139
 
140
- Global Site Tag is required for Google Analytics 4. For steps on setting up GA 4, check out the [plugin homepage](https://wordpress.org/plugins/ga-google-analytics/) (under "GA Tracking Options"). This information also is available at [Plugin Planet](https://plugin-planet.com/ga-pro-enable-google-analytics-4/).
141
 
142
  Also note that it can take 24-48 hours after adding the tracking code before any analytical data appears in your [Google Analytics account](https://developers.google.com/analytics/). To check that the GA tacking code is included, look at the source code of your web page(s). Learn more at the [Google Analytics Help Center](https://support.google.com/analytics/?hl=en#topic=3544906).
143
 
@@ -201,6 +229,7 @@ For more information, visit the [GA Plugin Homepage](https://perishablepress.com
201
 
202
  == Frequently Asked Questions ==
203
 
 
204
  **How to enable Google Analytics 4?**
205
 
206
  To enable __Google Analytics 4__:
@@ -208,7 +237,7 @@ To enable __Google Analytics 4__:
208
  1. Follow [this guide](https://support.google.com/analytics/answer/9306384) to create a GA 4 account
209
  2. During account creation, you'll get a tracking (measurement) ID
210
  3. Add your new tracking ID to the plugin setting, "GA Tracking ID"
211
- 4. Select "Global Site Tag" for the plugin setting, "Tracking Method"
212
 
213
  Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
214
 
@@ -296,28 +325,6 @@ To ask a question, suggest a feature, or provide feedback, [contact me directly]
296
 
297
 
298
 
299
- == Support development of this plugin ==
300
-
301
- I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
302
-
303
- * [The Tao of WordPress](https://wp-tao.com/)
304
- * [Digging into WordPress](https://digwp.com/)
305
- * [.htaccess made easy](https://htaccessbook.com/)
306
- * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
307
- * [Wizard's SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)
308
-
309
- And/or purchase one of my premium WordPress plugins:
310
-
311
- * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Super fast WordPress firewall
312
- * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Automatically block bad bots
313
- * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) - Monitor traffic and ban the bad guys
314
- * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/) - Connect WordPress to Google Analytics
315
- * [USP Pro](https://plugin-planet.com/usp-pro/) - Unlimited front-end forms
316
-
317
- Links, tweets and likes also appreciated. Thanks! :)
318
-
319
-
320
-
321
  == Changelog ==
322
 
323
  *Thank you to everyone who shares feedback for GA Google Analytics!*
@@ -327,6 +334,18 @@ If you like GA Google Analytics, please take a moment to [give a 5-star rating](
327
  > New Pro version available! Check out [GA Pro &raquo;](https://plugin-planet.com/ga-google-analytics-pro/)
328
 
329
 
 
 
 
 
 
 
 
 
 
 
 
 
330
  **20220517**
331
 
332
  * Changes hook `gapro_tracker_object_universal` to `ga_google_analytics_tracker_object_universal`
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.6
12
+ Tested up to: 6.1
13
+ Stable tag: 20221002
14
+ Version: 20221002
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
33
 
34
  ### GA Tracking Options ###
35
 
36
+ * [Google Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/) / gtag.js
37
  * [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/) / analytics.js
 
38
  * [Legacy](https://developers.google.com/analytics/devguides/collection/gajs/) / ga.js
39
 
40
+ __Note:__ Google renamed "Global Site Tag" to "Google Tag".
41
+
42
+
43
+ ### Enable Google Analytics 4 ###
44
 
45
  1. Follow [this guide](https://support.google.com/analytics/answer/9306384) to create a GA 4 account
46
  2. During account creation, you'll get a tracking (measurement) ID
47
  3. Add your new tracking ID to the plugin setting, "GA Tracking ID"
48
+ 4. Select "Google Tag" for the plugin setting, "Tracking Method"
49
 
50
  Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
51
 
58
  * Supports [IP Anonymization](https://developers.google.com/analytics/devguides/collection/analyticsjs/ip-anonymization)
59
  * Supports [Force SSL](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#forceSSL)
60
  * Supports [Tracker Objects](https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers)
61
+ * Supports [Google Optimize](https://support.google.com/optimize/answer/7513085)
62
  * Supports [User Opt-Out](https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out)
63
 
64
  Also supports tracking links and conversions via the Custom Code setting. Learn more about [Google Analytics](https://www.google.com/analytics/)!
79
  * Option to enable page tracking in the Admin Area
80
  * Works with or without Gutenberg Block Editor
81
  * Easy to customize the tracking code
82
+ * More features available in the [Pro version&nbsp;&raquo;](https://plugin-planet.com/ga-google-analytics-pro/)
83
 
84
  This is a lightweight plugin that inserts the required GA tracking code. To view your site statistics, visit your Google Analytics account.
85
 
111
 
112
  __Services:__ This plugin does not connect to any third-party locations or services, but it does enable Google to collect all sorts of data.
113
 
114
+ GA Google Analytics is developed and maintained by [Jeff Starr](https://twitter.com/perishable), 15-year [WordPress developer](https://plugin-planet.com/) and [book author](https://books.perishablepress.com/).
115
+
116
+
117
+ ### Support development ###
118
+
119
+ I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a donation](https://monzillamedia.com/donate.html) or purchase one of my books:
120
+
121
+ * [The Tao of WordPress](https://wp-tao.com/)
122
+ * [Digging into WordPress](https://digwp.com/)
123
+ * [.htaccess made easy](https://htaccessbook.com/)
124
+ * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
125
+ * [Wizard's SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)
126
+
127
+ And/or purchase one of my premium WordPress plugins:
128
+
129
+ * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Super fast WordPress firewall
130
+ * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Automatically block bad bots
131
+ * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) - Monitor traffic and ban the bad guys
132
+ * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/) - Connect WordPress to Google Analytics
133
+ * [Simple Ajax Chat Pro](https://plugin-planet.com/simple-ajax-chat-pro/) - Unlimited chat rooms
134
+ * [USP Pro](https://plugin-planet.com/usp-pro/) - Unlimited front-end forms
135
+
136
+ Links, tweets and likes also appreciated. Thank you! :)
137
+
138
 
139
 
140
  == Installation ==
155
 
156
  To enable Google Analytics tracking on your site, follow these steps:
157
 
158
+ 1. Visit the plugin settings
159
+ 2. Toggle open the "Plugin Settings" panel
160
+ 3. In the first setting, "GA Tracking ID", enter your Tracking ID
161
+ 4. In the next setting, "Tracking Method", choose either [Google Tag](https://developers.google.com/analytics/devguides/collection/gtagjs/) or [Universal Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/)*
162
+ 5. Configure any other plugin settings as desired (optional)
163
 
164
  Save changes and done. After 24-48 hours, you can log into your Google Analytics account to view your stats.
165
 
166
+ __* Notes:__
167
 
168
+ Google Tag (aka, Global Site Tag) is required for Google Analytics 4. For steps on setting up GA 4, check out the [plugin homepage](https://wordpress.org/plugins/ga-google-analytics/) (under "GA Tracking Options"). This information also is available at [Plugin Planet](https://plugin-planet.com/ga-pro-enable-google-analytics-4/).
169
 
170
  Also note that it can take 24-48 hours after adding the tracking code before any analytical data appears in your [Google Analytics account](https://developers.google.com/analytics/). To check that the GA tacking code is included, look at the source code of your web page(s). Learn more at the [Google Analytics Help Center](https://support.google.com/analytics/?hl=en#topic=3544906).
171
 
229
 
230
  == Frequently Asked Questions ==
231
 
232
+
233
  **How to enable Google Analytics 4?**
234
 
235
  To enable __Google Analytics 4__:
237
  1. Follow [this guide](https://support.google.com/analytics/answer/9306384) to create a GA 4 account
238
  2. During account creation, you'll get a tracking (measurement) ID
239
  3. Add your new tracking ID to the plugin setting, "GA Tracking ID"
240
+ 4. Select "Google Tag" for the plugin setting, "Tracking Method"
241
 
242
  Save changes and done. Wait 24-48 hours before viewing collected data in your GA account.
243
 
325
 
326
 
327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
328
  == Changelog ==
329
 
330
  *Thank you to everyone who shares feedback for GA Google Analytics!*
334
  > New Pro version available! Check out [GA Pro &raquo;](https://plugin-planet.com/ga-google-analytics-pro/)
335
 
336
 
337
+ **20221002**
338
+
339
+ * __Note:__ Google renamed "Global Site Tag" to "Google Tag"
340
+ * Updates various plugin links to latest Google documentation
341
+ * Deprecates Universal Analytics `analytics.js` ([learn more](https://developers.google.com/analytics/devguides/collection/analyticsjs/))
342
+ * Adds custom footer text to plugin settings
343
+ * Improves plugin settings page details
344
+ * Improves plugin documentation
345
+ * Updates "Show Support" panel
346
+ * Updates translation template
347
+ * Tests on WordPress 6.1
348
+
349
  **20220517**
350
 
351
  * Changes hook `gapro_tracker_object_universal` to `ga_google_analytics_tracker_object_universal`