diff --git a/assets/js/components/KeyMetrics/hooks/useDisplayCTAWidget.js b/assets/js/components/KeyMetrics/hooks/useDisplayCTAWidget.js index 6ccc5e0467f..235cf506587 100644 --- a/assets/js/components/KeyMetrics/hooks/useDisplayCTAWidget.js +++ b/assets/js/components/KeyMetrics/hooks/useDisplayCTAWidget.js @@ -29,7 +29,7 @@ import { MODULES_SEARCH_CONSOLE } from '../../../modules/search-console/datastor /** * Determines whether the CTA widget should be displayed. * - * @since n.e.x.t + * @since 1.140.0 * * @return {boolean} Whether the CTA widget should be displayed. */ diff --git a/assets/js/googlesitekit/datastore/user/key-metrics.js b/assets/js/googlesitekit/datastore/user/key-metrics.js index 90d5f5104c4..5d413902991 100644 --- a/assets/js/googlesitekit/datastore/user/key-metrics.js +++ b/assets/js/googlesitekit/datastore/user/key-metrics.js @@ -559,7 +559,7 @@ const baseSelectors = { * Gets whether the new Analytics Conversion Reporting metric tiles * should be made available or not. * - * @since n.e.x.t + * @since 1.140.0 * * @return {boolean|undefined} True if ACR tiles should be shown, false if not. */ diff --git a/assets/js/modules/analytics-4/datastore/conversion-reporting.js b/assets/js/modules/analytics-4/datastore/conversion-reporting.js index 7518ffa257e..df1819f96e5 100644 --- a/assets/js/modules/analytics-4/datastore/conversion-reporting.js +++ b/assets/js/modules/analytics-4/datastore/conversion-reporting.js @@ -130,7 +130,7 @@ export const actions = { /** * Stores conversion reporting inline data in the datastore. * - * @since n.e.x.t + * @since 1.140.0 * @private * * @param {Object} data Inline data, usually supplied via a global variable from PHP. @@ -195,7 +195,7 @@ export const selectors = { * Not intended to be used publicly; this is largely here so other selectors can * request data using the selector/resolver pattern. * - * @since n.e.x.t + * @since 1.140.0 * @private * * @param {Object} state Data store's state. @@ -208,7 +208,7 @@ export const selectors = { /** * Checks if newEvents are present. * - * @since n.e.x.t + * @since 1.140.0 * * @param {Object} state Data store's state. * @return {boolean|undefined} TRUE if `newEvents` are present, FALSE otherwise. @@ -219,7 +219,7 @@ export const selectors = { /** * Checks if lostEvents are present. * - * @since n.e.x.t + * @since 1.140.0 * * @param {Object} state Data store's state. * @return {boolean|undefined} TRUE if `lostEvents` are present, FALSE otherwise. diff --git a/changelog.txt b/changelog.txt index aecc96ca8bd..75f9c74e2e8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,42 @@ == Changelog == += 1.140.0 = + +**Added** + +* Add Sign in with Google to Site Health. See [#9571](https://github.com/google/site-kit-wp/issues/9571). +* Add new feature notification for Sign in with Google module. See [#9335](https://github.com/google/site-kit-wp/issues/9335). + +**Enhanced** + +* Add a survey to be triggered when audience groups are set up. See [#9656](https://github.com/google/site-kit-wp/issues/9656). +* Update styles for the admin settings. See [#9580](https://github.com/google/site-kit-wp/issues/9580). +* Add GA event tracking for user interactions with the Audience Segmentation Setup in the Settings section. See [#9499](https://github.com/google/site-kit-wp/issues/9499). +* Add opt-in event tracking for the Audience Segmentation introductory popup/banner. See [#9498](https://github.com/google/site-kit-wp/issues/9498). +* Add GA event tracking for user interactions with the Audience Selection Panel. See [#9497](https://github.com/google/site-kit-wp/issues/9497). +* Add opt-in user activity tracking in the audience tiles area. See [#9494](https://github.com/google/site-kit-wp/issues/9494). +* Add opt-in user activity tracking in the audience setup CTA widget and related setting areas. See [#9493](https://github.com/google/site-kit-wp/issues/9493). +* Don't unnecessarily render the Key Metrics Selection Panel into the DOM. See [#9468](https://github.com/google/site-kit-wp/issues/9468). +* Add a stub survey trigger that is called when viewing the Reader Revenue Manager Setup CTA. See [#9447](https://github.com/google/site-kit-wp/issues/9447). +* Update the widget area renderer to accept React components for subtitles. See [#9444](https://github.com/google/site-kit-wp/issues/9444). +* Add modal of tailored metrics to User Input Questionnaire. See [#9439](https://github.com/google/site-kit-wp/issues/9439). +* Add confirmation modal for users changing key metrics. See [#9438](https://github.com/google/site-kit-wp/issues/9438). +* Add support for lost events to Conversion Reporting events datastore. See [#9379](https://github.com/google/site-kit-wp/issues/9379). +* Add a new "Chip Tab Group" component. See [#9378](https://github.com/google/site-kit-wp/issues/9378). +* Add new notification to Key Metrics Widget Settings Area. See [#9344](https://github.com/google/site-kit-wp/issues/9344). +* Implement the Sign in with Google callback action. See [#9338](https://github.com/google/site-kit-wp/issues/9338). +* Fix a bug that prevented the appearance of the Reader Revenue Manager setup banner graphic. See [#9329](https://github.com/google/site-kit-wp/issues/9329). +* Include a "Learn more" link on the Reader Revenue Manager setup screen shown when the user doesn't have an existing publication. See [#9259](https://github.com/google/site-kit-wp/issues/9259). + +**Fixed** + +* Only place the Reader Revenue Manager snippet on singular WordPress posts. See [#9670](https://github.com/google/site-kit-wp/issues/9670). +* Fix typo in Key Metrics Widget. See [#9614](https://github.com/google/site-kit-wp/issues/9614). +* Fix the issue where an extra "Failed to enable metric" modal appears when canceled in the Audience Segmentation "Top Content" custom dimension creation flow. See [#9563](https://github.com/google/site-kit-wp/issues/9563). +* Fix dashboard error when selecting specific key metrics on the view-only dashboard. See [#9548](https://github.com/google/site-kit-wp/issues/9548). +* Remove the “Temporarily hidden” badge when temporarily hidden tiles reappear with only a single tile visible. See [#9472](https://github.com/google/site-kit-wp/issues/9472). +* Ensure "Add a metric" tiles are always visible on the view-only dashboard when fewer than 4 metrics are available or fewer than 8 metrics if the `conversionReporting` feature flag is enabled. See [#8712](https://github.com/google/site-kit-wp/issues/8712). + = 1.139.0 = **Added** diff --git a/google-site-kit.php b/google-site-kit.php index 6705c5c871d..0179e90b2ee 100644 --- a/google-site-kit.php +++ b/google-site-kit.php @@ -11,7 +11,7 @@ * Plugin Name: Site Kit by Google * Plugin URI: https://sitekit.withgoogle.com * Description: Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web. - * Version: 1.139.0 + * Version: 1.140.0 * Requires at least: 5.2 * Requires PHP: 7.4 * Author: Google @@ -26,7 +26,7 @@ } // Define most essential constants. -define( 'GOOGLESITEKIT_VERSION', '1.139.0' ); +define( 'GOOGLESITEKIT_VERSION', '1.140.0' ); define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ ); define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' ); define( 'GOOGLESITEKIT_WP_MINIMUM', '5.2.0' ); diff --git a/includes/Core/Modules/Module_With_Tag_Trait.php b/includes/Core/Modules/Module_With_Tag_Trait.php index f72200fafab..ac2d448856e 100644 --- a/includes/Core/Modules/Module_With_Tag_Trait.php +++ b/includes/Core/Modules/Module_With_Tag_Trait.php @@ -59,7 +59,7 @@ public function has_placed_tag_in_content( $content ) { * Sign in with Google, tags can be detected on the home page. SiwG places its * snippet on the login page and thus, overrides this method. * - * @since n.e.x.t + * @since 1.140.0 * * @return string The home page URL string where tags are placed for most modules. */ diff --git a/includes/Modules/Reader_Revenue_Manager/Web_Tag.php b/includes/Modules/Reader_Revenue_Manager/Web_Tag.php index 4819938c620..c9605c9f228 100644 --- a/includes/Modules/Reader_Revenue_Manager/Web_Tag.php +++ b/includes/Modules/Reader_Revenue_Manager/Web_Tag.php @@ -55,7 +55,7 @@ public function register() { * Enqueues the Reader Revenue Manager (SWG) script. * * @since 1.132.0 - * @since n.e.x.t Updated to enqueue the script only on singular posts. + * @since 1.140.0 Updated to enqueue the script only on singular posts. */ protected function enqueue_swg_script() { $locale = str_replace( '_', '-', get_locale() ); @@ -89,7 +89,7 @@ protected function enqueue_swg_script() { /** * Filters the post types where Reader Revenue Manager CTAs should appear. * - * @since n.e.x.t + * @since 1.140.0 * * @param array $cta_post_types The array of post types. */ diff --git a/includes/Modules/Sign_In_With_Google.php b/includes/Modules/Sign_In_With_Google.php index af7dcb642a4..7502d13a14d 100644 --- a/includes/Modules/Sign_In_With_Google.php +++ b/includes/Modules/Sign_In_With_Google.php @@ -64,7 +64,7 @@ public function register() { * Intercept the page request to process token ID * and complete Sign in with Google flow. * - * @since n.e.x.t + * @since 1.140.0 */ public function handle_google_auth() { $request_method = $this->context->input()->filter( INPUT_SERVER, 'REQUEST_METHOD' ); @@ -107,7 +107,7 @@ public function handle_google_auth() { /** * Adds custom errors if Google auth flow failed. * - * @since n.e.x.t + * @since 1.140.0 * * @param WP_Error $error WP_Error instance. * @return WP_Error $error WP_Error instance. @@ -257,7 +257,7 @@ private function render_signin_button() { /** * Gets the absolute number of users who have authenticated using Sign in with Google. * - * @since n.e.x.t + * @since 1.140.0 * * @return array */ @@ -274,7 +274,7 @@ public function get_authenticated_users_count() { /** * Gets an array of debug field definitions. * - * @since n.e.x.t + * @since 1.140.0 * * @return array */ @@ -334,7 +334,7 @@ public function register_tag() { /** * Returns the Module_Tag_Matchers instance. * - * @since n.e.x.t + * @since 1.140.0 * * @return Module_Tag_Matchers Module_Tag_Matchers instance. */ @@ -349,7 +349,7 @@ public function get_tag_matchers() { * Sign in with Google, tags can be detected on the home page. SiwG places its * snippet on the login page and thus, overrides this method. * - * @since n.e.x.t + * @since 1.140.0 * * @return string TRUE if tag is found, FALSE if not. */ @@ -377,7 +377,7 @@ public function get_content_url() { * for other modules' script snippets. This should be improved as speicified in the * TODO within the trait method. * - * @since n.e.x.t + * @since 1.140.0 * * @param string $content Content to search for the button. * @return bool TRUE if tag is found, FALSE if not. diff --git a/includes/Modules/Sign_In_With_Google/Settings.php b/includes/Modules/Sign_In_With_Google/Settings.php index 81fc99beabb..629828d7a60 100644 --- a/includes/Modules/Sign_In_With_Google/Settings.php +++ b/includes/Modules/Sign_In_With_Google/Settings.php @@ -158,7 +158,7 @@ protected function get_sanitize_callback() { /** * Gets the label for a given Sign in with Google setting value. * - * @since n.e.x.t + * @since 1.140.0 * * @param string $setting_name The slug for the Sign in with Google setting. * @param string $value The setting value to look up the label for. diff --git a/includes/Modules/Sign_In_With_Google/Tag_Matchers.php b/includes/Modules/Sign_In_With_Google/Tag_Matchers.php index c19e58659a8..4910ad941ca 100644 --- a/includes/Modules/Sign_In_With_Google/Tag_Matchers.php +++ b/includes/Modules/Sign_In_With_Google/Tag_Matchers.php @@ -16,7 +16,7 @@ /** * Class for Tag matchers. * - * @since n.e.x.t + * @since 1.140.0 * @access private * @ignore */ @@ -25,7 +25,7 @@ class Tag_Matchers extends Module_Tag_Matchers implements Tag_Matchers_Interface /** * Holds array of regex tag matchers. * - * @since n.e.x.t + * @since 1.140.0 * * @return array Array of regex matchers. */ diff --git a/readme.txt b/readme.txt index 3c11680a112..abd7369f577 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: google Requires at least: 5.2 Tested up to: 6.7 Requires PHP: 7.4 -Stable tag: 1.139.0 +Stable tag: 1.140.0 License: Apache License 2.0 License URI: https://www.apache.org/licenses/LICENSE-2.0 Tags: google, search-console, analytics, adsense, pagespeed-insights @@ -109,32 +109,41 @@ Please create a new topic on our [WordPress.org support forum](https://wordpress == Changelog == -= 1.139.0 = += 1.140.0 = **Added** -* Add the Google sign-in button to the login screen. See [#9337](https://github.com/google/site-kit-wp/issues/9337). -* Add Top Device Driving Purchases Key Metric Widget. See [#9162](https://github.com/google/site-kit-wp/issues/9162). +* Add Sign in with Google to Site Health. See [#9571](https://github.com/google/site-kit-wp/issues/9571). +* Add new feature notification for Sign in with Google module. See [#9335](https://github.com/google/site-kit-wp/issues/9335). **Enhanced** -* Add GA event tracking for user interactions with the No Audiences Banner and Info Notice. See [#9496](https://github.com/google/site-kit-wp/issues/9496). -* Add opt-in event tracking for an audience tile's "Top content" metric area. See [#9495](https://github.com/google/site-kit-wp/issues/9495). -* Add Dashboard Sharing support to Analytics Conversion Reporting tiles. See [#9377](https://github.com/google/site-kit-wp/issues/9377). -* Improved the design of the User Input Questionnaire. See [#9374](https://github.com/google/site-kit-wp/issues/9374). -* Update requirement checks for notifications to have all selectors resolved correctly and efficiently. See [#9351](https://github.com/google/site-kit-wp/issues/9351). -* Update conversion reporting events synchronization to save detected and lost events. See [#9342](https://github.com/google/site-kit-wp/issues/9342). -* Add the setup form for the Sign in With Google module. See [#9336](https://github.com/google/site-kit-wp/issues/9336). -* Implement the ability to edit Sign in With Google settings. See [#9334](https://github.com/google/site-kit-wp/issues/9334). +* Add a survey to be triggered when audience groups are set up. See [#9656](https://github.com/google/site-kit-wp/issues/9656). +* Update styles for the admin settings. See [#9580](https://github.com/google/site-kit-wp/issues/9580). +* Add GA event tracking for user interactions with the Audience Segmentation Setup in the Settings section. See [#9499](https://github.com/google/site-kit-wp/issues/9499). +* Add opt-in event tracking for the Audience Segmentation introductory popup/banner. See [#9498](https://github.com/google/site-kit-wp/issues/9498). +* Add GA event tracking for user interactions with the Audience Selection Panel. See [#9497](https://github.com/google/site-kit-wp/issues/9497). +* Add opt-in user activity tracking in the audience tiles area. See [#9494](https://github.com/google/site-kit-wp/issues/9494). +* Add opt-in user activity tracking in the audience setup CTA widget and related setting areas. See [#9493](https://github.com/google/site-kit-wp/issues/9493). +* Don't unnecessarily render the Key Metrics Selection Panel into the DOM. See [#9468](https://github.com/google/site-kit-wp/issues/9468). +* Add a stub survey trigger that is called when viewing the Reader Revenue Manager Setup CTA. See [#9447](https://github.com/google/site-kit-wp/issues/9447). +* Update the widget area renderer to accept React components for subtitles. See [#9444](https://github.com/google/site-kit-wp/issues/9444). +* Add modal of tailored metrics to User Input Questionnaire. See [#9439](https://github.com/google/site-kit-wp/issues/9439). +* Add confirmation modal for users changing key metrics. See [#9438](https://github.com/google/site-kit-wp/issues/9438). +* Add support for lost events to Conversion Reporting events datastore. See [#9379](https://github.com/google/site-kit-wp/issues/9379). +* Add a new "Chip Tab Group" component. See [#9378](https://github.com/google/site-kit-wp/issues/9378). +* Add new notification to Key Metrics Widget Settings Area. See [#9344](https://github.com/google/site-kit-wp/issues/9344). +* Implement the Sign in with Google callback action. See [#9338](https://github.com/google/site-kit-wp/issues/9338). +* Fix a bug that prevented the appearance of the Reader Revenue Manager setup banner graphic. See [#9329](https://github.com/google/site-kit-wp/issues/9329). +* Include a "Learn more" link on the Reader Revenue Manager setup screen shown when the user doesn't have an existing publication. See [#9259](https://github.com/google/site-kit-wp/issues/9259). **Fixed** -* Fix an issue that caused the visitor groups overlay notification to appear unexpectedly. See [#9481](https://github.com/google/site-kit-wp/issues/9481). -* Ensure the "Purchasers" default audience can be added to the audience selection when initially setting up the Audience Segmentation feature under the right conditions. See [#9478](https://github.com/google/site-kit-wp/issues/9478). -* Prevent rendering of the Audience Selection Panel before the feature is set up, ensuring it only renders after setup is complete. See [#9475](https://github.com/google/site-kit-wp/issues/9475). -* Ensure partial data badges display correctly when the connected Analytics property is in the partial data state. See [#9474](https://github.com/google/site-kit-wp/issues/9474). -* Fix an issue that caused the visitor groups visibility toggle to appear when the feature wasn't yet set up. See [#9473](https://github.com/google/site-kit-wp/issues/9473). -* Handle insufficient permission errors correctly when attempting to create audiences via the Audience Segmentation Setup CTA Banner. See [#9471](https://github.com/google/site-kit-wp/issues/9471). -* Prevent console errors appearing when visiting the dashboard as a secondary admin or view-only user after the Audience Segmentation feature has been set up. See [#9445](https://github.com/google/site-kit-wp/issues/9445). +* Only place the Reader Revenue Manager snippet on singular WordPress posts. See [#9670](https://github.com/google/site-kit-wp/issues/9670). +* Fix typo in Key Metrics Widget. See [#9614](https://github.com/google/site-kit-wp/issues/9614). +* Fix the issue where an extra "Failed to enable metric" modal appears when canceled in the Audience Segmentation "Top Content" custom dimension creation flow. See [#9563](https://github.com/google/site-kit-wp/issues/9563). +* Fix dashboard error when selecting specific key metrics on the view-only dashboard. See [#9548](https://github.com/google/site-kit-wp/issues/9548). +* Remove the “Temporarily hidden” badge when temporarily hidden tiles reappear with only a single tile visible. See [#9472](https://github.com/google/site-kit-wp/issues/9472). +* Ensure "Add a metric" tiles are always visible on the view-only dashboard when fewer than 4 metrics are available or fewer than 8 metrics if the `conversionReporting` feature flag is enabled. See [#8712](https://github.com/google/site-kit-wp/issues/8712). [See changelog for all versions](https://raw.githubusercontent.com/google/site-kit-wp/main/changelog.txt). diff --git a/tests/js/utils.js b/tests/js/utils.js index 90362f278d6..48362698094 100644 --- a/tests/js/utils.js +++ b/tests/js/utils.js @@ -436,7 +436,7 @@ export const provideKeyMetrics = ( registry, extraData = {} ) => { /** * Provides key metrics user input settings data to the given registry. * - * @since n.e.x.t + * @since 1.140.0 * * @param {Object} registry The registry to set up. * @param {Object} [extraData] Extra data to merge with the default settings. @@ -460,7 +460,7 @@ export const provideKeyMetricsUserInputSettings = ( /** * Provides notifications data to the given registry. * - * @since n.e.x.t + * @since 1.140.0 * * @param {Object} registry The registry to set up. * @param {Object} [extraData] Extra data to merge with the default settings.