Version Description
- Fixed issue with old PHP warning that could block site access
- Updated headline on the settings page
- Inserted a paragraph that describes the indention of the plugin and shows the shortcode that can be copy and pasted.
Download this release
Release Info
Developer | wp-buddy |
Plugin | Google Analytics Opt-Out |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- google-analytics-opt-out.php +12 -2
- inc/settings.php +8 -3
- languages/gaoo.pot +39 -35
- readme.txt +7 -2
google-analytics-opt-out.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Google Analytics Opt-Out
|
4 |
Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
|
5 |
Description: Provides an Opt-Out functionality for Google Analytics
|
6 |
-
Version: 2.1.
|
7 |
Author: WP-Buddy
|
8 |
Author URI: https://wp-buddy.com
|
9 |
License: GPL2
|
@@ -43,7 +43,17 @@ define( 'GAOOP_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );
|
|
43 |
define( 'GAOOP_URL', trailingslashit( plugins_url( '', __FILE__ ) ) );
|
44 |
|
45 |
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
require_once GAOOP_PATH . 'inc/functions.php';
|
3 |
Plugin Name: Google Analytics Opt-Out
|
4 |
Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out
|
5 |
Description: Provides an Opt-Out functionality for Google Analytics
|
6 |
+
Version: 2.1.3
|
7 |
Author: WP-Buddy
|
8 |
Author URI: https://wp-buddy.com
|
9 |
License: GPL2
|
43 |
define( 'GAOOP_URL', trailingslashit( plugins_url( '', __FILE__ ) ) );
|
44 |
|
45 |
if ( version_compare( PHP_VERSION, '5.6', '<' ) ) {
|
46 |
+
|
47 |
+
add_action( 'admin_notices', 'wpb_gaoop_old_php_notice' );
|
48 |
+
|
49 |
+
function wpb_gaoop_old_php_notice() {
|
50 |
+
|
51 |
+
printf(
|
52 |
+
'<div class="notice error"><p>%s</p></div>',
|
53 |
+
sprintf( __( 'You are using PHP in version %s. This version is outdated and cannot be used with the Google Analytics Opt-Out plugin. Please update to the latest PHP version in order to use this plugin. You can ask your provider on how to do this.', 'google-analytics-opt-out' ), PHP_VERSION )
|
54 |
+
);
|
55 |
+
}
|
56 |
+
|
57 |
}
|
58 |
|
59 |
require_once GAOOP_PATH . 'inc/functions.php';
|
inc/settings.php
CHANGED
@@ -28,8 +28,13 @@ function gaoop_settings_page() {
|
|
28 |
|
29 |
?>
|
30 |
<div class="wrap">
|
31 |
-
<
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
<form action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" method="post">
|
35 |
<?php
|
@@ -63,7 +68,7 @@ function gaoop_settings_scripts() {
|
|
63 |
*/
|
64 |
function gaoop_register_theme_options_section() {
|
65 |
|
66 |
-
add_settings_section( 'gaoop_settings_section', __( '
|
67 |
|
68 |
add_settings_field( 'gaoop_yoast', __( 'Use Monster Insights Settings', 'google-analytics-opt-out' ), 'gaoop_options_yoast', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_yoast' ) );
|
69 |
register_setting( 'gaoop_options_page', 'gaoop_yoast', 'intval' );
|
28 |
|
29 |
?>
|
30 |
<div class="wrap">
|
31 |
+
<h1><?php echo get_admin_page_title(); ?></h1>
|
32 |
+
|
33 |
+
<p class="description"><?php
|
34 |
+
printf(
|
35 |
+
__( 'This plugin provides an Opt-Out functionality for Google Analytics. You can show a banner to your users and/or you can use the following shortcode in any of your posts: %s. It integrates a link that allows a user to opt-out off Google Analytics. You can read more about the <a href="https://wp-buddy.com/documentation/plugins/google-analytics-opt/faq/#what-are-the-shortcodes-that-i-can-use" target="_blank">shortcodes here</a>.', 'google-analytics-opt-out' ),
|
36 |
+
'<code>[google_analytics_optout]Your link text[/google_analytics_optout]</code>'
|
37 |
+
); ?></p>
|
38 |
|
39 |
<form action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>" method="post">
|
40 |
<?php
|
68 |
*/
|
69 |
function gaoop_register_theme_options_section() {
|
70 |
|
71 |
+
add_settings_section( 'gaoop_settings_section', __( 'Opt-Out Settings', 'google-analytics-opt-out' ), null, 'gaoop_options_page' );
|
72 |
|
73 |
add_settings_field( 'gaoop_yoast', __( 'Use Monster Insights Settings', 'google-analytics-opt-out' ), 'gaoop_options_yoast', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_yoast' ) );
|
74 |
register_setting( 'gaoop_options_page', 'gaoop_yoast', 'intval' );
|
languages/gaoo.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Google Analytics Opt-Out\n"
|
5 |
-
"POT-Creation-Date: 2018-05-
|
6 |
"PO-Revision-Date: 2013-11-12 09:04+0100\n"
|
7 |
"Last-Translator: WP-Buddy <info@wp-buddy.com>\n"
|
8 |
"Language-Team: \n"
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
|
20 |
-
#: ../google-analytics-opt-out.php:
|
21 |
#, php-format
|
22 |
msgid ""
|
23 |
"You are using PHP in version %s. This version is outdated and cannot be used "
|
@@ -26,17 +26,6 @@ msgid ""
|
|
26 |
"this."
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: ../google-analytics-opt-out.php:64
|
30 |
-
msgid ""
|
31 |
-
"It seems that the free version of the Google Analytics Opt-Out is installed. "
|
32 |
-
"Please deactivate the free version before activating the pro version. "
|
33 |
-
"Thanks! "
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: ../google-analytics-opt-out.php:64
|
37 |
-
msgid "← Go back"
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
#: ../inc/admin.php:12
|
41 |
msgid ""
|
42 |
"To use the Google Analytics Opt-Out Plugin please enter an UA-Code on the "
|
@@ -73,65 +62,72 @@ msgstr ""
|
|
73 |
msgid "Click here to opt-out."
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: ../inc/functions.php:113 ../inc/settings.php:
|
77 |
msgid ""
|
78 |
"Thanks. We have set a cookie so that Google Analytics data collection will "
|
79 |
"be disabled on your next visit."
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../inc/settings.php:11 ../inc/settings.php:14
|
83 |
msgid "Analytics Opt-Out"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: ../inc/settings.php:14
|
87 |
msgid "Opt-Out Settings"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: ../inc/settings.php:
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: ../inc/settings.php:
|
95 |
msgid "Use Monster Insights Settings"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: ../inc/settings.php:
|
99 |
msgid "UA-Code"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../inc/settings.php:
|
103 |
msgid "Show Editor button"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: ../inc/settings.php:
|
|
|
|
|
|
|
|
|
107 |
msgid "Use Banner"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: ../inc/settings.php:
|
111 |
msgid "Opt-Out Banner-Text"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../inc/settings.php:
|
115 |
msgid "Integrate Shortcode"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../inc/settings.php:
|
119 |
-
msgid "Opt-Out Successful"
|
120 |
-
msgstr ""
|
121 |
-
|
122 |
-
#: ../inc/settings.php:89
|
123 |
msgid "Hide banner after closing"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../inc/settings.php:
|
127 |
msgid "Custom CSS"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../inc/settings.php:
|
131 |
msgid "Monster Insights Plugin has been detected."
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../inc/settings.php:
|
135 |
msgid ""
|
136 |
"Monster Insights Plugin has NOT been detected. Please enter your UA code "
|
137 |
"manually and then check the sourcode of your website. Make sure that "
|
@@ -139,15 +135,23 @@ msgid ""
|
|
139 |
"Google Analytics Opt-Out</code>)."
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../inc/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
msgid "Please integrate the shortcode so that the user can opt-out."
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../inc/settings.php:
|
147 |
msgid "If the shortcode was not detected, it will be added automatically."
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../inc/settings.php:
|
151 |
msgid ""
|
152 |
"This will hide the opt-out box after the user has clicked the close-button. "
|
153 |
"Otherwise a little info-button will be fixed to the bottom-right."
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Google Analytics Opt-Out\n"
|
5 |
+
"POT-Creation-Date: 2018-05-24 12:45+0200\n"
|
6 |
"PO-Revision-Date: 2013-11-12 09:04+0100\n"
|
7 |
"Last-Translator: WP-Buddy <info@wp-buddy.com>\n"
|
8 |
"Language-Team: \n"
|
17 |
"X-Poedit-Basepath: .\n"
|
18 |
"X-Poedit-SearchPath-0: ..\n"
|
19 |
|
20 |
+
#: ../google-analytics-opt-out.php:53
|
21 |
#, php-format
|
22 |
msgid ""
|
23 |
"You are using PHP in version %s. This version is outdated and cannot be used "
|
26 |
"this."
|
27 |
msgstr ""
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
#: ../inc/admin.php:12
|
30 |
msgid ""
|
31 |
"To use the Google Analytics Opt-Out Plugin please enter an UA-Code on the "
|
62 |
msgid "Click here to opt-out."
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: ../inc/functions.php:113 ../inc/settings.php:231
|
66 |
msgid ""
|
67 |
"Thanks. We have set a cookie so that Google Analytics data collection will "
|
68 |
"be disabled on your next visit."
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../inc/settings.php:11 ../inc/settings.php:14
|
72 |
msgid "Analytics Opt-Out"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../inc/settings.php:14 ../inc/settings.php:71
|
76 |
msgid "Opt-Out Settings"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../inc/settings.php:35
|
80 |
+
#, php-format
|
81 |
+
msgid ""
|
82 |
+
"This plugin provides an Opt-Out functionality for Google Analytics. You can "
|
83 |
+
"show a banner to your users and/or you can use the following shortcode in "
|
84 |
+
"any of your posts: %s. It integrates a link that allows a user to opt-out "
|
85 |
+
"off Google Analytics. You can read more about the <a href=\"https://wp-buddy."
|
86 |
+
"com/documentation/plugins/google-analytics-opt/faq/#what-are-the-shortcodes-"
|
87 |
+
"that-i-can-use\" target=\"_blank\">shortcodes here</a>."
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: ../inc/settings.php:73
|
91 |
msgid "Use Monster Insights Settings"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: ../inc/settings.php:76
|
95 |
msgid "UA-Code"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: ../inc/settings.php:79
|
99 |
msgid "Show Editor button"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: ../inc/settings.php:82
|
103 |
+
msgid "Opt-Out Successful"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: ../inc/settings.php:85
|
107 |
msgid "Use Banner"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: ../inc/settings.php:88
|
111 |
msgid "Opt-Out Banner-Text"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: ../inc/settings.php:91
|
115 |
msgid "Integrate Shortcode"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: ../inc/settings.php:94
|
|
|
|
|
|
|
|
|
119 |
msgid "Hide banner after closing"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: ../inc/settings.php:97
|
123 |
msgid "Custom CSS"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: ../inc/settings.php:130
|
127 |
msgid "Monster Insights Plugin has been detected."
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: ../inc/settings.php:132
|
131 |
msgid ""
|
132 |
"Monster Insights Plugin has NOT been detected. Please enter your UA code "
|
133 |
"manually and then check the sourcode of your website. Make sure that "
|
135 |
"Google Analytics Opt-Out</code>)."
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: ../inc/settings.php:186
|
139 |
+
msgid ""
|
140 |
+
"Some users reported problems with the editor button. So you can deactivate "
|
141 |
+
"it here. Read more about the <a target=\"_blank\" href=\"https://wp-buddy."
|
142 |
+
"com/documentation/plugins/google-analytics-opt/faq/#what-are-the-shortcodes-"
|
143 |
+
"that-i-can-use\">shortcodes</a> that can be used instead."
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: ../inc/settings.php:206
|
147 |
msgid "Please integrate the shortcode so that the user can opt-out."
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: ../inc/settings.php:220
|
151 |
msgid "If the shortcode was not detected, it will be added automatically."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: ../inc/settings.php:244
|
155 |
msgid ""
|
156 |
"This will hide the opt-out box after the user has clicked the close-button. "
|
157 |
"Otherwise a little info-button will be fixed to the bottom-right."
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: wp-buddy, floriansimeth
|
3 |
Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
|
4 |
Tags: google analytics, analytics, analytics opt-out, analytics opt out, monster insights, monster insight, yoast analytics
|
5 |
-
Version: 2.1.
|
6 |
-
Stable tag: 2.1.
|
7 |
Requires at least: 4.8.0
|
8 |
Requires PHP: 5.6.0
|
9 |
Tested up to: 4.9.6
|
@@ -40,6 +40,11 @@ The free and the pro version have now been merged together. So you now can have
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
|
|
|
|
43 |
= 2.1.2 =
|
44 |
* Fixed an issue where the opt-out code may not be on top of the sourcecode of some websites.
|
45 |
* Opt-Out settings field has been moved up on the settings page.
|
2 |
Contributors: wp-buddy, floriansimeth
|
3 |
Donate link: https://wp-buddy.com/products/plugins/google-analytics-opt-out/
|
4 |
Tags: google analytics, analytics, analytics opt-out, analytics opt out, monster insights, monster insight, yoast analytics
|
5 |
+
Version: 2.1.3
|
6 |
+
Stable tag: 2.1.3
|
7 |
Requires at least: 4.8.0
|
8 |
Requires PHP: 5.6.0
|
9 |
Tested up to: 4.9.6
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 2.1.3 =
|
44 |
+
* Fixed issue with old PHP warning that could block site access
|
45 |
+
* Updated headline on the settings page
|
46 |
+
* Inserted a paragraph that describes the indention of the plugin and shows the shortcode that can be copy and pasted.
|
47 |
+
|
48 |
= 2.1.2 =
|
49 |
* Fixed an issue where the opt-out code may not be on top of the sourcecode of some websites.
|
50 |
* Opt-Out settings field has been moved up on the settings page.
|