Changeset 1963299
- Timestamp:
- 10/26/2018 07:33:09 AM (7 years ago)
- Location:
- google-analytics-opt-out/trunk
- Files:
-
- 8 added
- 8 edited
-
. (modified) (1 prop)
-
.babelrc (added)
-
blocks (added)
-
blocks/opt-out.js (added)
-
google-analytics-opt-out.php (modified) (1 diff)
-
inc/admin.php (modified) (1 diff)
-
inc/settings.php (modified) (1 diff)
-
js/editor-button.js (modified) (1 diff)
-
package-lock.json (added)
-
package.json (added)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.jpg (added)
-
screenshot-2.png (modified) (previous)
-
screenshot-3.png (modified) (previous)
-
screenshot-4.png (added)
-
webpack.config.js (added)
Legend:
- Unmodified
- Added
- Removed
-
google-analytics-opt-out/trunk
-
Property
svn:ignore
set to
.idea
node_modules
-
Property
svn:ignore
set to
-
google-analytics-opt-out/trunk/google-analytics-opt-out.php
r1880705 r1963299 4 4 Plugin URI: https://wp-buddy.com/products/plugins/google-analytics-opt-out 5 5 Description: Provides an Opt-Out functionality for Google Analytics 6 Version: 2. 1.46 Version: 2.2.0 7 7 Author: WP-Buddy 8 8 Author URI: https://wp-buddy.com -
google-analytics-opt-out/trunk/inc/admin.php
r1809016 r1963299 112 112 113 113 add_action( 'admin_init', 'gaoop_import_from_old_version' ); 114 115 add_action( 'init', 'gaoop_gutenberg_init' ); 116 117 function gaoop_gutenberg_init() { 118 if ( ! function_exists( 'register_block_type' ) ) { 119 return; 120 } 121 122 add_action( 'enqueue_block_editor_assets', 'gaoop_gutenberg_editor_assets' ); 123 } 124 125 function gaoop_gutenberg_editor_assets() { 126 wp_enqueue_script( 127 'gaoop-block', 128 plugin_dir_url( GAOOP_FILE ) . 'js/opt-out-block.js', 129 array( 'wp-blocks', 'wp-i18n', 'wp-element' ), 130 filemtime( plugin_dir_path( GAOOP_FILE ) . 'js/opt-out-block.js' ), 131 true 132 ); 133 134 wp_add_inline_script( 135 'gaoop-block', 136 'wp.i18n.setLocaleData( ' . wp_json_encode( wp_get_jed_locale_data( 'gaoop' ) ) . ', "gaoop" );', 137 'before' 138 ); 139 } -
google-analytics-opt-out/trunk/inc/settings.php
r1880699 r1963299 77 77 register_setting( 'gaoop_options_page', 'gaoop_property', 'sanitize_text_field' ); 78 78 79 add_settings_field( 'gaoop_editor_button', __( 'Show Editor button ', 'google-analytics-opt-out' ), 'gaoop_options_editor_button', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_editor_button' ) );79 add_settings_field( 'gaoop_editor_button', __( 'Show Editor button (Classic Editor)', 'google-analytics-opt-out' ), 'gaoop_options_editor_button', 'gaoop_options_page', 'gaoop_settings_section', array( 'label_for' => 'gaoop_options_editor_button' ) ); 80 80 register_setting( 'gaoop_options_page', 'gaoop_editor_button', 'intval' ); 81 81 -
google-analytics-opt-out/trunk/js/editor-button.js
r1475587 r1963299 15 15 title: 'Analytics Opt-Out', 16 16 cmd: 'wpb_analytics_opt_out', 17 image: url + '/../images/optout-editor-icon. png'17 image: url + '/../images/optout-editor-icon.svg' 18 18 } ); 19 19 -
google-analytics-opt-out/trunk/readme.txt
r1880705 r1963299 2 2 Contributors: wp-buddy, floriansimeth 3 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 analytics5 Version: 2. 1.46 Stable tag: 2. 1.44 Tags: google analytics opt-out, monster insights, gdpr 5 Version: 2.2.0 6 Stable tag: 2.2.0 7 7 Requires at least: 4.8.0 8 8 Requires PHP: 5.6.0 9 Tested up to: 4.9.69 Tested up to: 5.0 10 10 License: GPLv2 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 == Description == 17 17 18 This plugin provides an Opt-Out functionality for Google Analytics by setting a cookie that prevents analytics.js to collect data. 18 This plugin provides an Opt-Out functionality for Google Analytics by setting a cookie that prevents analytics.js to collect data. The new GDPR rules requier an opt-out. 19 19 20 Works perfectly together with the [Google Analytics by MonsterInsights Plugin](http://wordpress.org/plugins/google-analytics-for-wordpress/ "Google Analytics by MonsterInsights Plugin"). 20 Works perfectly together with the [Google Analytics by MonsterInsights Plugin](http://wordpress.org/plugins/google-analytics-for-wordpress/ "Google Analytics by MonsterInsights Plugin"). However the plugin is not necessary to configure the opt-out feature. Just enter your UA-Code manually. That's it! 21 21 22 22 The free and the pro version have now been merged together. So you now can have the option to activate a banner, too! Enjoy! … … 33 33 == Screenshots == 34 34 35 1. The Opt-Out link can be added with th is little button (shortcode)35 1. The Opt-Out link can be added with the Opt-Out block in WordPress new block editor (that came with version 5.0). 36 36 37 2. This is how the code looks like37 2. If you're using the classic editor, click this little button to add the shortcode. 38 38 39 3. This is the settings page 39 3. This is how the code looks like 40 41 4. This is the settings page 40 42 41 43 == Changelog == 44 45 = 2.2.0 = 46 * Added a block for WordPress' 5.0 new block editor. 42 47 43 48 = 2.1.4 =
Note: See TracChangeset
for help on using the changeset viewer.