GA Google Analytics - Version 20220517

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 20220517
Comparing to
See all releases

Code changes from version 20220124 to 20220517

css/settings.css CHANGED
@@ -43,4 +43,6 @@
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; }
 
 
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; }
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: 5.9
13
- Stable tag: 20220124
14
- Version: 20220124
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
@@ -60,7 +60,7 @@ if (!class_exists('GA_Google_Analytics')) {
60
 
61
  function constants() {
62
 
63
- if (!defined('GAP_VERSION')) define('GAP_VERSION', '20220124');
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'));
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
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'));
inc/plugin-core.php CHANGED
@@ -84,7 +84,7 @@ function ga_google_analytics_universal() {
84
 
85
  $custom_code = ga_google_analytics_custom_code($custom_code);
86
 
87
- $tracker_object = apply_filters('gapro_tracker_object_universal', $tracker_object);
88
 
89
  $auto = apply_filters('ga_google_analytics_enable_auto', true) ? ", 'auto'" : "";
90
 
@@ -123,7 +123,7 @@ function ga_google_analytics_global() {
123
 
124
  $custom_code = ga_google_analytics_custom_code($custom_code);
125
 
126
- $tracker_object = apply_filters('gapro_tracker_object_global', $tracker_object);
127
 
128
  $script_atts_ext = apply_filters('ga_google_analytics_script_atts_ext', ' async');
129
 
@@ -190,9 +190,16 @@ function ga_google_analytics_custom_code($custom_code) {
190
 
191
  $custom_code = '';
192
 
 
 
 
 
 
 
193
  foreach ($custom_code_array as $code) {
194
 
195
- $code = preg_replace("/%%userid%%/i", get_current_user_id(), $code);
 
196
 
197
  $custom_code .= "\t\t\t" . rtrim($code) . "\n";
198
 
84
 
85
  $custom_code = ga_google_analytics_custom_code($custom_code);
86
 
87
+ $tracker_object = apply_filters('ga_google_analytics_tracker_object_universal', $tracker_object);
88
 
89
  $auto = apply_filters('ga_google_analytics_enable_auto', true) ? ", 'auto'" : "";
90
 
123
 
124
  $custom_code = ga_google_analytics_custom_code($custom_code);
125
 
126
+ $tracker_object = apply_filters('ga_google_analytics_tracker_object_global', $tracker_object);
127
 
128
  $script_atts_ext = apply_filters('ga_google_analytics_script_atts_ext', ' async');
129
 
190
 
191
  $custom_code = '';
192
 
193
+ $current_user = wp_get_current_user();
194
+
195
+ $current_id = $current_user ? $current_user->ID : '';
196
+
197
+ $current_name = $current_user ? $current_user->user_login : '';
198
+
199
  foreach ($custom_code_array as $code) {
200
 
201
+ $code = preg_replace("/%%userid%%/i", $current_id, $code);
202
+ $code = preg_replace("/%%username%%/i", $current_name, $code);
203
 
204
  $custom_code .= "\t\t\t" . rtrim($code) . "\n";
205
 
inc/settings-display.php CHANGED
@@ -66,6 +66,12 @@ if (!function_exists('add_action')) die(); ?>
66
 
67
  <div class="gap-panel-usage">
68
 
 
 
 
 
 
 
69
  <p><?php esc_html_e('How to use this plugin:', 'ga-google-analytics'); ?></p>
70
 
71
  <ol>
@@ -187,7 +193,8 @@ if (!function_exists('add_action')) die(); ?>
187
  <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>
188
  <?php esc_html_e('and', 'ga-google-analytics'); ?>
189
  <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>.
190
- <?php esc_html_e('Note: you can use', 'ga-google-analytics'); ?> <code>%%userid%%</code> <?php esc_html_e('to output the current user ID.', 'ga-google-analytics'); ?>
 
191
  </div>
192
  </td>
193
  </tr>
66
 
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>
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>.
196
+ <?php esc_html_e('Note: you can use', 'ga-google-analytics'); ?> <code>%%userid%%</code> <?php esc_html_e('and', 'ga-google-analytics'); ?> <code>%%username%%</code>
197
+ <?php esc_html_e('to get the current user ID and login name.', 'ga-google-analytics'); ?>
198
  </div>
199
  </td>
200
  </tr>
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: 2020-08-15 23:01+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,485 +14,504 @@ msgstr ""
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Generator: Loco https://localise.biz/"
16
 
17
- #. Name of the plugin
18
- #: ga-google-analytics.php:66 ga-google-analytics.php:84
19
- msgid "GA Google Analytics"
20
  msgstr ""
21
 
22
- #: ga-google-analytics.php:85 inc/support-panel.php:5
23
- msgid "Google Analytics"
24
  msgstr ""
25
 
26
- #: ga-google-analytics.php:114
27
- msgid "Are you sure you want to restore all default options?"
28
  msgstr ""
29
 
30
- #: ga-google-analytics.php:125
31
- msgid "Settings"
 
 
32
  msgstr ""
33
 
34
- #: ga-google-analytics.php:134
35
- msgid "Get GA Pro!"
36
  msgstr ""
37
 
38
- #: ga-google-analytics.php:135
39
- msgid "Go&nbsp;Pro"
40
  msgstr ""
41
 
42
- #: ga-google-analytics.php:153 inc/settings-display.php:34
43
- #: inc/settings-display.php:275
44
- msgid "Plugin Homepage"
45
  msgstr ""
46
 
47
- #: ga-google-analytics.php:154
48
- msgid "Homepage"
49
  msgstr ""
50
 
51
- #: ga-google-analytics.php:159
52
- msgid "Click here to rate and review this plugin on WordPress.org"
53
  msgstr ""
54
 
55
- #: ga-google-analytics.php:160
56
- msgid "Rate this plugin"
57
  msgstr ""
58
 
59
- #: ga-google-analytics.php:182
60
- msgid "requires WordPress "
61
  msgstr ""
62
 
63
- #: ga-google-analytics.php:183
64
- msgid " or higher, and has been deactivated! "
 
65
  msgstr ""
66
 
67
- #: ga-google-analytics.php:184
68
- msgid "Please return to the"
69
  msgstr ""
70
 
71
- #: ga-google-analytics.php:185
72
- msgid "WP Admin Area"
73
  msgstr ""
74
 
75
- #: ga-google-analytics.php:185
76
- msgid "to upgrade WordPress and try again."
 
 
77
  msgstr ""
78
 
79
- #: ga-google-analytics.php:245
80
- msgid "Default options restored."
 
 
81
  msgstr ""
82
 
83
- #: ga-google-analytics.php:249
84
- msgid "No changes made to options."
85
  msgstr ""
86
 
87
- #: ga-google-analytics.php:281 ga-google-analytics.php:287
88
- msgid "Cheatin&rsquo; huh?"
89
  msgstr ""
90
 
91
- #: ga-google-analytics.php:327
92
- msgid "Error: your tracking code begins with"
93
  msgstr ""
94
 
95
- #: ga-google-analytics.php:328
96
- msgid ""
97
- "(for Google Tag Manager), which is not supported. Please try again with a "
98
- "supported tracking code."
99
  msgstr ""
100
 
101
- #: ga-google-analytics.php:377
102
- msgid "Include tracking code in page head (via"
103
  msgstr ""
104
 
105
- #: ga-google-analytics.php:377 ga-google-analytics.php:381
106
- msgid ")"
107
  msgstr ""
108
 
109
- #: ga-google-analytics.php:381
110
- msgid "Include tracking code in page footer (via"
111
  msgstr ""
112
 
113
- #: ga-google-analytics.php:393 inc/settings-display.php:75
114
- msgid "Universal Analytics"
115
  msgstr ""
116
 
117
- #: ga-google-analytics.php:394 inc/settings-display.php:76
118
- msgid "Global Site Tag"
119
  msgstr ""
120
 
121
- #: ga-google-analytics.php:395
122
- msgid "Legacy"
123
  msgstr ""
124
 
125
- #: ga-google-analytics.php:401
126
- msgid "(default)"
127
  msgstr ""
128
 
129
- #: ga-google-analytics.php:405
130
- msgid "(new method)"
131
  msgstr ""
132
 
133
- #: ga-google-analytics.php:409
134
- msgid "(deprecated)"
135
  msgstr ""
136
 
137
- #: ga-google-analytics.php:472
138
- msgid "Restore default plugin options"
139
  msgstr ""
140
 
141
- #: inc/settings-display.php:9
142
- msgid "Toggle all panels"
143
  msgstr ""
144
 
145
- #: inc/settings-display.php:21
146
- msgid "Overview"
147
  msgstr ""
148
 
149
- #: inc/settings-display.php:29
150
- msgid ""
151
- "This plugin adds the GA Tracking Code to your site. Log in to your Google "
152
- "account to view your stats."
153
  msgstr ""
154
 
155
- #: inc/settings-display.php:32 inc/settings-display.php:63
156
- msgid "How to Use"
157
  msgstr ""
158
 
159
- #: inc/settings-display.php:33 inc/settings-display.php:100
160
- msgid "Plugin Settings"
161
  msgstr ""
162
 
163
- #: inc/settings-display.php:38
164
- msgid "If you like this plugin, please"
165
  msgstr ""
166
 
167
- #: inc/settings-display.php:39
168
- msgid "THANK YOU for your support!"
 
169
  msgstr ""
170
 
171
- #: inc/settings-display.php:40
172
- msgid "give it a 5-star rating"
 
 
173
  msgstr ""
174
 
175
- #: inc/settings-display.php:49
176
- msgid "Check out the"
177
  msgstr ""
178
 
179
- #: inc/settings-display.php:50 inc/settings-display.php:230
180
- msgid "GA Google Analytics Pro"
181
  msgstr ""
182
 
183
- #: inc/settings-display.php:50
184
- msgid "PRO Version"
185
  msgstr ""
186
 
187
- #: inc/settings-display.php:69
188
- msgid "How to use this plugin:"
 
 
 
 
189
  msgstr ""
190
 
191
  #: inc/settings-display.php:72
192
- msgid "Visit the \"Plugin Settings\" panel"
 
 
193
  msgstr ""
194
 
195
- #: inc/settings-display.php:73
196
- msgid "Enter your GA Tracking ID"
197
  msgstr ""
198
 
199
- #: inc/settings-display.php:75
200
- msgid "Choose either"
201
  msgstr ""
202
 
203
- #: inc/settings-display.php:76 inc/support-panel.php:65
204
- msgid "or"
 
205
  msgstr ""
206
 
207
- #: inc/settings-display.php:78
208
- msgid "Configure any other plugin settings as desired (optional)"
209
  msgstr ""
210
 
211
- #: inc/settings-display.php:81
212
- msgid ""
213
- "Save changes and done. After 24-48 hours, you can log into your Google "
214
- "Analytics account to view your stats."
215
  msgstr ""
216
 
217
- #: inc/settings-display.php:85
218
- msgid ""
219
- "Note that it can take 24-48 hours after adding the tracking code before any "
220
- "analytical data appears in your"
221
  msgstr ""
222
 
223
- #: inc/settings-display.php:86
224
- msgid "Google Analytics account"
225
  msgstr ""
226
 
227
- #: inc/settings-display.php:87
228
- msgid ""
229
- "To check that the GA tacking code is included, look at the source code of "
230
- "your web page(s). Learn more at the"
231
  msgstr ""
232
 
233
- #: inc/settings-display.php:88
234
- msgid "Google Analytics Help Center"
235
  msgstr ""
236
 
237
- #: inc/settings-display.php:108
238
- msgid "GA Tracking ID"
239
  msgstr ""
240
 
241
- #: inc/settings-display.php:112
242
- msgid "Tracking Method"
243
  msgstr ""
244
 
245
- #: inc/settings-display.php:121 inc/settings-display.php:125
246
- msgid "Display Advertising"
247
  msgstr ""
248
 
249
- #: inc/settings-display.php:124 inc/settings-display.php:132
250
- #: inc/settings-display.php:140 inc/settings-display.php:148
251
- msgid "Enable support for"
252
  msgstr ""
253
 
254
- #: inc/settings-display.php:129
255
- msgid "Link Attribution"
256
  msgstr ""
257
 
258
- #: inc/settings-display.php:133
259
- msgid "Enhanced Link Attribution"
260
  msgstr ""
261
 
262
- #: inc/settings-display.php:137 inc/settings-display.php:141
263
- msgid "IP Anonymization"
264
  msgstr ""
265
 
266
- #: inc/settings-display.php:145 inc/settings-display.php:149
267
- msgid "Force SSL"
268
  msgstr ""
269
 
270
- #: inc/settings-display.php:158
271
- msgid "Tracking Code Location"
272
  msgstr ""
273
 
274
- #: inc/settings-display.php:162
275
- msgid ""
276
- "Tip: Google recommends including the tracking code in the page head, but "
277
- "including it in the footer can benefit page performance."
278
  msgstr ""
279
 
280
- #: inc/settings-display.php:163
281
  msgid "If in doubt, go with the head option."
282
  msgstr ""
283
 
284
- #: inc/settings-display.php:168
285
- msgid "Custom Tracker Objects"
286
  msgstr ""
287
 
288
- #: inc/settings-display.php:172
289
- msgid "Any code entered here will be added to"
290
  msgstr ""
291
 
292
- #: inc/settings-display.php:173
293
- msgid "for Universal Analytics, or added to"
294
  msgstr ""
295
 
296
- #: inc/settings-display.php:174
297
- msgid "for Global Site Tag. This is useful for things like"
298
  msgstr ""
299
 
300
- #: inc/settings-display.php:175
301
- msgid "tracker objects"
302
  msgstr ""
303
 
304
- #: inc/settings-display.php:176 inc/settings-display.php:188
305
- msgid "and"
306
  msgstr ""
307
 
308
- #: inc/settings-display.php:177
309
- msgid "optimize"
310
  msgstr ""
311
 
312
- #: inc/settings-display.php:182
313
- msgid "Custom GA Code"
314
  msgstr ""
315
 
316
- #: inc/settings-display.php:186
317
- msgid ""
318
- "Any code entered here will be added to the GA code snippet. This is useful "
319
- "for things like creating"
320
  msgstr ""
321
 
322
- #: inc/settings-display.php:187
323
  msgid "multiple trackers"
324
  msgstr ""
325
 
326
- #: inc/settings-display.php:189
327
- msgid "user opt-out"
328
  msgstr ""
329
 
330
- #: inc/settings-display.php:190
 
 
 
 
 
 
331
  msgid "Note: you can use"
332
  msgstr ""
333
 
334
- #: inc/settings-display.php:190
335
- msgid "to output the current user ID."
336
  msgstr ""
337
 
338
- #: inc/settings-display.php:195
339
- msgid "Custom Code"
340
  msgstr ""
341
 
342
- #: inc/settings-display.php:199
343
- msgid "Here you may specify any markup to be displayed in the"
344
  msgstr ""
345
 
346
- #: inc/settings-display.php:200
347
- msgid ""
348
- "section (or in the footer, depending on the \"Tracking Code Location\" "
349
- "setting, above)."
350
  msgstr ""
351
 
352
- #: inc/settings-display.php:205
353
- msgid "Custom Code Location"
354
  msgstr ""
355
 
356
- #: inc/settings-display.php:208
357
- msgid "Display Custom Code"
358
  msgstr ""
359
 
360
- #: inc/settings-display.php:208
361
- msgid "before"
362
  msgstr ""
363
 
364
- #: inc/settings-display.php:209
365
- msgid "the GA tracking code (leave unchecked to display"
366
  msgstr ""
367
 
368
- #: inc/settings-display.php:209
369
- msgid "after"
 
370
  msgstr ""
371
 
372
- #: inc/settings-display.php:209
373
- msgid "the tracking code)"
374
  msgstr ""
375
 
376
- #: inc/settings-display.php:213
377
- msgid "Admin Area"
378
  msgstr ""
379
 
380
- #: inc/settings-display.php:216
381
- msgid ""
382
- "Enable tracking in WP Admin Area (adds tracking code only; to view stats log "
383
- "into your Google account)"
384
  msgstr ""
385
 
386
- #: inc/settings-display.php:220
387
- msgid "Admin Users"
388
  msgstr ""
389
 
390
- #: inc/settings-display.php:223
391
- msgid "Disable tracking of Admin-level users"
392
  msgstr ""
393
 
394
- #: inc/settings-display.php:227
395
- msgid "More Options"
396
  msgstr ""
397
 
398
- #: inc/settings-display.php:229
399
- msgid "For advanced features, check out"
400
  msgstr ""
401
 
402
- #: inc/settings-display.php:237
403
- msgid "Save Changes"
404
  msgstr ""
405
 
406
- #: inc/settings-display.php:245
407
  msgid "Restore Defaults"
408
  msgstr ""
409
 
410
- #: inc/settings-display.php:249
411
- msgid "Click the link to restore the default plugin options."
412
  msgstr ""
413
 
414
- #: inc/settings-display.php:259
415
- msgid "Show Support"
 
 
416
  msgstr ""
417
 
418
- #: inc/settings-display.php:276
419
- msgid "by"
 
 
420
  msgstr ""
421
 
422
- #: inc/settings-display.php:277
423
- msgid "Jeff Starr on Twitter"
424
  msgstr ""
425
 
426
- #: inc/settings-display.php:278
427
- msgid "@"
428
  msgstr ""
429
 
430
- #: inc/settings-display.php:279
431
- msgid "Obsessive Web Development"
432
  msgstr ""
433
 
434
- #: inc/support-panel.php:55
435
- msgid "Perishable Press Books"
436
  msgstr ""
437
 
438
- #: inc/support-panel.php:56
439
- msgid "Plugin Planet"
440
  msgstr ""
441
 
442
- #: inc/support-panel.php:57
443
- msgid "Donate via PayPal"
444
  msgstr ""
445
 
446
- #: inc/support-panel.php:59
447
- msgid "books"
 
 
448
  msgstr ""
449
 
450
- #: inc/support-panel.php:60
451
- msgid "plugins"
 
 
452
  msgstr ""
453
 
454
- #: inc/support-panel.php:61
455
- msgid "donation"
 
 
456
  msgstr ""
457
 
458
- #: inc/support-panel.php:63
459
- msgid "Thank you for using"
460
  msgstr ""
461
 
462
- #: inc/support-panel.php:64
463
- msgid "Please show support by purchasing one of my"
464
  msgstr ""
465
 
466
- #: inc/support-panel.php:65
467
- msgid "or by making a"
468
  msgstr ""
469
 
470
- #: inc/support-panel.php:66
471
- msgid "Your generous support helps to ensure future development of"
472
  msgstr ""
473
 
474
- #: inc/support-panel.php:67
475
- msgid "and is greatly appreciated."
476
  msgstr ""
477
 
478
- #: inc/support-panel.php:69
479
- msgid ""
480
- "Any size donation helps me to continue developing this free plugin and other "
481
- "awesome WordPress resources."
482
  msgstr ""
483
 
484
- #. Description of the plugin
485
- msgid "Adds your Google Analytics Tracking Code to your WordPress site."
486
  msgstr ""
487
 
488
- #. URI of the plugin
489
- msgid "https://perishablepress.com/google-analytics-plugin/"
490
  msgstr ""
491
 
492
- #. Author of the plugin
493
- msgid "Jeff Starr"
494
  msgstr ""
495
 
496
- #. Author URI of the plugin
497
- msgid "https://plugin-planet.com/"
 
 
 
 
 
 
 
 
498
  msgstr ""
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
  "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
 
47
+ #. Description of the plugin
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
 
274
+ #. URI of the plugin
275
+ msgid "https://perishablepress.com/google-analytics-plugin/"
276
  msgstr ""
277
 
278
+ #. Author URI of the plugin
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
 
302
+ #. Author of the plugin
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
 
479
+ #: inc/settings-display.php:9
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 ""
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: 5.9
13
- Stable tag: 20220124
14
- Version: 20220124
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
@@ -267,7 +267,7 @@ By default the plugin includes the `auto` parameter in the tracking code:
267
 
268
  However some tracking techniques (such as Site Speed Sample Rate) require replacing the `auto` parameter. To do it:
269
 
270
- First disable the `auto` parameter by adding the following code to WordPress functions or custom plugin:
271
 
272
  // GA Google Analytics - Disable auto parameter
273
  function ga_google_analytics_enable_auto($enable) { return false; }
@@ -284,6 +284,12 @@ Save changes and done. The resulting tracking code will now look like this:
284
  So can adjust things as needed to add any parameters that are required.
285
 
286
 
 
 
 
 
 
 
287
  **Got a question?**
288
 
289
  To ask a question, suggest a feature, or provide feedback, [contact me directly](https://plugin-planet.com/support/#contact). Learn more about [Google Analytics](https://www.google.com/analytics/) and [GA tracking methods](https://perishablepress.com/3-ways-track-google-analytics/).
@@ -321,6 +327,15 @@ If you like GA Google Analytics, please take a moment to [give a 5-star rating](
321
  > New Pro version available! Check out [GA Pro &raquo;](https://plugin-planet.com/ga-google-analytics-pro/)
322
 
323
 
 
 
 
 
 
 
 
 
 
324
  **20220124**
325
 
326
  * Adds filter hook `gapro_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.0
13
+ Stable tag: 20220517
14
+ Version: 20220517
15
  Requires PHP: 5.6.20
16
  Text Domain: ga-google-analytics
17
  Domain Path: /languages
267
 
268
  However some tracking techniques (such as Site Speed Sample Rate) require replacing the `auto` parameter. To do it:
269
 
270
+ First disable the `auto` parameter by adding the following code to WordPress functions or [custom plugin](https://digwp.com/2022/02/custom-code-wordpress/):
271
 
272
  // GA Google Analytics - Disable auto parameter
273
  function ga_google_analytics_enable_auto($enable) { return false; }
284
  So can adjust things as needed to add any parameters that are required.
285
 
286
 
287
+ **How to implement Anonymize?**
288
+
289
+ 1. Add to "Custom Tracker Objects" setting: `{ 'anonymize_ip': true }`
290
+ 2. Save changes and done.
291
+
292
+
293
  **Got a question?**
294
 
295
  To ask a question, suggest a feature, or provide feedback, [contact me directly](https://plugin-planet.com/support/#contact). Learn more about [Google Analytics](https://www.google.com/analytics/) and [GA tracking methods](https://perishablepress.com/3-ways-track-google-analytics/).
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`
333
+ * Changes hook `gapro_tracker_object_global` to `ga_google_analytics_tracker_object_global`
334
+ * Adds `%%username%%` to get current user_login name
335
+ * Adds GA4 information to "How to Use" panel
336
+ * Generates new translation template
337
+ * Tests on WordPress 6.0
338
+
339
  **20220124**
340
 
341
  * Adds filter hook `gapro_tracker_object_universal`