Plugin Directory

Changeset 3181737

Timestamp:
11/04/2024 06:44:13 PM (16 months ago)
Author:
google
Message:

Update to version 1.139.0 from GitHub

Location:
google-site-kit
Files:
88 added
86 deleted
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • google-site-kit/tags/1.139.0/dist/manifest.php

    r3173125 r3181737  
    1919    'analytics-advanced-tracking'                          => array( "analytics-advanced-tracking-ea84b2c367b69f5c094b.js", null ),
    2020    'googlesitekit-i18n'                                   => array( "googlesitekit-i18n-33cdd2dee5d1d1f4fb34.js", null ),
    21     'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-0cf0cf71d3ac64918b65.min.css", null ),
     21    'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-.min.css", null ),
    2222    'googlesitekit-adminbar-css'                           => array( "googlesitekit-adminbar-css-6db776544b37175be17f.min.css", null ),
    2323    'googlesitekit-authorize-application-css'              => array( "googlesitekit-authorize-application-css-ce25e97404abc5a02921.min.css", null ),
    2424    'googlesitekit-wp-dashboard-css'                       => array( "googlesitekit-wp-dashboard-css-c5417a27cb905717f9fc.min.css", null ),
    25     'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-cca22bcdeb2e1252b20a.js", null ),
    26     'googlesitekit-runtime'                                => array( "runtime-62d30aa4dfe99a234168.js", null ),
    27     'googlesitekit-activation'                             => array( "googlesitekit-activation-92b68a64f8c49de241af.js", null ),
    28     'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-07aa92478cfda86230a1.js", null ),
    29     'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-fcca725e4c9a48e538d5.js", null ),
    30     'googlesitekit-api'                                    => array( "googlesitekit-api-550ec631080ecbe7ce31.js", null ),
    31     'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-a91f1bfdcda7a0646201.js", null ), array( "googlesitekit-components-gm3-92f85ea47675d14ac5a9.js", null ) ),
    32     'googlesitekit-data'                                   => array( "googlesitekit-data-3b542d543c8681a7a9e3.js", null ),
    33     'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-d15515ec8ecd21094314.js", null ),
    34     'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-0ee8a906c521ba57df31.js", null ),
    35     'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-a25b86aff61d95d576a3.js", null ),
    36     'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-9a25027ace7928ab86b9.js", null ),
    37     'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-b38448e1fcd4332aa61c.js", null ),
    38     'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-67d78978f4d8c2fad7c0.js", null ),
    39     'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-bbebf70a79bf05241779.js", null ),
    40     'googlesitekit-modules'                                => array( "googlesitekit-modules-e54ee0e6062c26eda49b.js", null ),
    41     'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-75ac41046f9adbce2571.js", null ),
    42     'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-0fd44e647615023ac8a3.js", null ),
    43     'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-c82d34b549c6c79ba517.js", null ),
    44     'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-fce99a8e14c7bd34f67d.js", null ),
    45     'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-02102cd465618974bb9a.js", null ),
    46     'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-4deafb9b987583dafc26.js", null ),
    47     'googlesitekit-modules-sign-in-with-google'            => array( "googlesitekit-modules-sign-in-with-google-61eee54b7d2d4b48180c.js", null ),
    48     'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-6341f3bb0c704bcf9dea.js", null ),
    49     'googlesitekit-notifications'                          => array( "googlesitekit-notifications-1908f486d9b5a90e3d79.js", null ),
    50     'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-538dfc56ccc5d6d72b6b.js", null ),
    51     'googlesitekit-settings'                               => array( "googlesitekit-settings-e3abad624d460d009b28.js", null ),
    52     'googlesitekit-splash'                                 => array( "googlesitekit-splash-c4a2084b4a7105a3a920.js", null ),
    53     'googlesitekit-user-input'                             => array( "googlesitekit-user-input-d122cd12eb3e12bfad95.js", null ),
    54     'googlesitekit-widgets'                                => array( "googlesitekit-widgets-7e5164737bb2a867290a.js", null ),
    55     'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-07f79d1ebe9f6aaea97b.js", null ),
     25    'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-.js", null ),
     26    'googlesitekit-runtime'                                => array( "runtime-.js", null ),
     27    'googlesitekit-activation'                             => array( "googlesitekit-activation-.js", null ),
     28    'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-.js", null ),
     29    'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-f.js", null ),
     30    'googlesitekit-api'                                    => array( "googlesitekit-api-1.js", null ),
     31    'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-.js", null ) ),
     32    'googlesitekit-data'                                   => array( "googlesitekit-data-.js", null ),
     33    'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-.js", null ),
     34    'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-0.js", null ),
     35    'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-.js", null ),
     36    'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-.js", null ),
     37    'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-.js", null ),
     38    'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-.js", null ),
     39    'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-.js", null ),
     40    'googlesitekit-modules'                                => array( "googlesitekit-modules-.js", null ),
     41    'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-.js", null ),
     42    'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-.js", null ),
     43    'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-.js", null ),
     44    'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-.js", null ),
     45    'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-.js", null ),
     46    'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-.js", null ),
     47    'googlesitekit-modules-sign-in-with-google'            => array( "googlesitekit-modules-sign-in-with-google-6.js", null ),
     48    'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-.js", null ),
     49    'googlesitekit-notifications'                          => array( "googlesitekit-notifications-.js", null ),
     50    'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-.js", null ),
     51    'googlesitekit-settings'                               => array( "googlesitekit-settings-.js", null ),
     52    'googlesitekit-splash'                                 => array( "googlesitekit-splash-.js", null ),
     53    'googlesitekit-user-input'                             => array( "googlesitekit-user-input-.js", null ),
     54    'googlesitekit-widgets'                                => array( "googlesitekit-widgets-.js", null ),
     55    'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-.js", null ),
    5656);
  • google-site-kit/tags/1.139.0/google-site-kit.php

    r3173125 r3181737  
    1212 * Plugin URI:        https://sitekit.withgoogle.com
    1313 * 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.
    14  * Version:           1.138.0
     14 * Version:           1.13.0
    1515 * Requires at least: 5.2
    1616 * Requires PHP:      7.4
     
    2727
    2828// Define most essential constants.
    29 define( 'GOOGLESITEKIT_VERSION', '1.138.0' );
     29define( 'GOOGLESITEKIT_VERSION', '1.13.0' );
    3030define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
    3131define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
  • google-site-kit/tags/1.139.0/includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php

    r3127664 r3181737  
    9595
    9696                // Don't output the script tag if the order key is invalid.
    97                 if ( ! $order->key_is_valid( $order_key ) ) {
     97                if ( ! $order->key_is_valid( $order_key ) ) {
    9898                    return;
    9999                }
  • google-site-kit/tags/1.139.0/includes/Modules/Analytics_4.php

    r3173125 r3181737  
    224224        if ( Feature_Flags::enabled( 'conversionReporting' ) ) {
    225225            $conversion_reporting_provider = new Conversion_Reporting_Provider(
     226
    226227                $this->settings,
    227228                $this->user_options,
     
    342343        if ( Feature_Flags::enabled( 'audienceSegmentation' ) ) {
    343344            add_filter( 'googlesitekit_inline_modules_data', $this->get_method_proxy( 'inline_resource_availability_dates_data' ) );
     345
     346
     347
     348
    344349        }
    345350
     
    16721677            case 'POST:clear-conversion-reporting-new-events':
    16731678                return function () {
    1674                     return $this->transients->delete( 'googlesitekit_conversion_reporting_detected_events' );
     1679                    return $this->transients->delete( );
    16751680                };
    16761681            case 'POST:clear-conversion-reporting-lost-events':
    16771682                return function () {
    1678                     return $this->transients->delete( 'googlesitekit_conversion_reporting_lost_events' );
     1683                    return $this->transients->delete( );
    16791684                };
    16801685        }
     
    25852590        return wp_list_pluck( $site_kit_audiences, 'displayName' );
    25862591    }
     2592
     2593
     2594
     2595
     2596
     2597
     2598
     2599
     2600
     2601
     2602
     2603
     2604
     2605
     2606
     2607
     2608
     2609
     2610
     2611
     2612
    25872613}
  • google-site-kit/tags/1.139.0/includes/Modules/Analytics_4/Conversion_Reporting/Conversion_Reporting_Events_Sync.php

    r3148853 r3181737  
    1313use Google\Site_Kit\Modules\Analytics_4;
    1414use Google\Site_Kit\Modules\Analytics_4\Settings;
     15
     16
    1517
    1618/**
     
    2224 */
    2325class Conversion_Reporting_Events_Sync {
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
    2436
    2537    const EVENT_NAMES = array(
     
    4658
    4759    /**
     60
     61
     62
     63
     64
     65
     66
     67
    4868     * Constructor.
    4969     *
    5070     * @since 1.135.0
     71
    5172     *
     73
    5274     * @param Settings    $settings  Settings module settings instance.
    5375     * @param Analytics_4 $analytics Analytics 4 module instance.
    5476     */
    5577    public function __construct(
     78
    5679        Settings $settings,
    5780        Analytics_4 $analytics
    5881    ) {
    59         $this->settings  = $settings;
    60         $this->analytics = $analytics;
     82        $this->settings   = $settings;
     83        $this->analytics  = $analytics;
     84        $this->transients = new Transients( $context );
    6185    }
    6286
     
    7498        }
    7599
     100
     101
     102
     103
    76104        // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    77105        if ( empty( $report->rowCount ) ) {
    78106            $this->settings->merge( array( 'detectedEvents' => array() ) );
     107
     108
     109
     110
     111
     112
    79113
    80114            return;
     
    83117        foreach ( $report->rows as $row ) {
    84118            $detected_events[] = $row['dimensionValues'][0]['value'];
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
    85134        }
    86135
  • google-site-kit/tags/1.139.0/includes/Modules/Analytics_4/Conversion_Reporting/Conversion_Reporting_Provider.php

    r3148853 r3181737  
    1111namespace Google\Site_Kit\Modules\Analytics_4\Conversion_Reporting;
    1212
     13
    1314use Google\Site_Kit\Core\Storage\User_Options;
    1415use Google\Site_Kit\Modules\Analytics_4;
     
    5657     *
    5758     * @since 1.135.0
     59
    5860     *
     61
    5962     * @param Settings     $settings     Settings instance.
    6063     * @param User_Options $user_options User_Options instance.
     
    6265     */
    6366    public function __construct(
     67
    6468        Settings $settings,
    6569        User_Options $user_options,
     
    6973        $this->analytics    = $analytics;
    7074
    71         $this->events_sync = new Conversion_Reporting_Events_Sync( $settings, $this->analytics );
     75        $this->events_sync = new Conversion_Reporting_Events_Sync( $settings, $this->analytics );
    7276        $this->cron        = new Conversion_Reporting_Cron( fn() => $this->cron_callback() );
    7377    }
  • google-site-kit/tags/1.139.0/includes/Modules/Analytics_4/Report/RequestHelpers.php

    r3156474 r3181737  
    204204            array(
    205205                'activeUsers',
     206
    206207                'averageSessionDuration',
    207208                'bounceRate',
    208209                'conversions',
     210
    209211                'engagedSessions',
    210212                'engagementRate',
     213
    211214                'screenPageViews',
    212215                'screenPageViewsPerSession',
     
    275278                'date',
    276279                'deviceCategory',
     280
    277281                'newVsReturning',
    278282                'pagePath',
  • google-site-kit/tags/1.139.0/includes/Modules/Analytics_4/Settings.php

    r3164469 r3181737  
    7474            'availableAudiences',
    7575            'audienceSegmentationSetupCompletedBy',
     76
    7677        );
    7778    }
  • google-site-kit/tags/1.139.0/includes/Modules/Sign_In_With_Google.php

    r3164469 r3181737  
    1818use Google\Site_Kit\Core\Modules\Module_With_Settings;
    1919use Google\Site_Kit\Core\Modules\Module_With_Settings_Trait;
     20
    2021use Google\Site_Kit\Modules\Sign_In_With_Google\Settings;
    2122
     
    2930final class Sign_In_With_Google extends Module implements Module_With_Assets, Module_With_Settings, Module_With_Deactivation {
    3031
     32
    3133    use Module_With_Assets_Trait;
    3234    use Module_With_Settings_Trait;
     
    4345     */
    4446    public function register() {
     47
    4548    }
    4649
     
    108111        return new Settings( $this->options );
    109112    }
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
    110172}
  • google-site-kit/tags/1.139.0/includes/Modules/Sign_In_With_Google/Settings.php

    r3173125 r3181737  
    2424    const OPTION = 'googlesitekit_sign-in-with-google_settings';
    2525
    26     const TEXT_CONTINUE_WITH_GOOGLE = 'Continue with Google';
    27     const TEXT_SIGN_IN              = 'Sign in';
    28     const TEXT_SIGN_IN_WITH_GOOGLE  = 'Sign in with Google';
    29     const TEXT_SIGN_UP_WITH_GOOGLE  = 'Sign up with Google';
     26    const TEXT_CONTINUE_WITH_GOOGLE = '';
     27    const TEXT_SIGN_IN              = 'in';
     28    const TEXT_SIGN_IN_WITH_GOOGLE  = '';
     29    const TEXT_SIGN_UP_WITH_GOOGLE  = '';
    3030
    31     const THEME_LIGHT   = 'light';
    32     const THEME_NEUTRAL = 'neutral';
    33     const THEME_DARK    = 'dark';
     31    const THEME_LIGHT   = '';
     32    const THEME_NEUTRAL = '';
     33    const THEME_DARK    = 'k';
    3434
    3535    const SHAPE_RECTANGULAR = 'rectangular';
     
    4545    protected function get_default() {
    4646        return array(
    47             'clientID' => '',
    48             'text'     => self::TEXT_SIGN_IN_WITH_GOOGLE,
    49             'theme'    => self::THEME_LIGHT,
    50             'shape'    => self::SHAPE_RECTANGULAR,
     47            'clientID'      => '',
     48            'text'          => self::TEXT_SIGN_IN_WITH_GOOGLE,
     49            'theme'         => self::THEME_LIGHT,
     50            'shape'         => self::SHAPE_RECTANGULAR,
     51            'oneTapEnabled' => false,
    5152        );
    5253    }
     
    105106            }
    106107
     108
     109
     110
     111
    107112            return $option;
    108113        };
  • google-site-kit/tags/1.139.0/readme.txt

    r3173125 r3181737  
    33Contributors:      google
    44Requires at least: 5.2
    5 Tested up to:      6.6
     5Tested up to:      6.
    66Requires PHP:      7.4
    7 Stable tag:        1.138.0
     7Stable tag:        1.13.0
    88License:           Apache License 2.0
    99License URI:       https://www.apache.org/licenses/LICENSE-2.0
     
    110110== Changelog ==
    111111
    112 = 1.138.0 =
     112= 1.13.0 =
    113113
    114114**Added**
    115115
    116 * Add datastore infrastructure for Sign in With Google settings. See [#9480](https://github.com/google/site-kit-wp/issues/9480).
    117 * Add Sign in with Google module settings. See [#9333](https://github.com/google/site-kit-wp/issues/9333).
     116* Add ).
     117* Add ).
    118118
    119119**Enhanced**
    120120
    121 * Update the RRM setup CTA copy to explicitly mention that subscriptions aren't available yet as part of the integration. See [#9524](https://github.com/google/site-kit-wp/issues/9524).
    122 * Update the Audience Segmentation support documentation "learn more" link in the tooltip for an Audience Tile. See [#9455](https://github.com/google/site-kit-wp/issues/9455).
    123 * Update tailored metrics to also include new ACR metrics. See [#9437](https://github.com/google/site-kit-wp/issues/9437).
    124 * Disallow manual Ads Conversion ID entry when using the Partner Ads Experience. See [#9426](https://github.com/google/site-kit-wp/issues/9426).
    125 * Update copy text in Google Ads module when Partner Ads Experience is enabled. See [#9425](https://github.com/google/site-kit-wp/issues/9425).
    126 * Fix OAuth error handling when attempting to create a custom dimension from the "Top content" metric area in an Audience Tile. See [#9350](https://github.com/google/site-kit-wp/issues/9350).
    127 * Update Analytics setup to support any number of accounts. See [#9348](https://github.com/google/site-kit-wp/issues/9348).
    128 * Implement the ability to dismiss detected and lost events information in the Analytics module. See [#9343](https://github.com/google/site-kit-wp/issues/9343).
    129 * Refactor the setup success subtle notification for Audience Segmentation. See [#9281](https://github.com/google/site-kit-wp/issues/9281).
    130 * Increase maximum Key Metric Widget selection count to 8. See [#9135](https://github.com/google/site-kit-wp/issues/9135).
    131 * Update the Reader Revenue Manager setup success notification to use the new notifications datastore. See [#8981](https://github.com/google/site-kit-wp/issues/8981).
    132 * Update the design of the Key Metrics setup CTA banner. See [#8895](https://github.com/google/site-kit-wp/issues/8895).
    133 * Improve UI/UX on AdSense alerts. See [#7642](https://github.com/google/site-kit-wp/issues/7642).
     121* 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).
     122* 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).
     123* Add Dashboard Sharing support to Analytics Conversion Reporting tiles. See [#9377](https://github.com/google/site-kit-wp/issues/9377).
     124* Improved the design of the User Input Questionnaire. See [#9374](https://github.com/google/site-kit-wp/issues/9374).
     125* Update requirement checks for notifications to have all selectors resolved correctly and efficiently. See [#9351](https://github.com/google/site-kit-wp/issues/9351).
     126* Update conversion reporting events synchronization to save detected and lost events. See [#9342](https://github.com/google/site-kit-wp/issues/9342).
     127* Add the setup form for the Sign in With Google module. See [#9336](https://github.com/google/site-kit-wp/issues/9336).
     128* Implement the ability to edit Sign in With Google settings. See [#9334](https://github.com/google/site-kit-wp/issues/9334).
    134129
    135130**Fixed**
    136131
    137 * Prevent audience settings from being deleted when changing or disconnecting the Analytics property. Reset `configuredAudiences` and `didSetAudiences` to default values while keeping `isAudienceSegmentationWidgetHidden` unchanged. See [#9432](https://github.com/google/site-kit-wp/issues/9432).
    138 * Improve the availability of the audience widget for secondary administrators. See [#9411](https://github.com/google/site-kit-wp/issues/9411).
    139 * Fix VRT test failures in CI when launching Chromium, ensuring tests run to completion without errors. See [#9406](https://github.com/google/site-kit-wp/issues/9406).
    140 * Ensure the error style for the Settings edit screen is cleared when settings are saved successfully. See [#8481](https://github.com/google/site-kit-wp/issues/8481).
     132* Fix an issue that caused the visitor groups overlay notification to appear unexpectedly. See [#9481](https://github.com/google/site-kit-wp/issues/9481).
     133* 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).
     134* 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).
     135* 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).
     136* 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).
     137* 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).
     138* 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).
    141139
    142140[See changelog for all versions](https://raw.githubusercontent.com/google/site-kit-wp/main/changelog.txt).
  • google-site-kit/trunk/dist/manifest.php

    r3173125 r3181737  
    1919    'analytics-advanced-tracking'                          => array( "analytics-advanced-tracking-ea84b2c367b69f5c094b.js", null ),
    2020    'googlesitekit-i18n'                                   => array( "googlesitekit-i18n-33cdd2dee5d1d1f4fb34.js", null ),
    21     'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-0cf0cf71d3ac64918b65.min.css", null ),
     21    'googlesitekit-admin-css'                              => array( "googlesitekit-admin-css-.min.css", null ),
    2222    'googlesitekit-adminbar-css'                           => array( "googlesitekit-adminbar-css-6db776544b37175be17f.min.css", null ),
    2323    'googlesitekit-authorize-application-css'              => array( "googlesitekit-authorize-application-css-ce25e97404abc5a02921.min.css", null ),
    2424    'googlesitekit-wp-dashboard-css'                       => array( "googlesitekit-wp-dashboard-css-c5417a27cb905717f9fc.min.css", null ),
    25     'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-cca22bcdeb2e1252b20a.js", null ),
    26     'googlesitekit-runtime'                                => array( "runtime-62d30aa4dfe99a234168.js", null ),
    27     'googlesitekit-activation'                             => array( "googlesitekit-activation-92b68a64f8c49de241af.js", null ),
    28     'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-07aa92478cfda86230a1.js", null ),
    29     'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-fcca725e4c9a48e538d5.js", null ),
    30     'googlesitekit-api'                                    => array( "googlesitekit-api-550ec631080ecbe7ce31.js", null ),
    31     'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-a91f1bfdcda7a0646201.js", null ), array( "googlesitekit-components-gm3-92f85ea47675d14ac5a9.js", null ) ),
    32     'googlesitekit-data'                                   => array( "googlesitekit-data-3b542d543c8681a7a9e3.js", null ),
    33     'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-d15515ec8ecd21094314.js", null ),
    34     'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-0ee8a906c521ba57df31.js", null ),
    35     'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-a25b86aff61d95d576a3.js", null ),
    36     'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-9a25027ace7928ab86b9.js", null ),
    37     'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-b38448e1fcd4332aa61c.js", null ),
    38     'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-67d78978f4d8c2fad7c0.js", null ),
    39     'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-bbebf70a79bf05241779.js", null ),
    40     'googlesitekit-modules'                                => array( "googlesitekit-modules-e54ee0e6062c26eda49b.js", null ),
    41     'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-75ac41046f9adbce2571.js", null ),
    42     'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-0fd44e647615023ac8a3.js", null ),
    43     'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-c82d34b549c6c79ba517.js", null ),
    44     'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-fce99a8e14c7bd34f67d.js", null ),
    45     'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-02102cd465618974bb9a.js", null ),
    46     'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-4deafb9b987583dafc26.js", null ),
    47     'googlesitekit-modules-sign-in-with-google'            => array( "googlesitekit-modules-sign-in-with-google-61eee54b7d2d4b48180c.js", null ),
    48     'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-6341f3bb0c704bcf9dea.js", null ),
    49     'googlesitekit-notifications'                          => array( "googlesitekit-notifications-1908f486d9b5a90e3d79.js", null ),
    50     'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-538dfc56ccc5d6d72b6b.js", null ),
    51     'googlesitekit-settings'                               => array( "googlesitekit-settings-e3abad624d460d009b28.js", null ),
    52     'googlesitekit-splash'                                 => array( "googlesitekit-splash-c4a2084b4a7105a3a920.js", null ),
    53     'googlesitekit-user-input'                             => array( "googlesitekit-user-input-d122cd12eb3e12bfad95.js", null ),
    54     'googlesitekit-widgets'                                => array( "googlesitekit-widgets-7e5164737bb2a867290a.js", null ),
    55     'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-07f79d1ebe9f6aaea97b.js", null ),
     25    'googlesitekit-vendor'                                 => array( "googlesitekit-vendor-.js", null ),
     26    'googlesitekit-runtime'                                => array( "runtime-.js", null ),
     27    'googlesitekit-activation'                             => array( "googlesitekit-activation-.js", null ),
     28    'googlesitekit-ad-blocking-recovery'                   => array( "googlesitekit-ad-blocking-recovery-.js", null ),
     29    'googlesitekit-adminbar'                               => array( "googlesitekit-adminbar-f.js", null ),
     30    'googlesitekit-api'                                    => array( "googlesitekit-api-1.js", null ),
     31    'googlesitekit-components'                             => array( array( "googlesitekit-components-gm2-.js", null ) ),
     32    'googlesitekit-data'                                   => array( "googlesitekit-data-.js", null ),
     33    'googlesitekit-datastore-forms'                        => array( "googlesitekit-datastore-forms-.js", null ),
     34    'googlesitekit-datastore-location'                     => array( "googlesitekit-datastore-location-0.js", null ),
     35    'googlesitekit-datastore-site'                         => array( "googlesitekit-datastore-site-.js", null ),
     36    'googlesitekit-datastore-ui'                           => array( "googlesitekit-datastore-ui-.js", null ),
     37    'googlesitekit-datastore-user'                         => array( "googlesitekit-datastore-user-.js", null ),
     38    'googlesitekit-entity-dashboard'                       => array( "googlesitekit-entity-dashboard-.js", null ),
     39    'googlesitekit-main-dashboard'                         => array( "googlesitekit-main-dashboard-.js", null ),
     40    'googlesitekit-modules'                                => array( "googlesitekit-modules-.js", null ),
     41    'googlesitekit-modules-ads'                            => array( "googlesitekit-modules-ads-.js", null ),
     42    'googlesitekit-modules-adsense'                        => array( "googlesitekit-modules-adsense-.js", null ),
     43    'googlesitekit-modules-analytics-4'                    => array( "googlesitekit-modules-analytics-4-.js", null ),
     44    'googlesitekit-modules-pagespeed-insights'             => array( "googlesitekit-modules-pagespeed-insights-.js", null ),
     45    'googlesitekit-modules-reader-revenue-manager'         => array( "googlesitekit-modules-reader-revenue-manager-.js", null ),
     46    'googlesitekit-modules-search-console'                 => array( "googlesitekit-modules-search-console-.js", null ),
     47    'googlesitekit-modules-sign-in-with-google'            => array( "googlesitekit-modules-sign-in-with-google-6.js", null ),
     48    'googlesitekit-modules-tagmanager'                     => array( "googlesitekit-modules-tagmanager-.js", null ),
     49    'googlesitekit-notifications'                          => array( "googlesitekit-notifications-.js", null ),
     50    'googlesitekit-polyfills'                              => array( "googlesitekit-polyfills-.js", null ),
     51    'googlesitekit-settings'                               => array( "googlesitekit-settings-.js", null ),
     52    'googlesitekit-splash'                                 => array( "googlesitekit-splash-.js", null ),
     53    'googlesitekit-user-input'                             => array( "googlesitekit-user-input-.js", null ),
     54    'googlesitekit-widgets'                                => array( "googlesitekit-widgets-.js", null ),
     55    'googlesitekit-wp-dashboard'                           => array( "googlesitekit-wp-dashboard-.js", null ),
    5656);
  • google-site-kit/trunk/google-site-kit.php

    r3173125 r3181737  
    1212 * Plugin URI:        https://sitekit.withgoogle.com
    1313 * 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.
    14  * Version:           1.138.0
     14 * Version:           1.13.0
    1515 * Requires at least: 5.2
    1616 * Requires PHP:      7.4
     
    2727
    2828// Define most essential constants.
    29 define( 'GOOGLESITEKIT_VERSION', '1.138.0' );
     29define( 'GOOGLESITEKIT_VERSION', '1.13.0' );
    3030define( 'GOOGLESITEKIT_PLUGIN_MAIN_FILE', __FILE__ );
    3131define( 'GOOGLESITEKIT_PHP_MINIMUM', '7.4.0' );
  • google-site-kit/trunk/includes/Core/Conversion_Tracking/Conversion_Event_Providers/WooCommerce.php

    r3127664 r3181737  
    9595
    9696                // Don't output the script tag if the order key is invalid.
    97                 if ( ! $order->key_is_valid( $order_key ) ) {
     97                if ( ! $order->key_is_valid( $order_key ) ) {
    9898                    return;
    9999                }
  • google-site-kit/trunk/includes/Modules/Analytics_4.php

    r3173125 r3181737  
    224224        if ( Feature_Flags::enabled( 'conversionReporting' ) ) {
    225225            $conversion_reporting_provider = new Conversion_Reporting_Provider(
     226
    226227                $this->settings,
    227228                $this->user_options,
     
    342343        if ( Feature_Flags::enabled( 'audienceSegmentation' ) ) {
    343344            add_filter( 'googlesitekit_inline_modules_data', $this->get_method_proxy( 'inline_resource_availability_dates_data' ) );
     345
     346
     347
     348
    344349        }
    345350
     
    16721677            case 'POST:clear-conversion-reporting-new-events':
    16731678                return function () {
    1674                     return $this->transients->delete( 'googlesitekit_conversion_reporting_detected_events' );
     1679                    return $this->transients->delete( );
    16751680                };
    16761681            case 'POST:clear-conversion-reporting-lost-events':
    16771682                return function () {
    1678                     return $this->transients->delete( 'googlesitekit_conversion_reporting_lost_events' );
     1683                    return $this->transients->delete( );
    16791684                };
    16801685        }
     
    25852590        return wp_list_pluck( $site_kit_audiences, 'displayName' );
    25862591    }
     2592
     2593
     2594
     2595
     2596
     2597
     2598
     2599
     2600
     2601
     2602
     2603
     2604
     2605
     2606
     2607
     2608
     2609
     2610
     2611
     2612
    25872613}
  • google-site-kit/trunk/includes/Modules/Analytics_4/Conversion_Reporting/Conversion_Reporting_Events_Sync.php

    r3148853 r3181737  
    1313use Google\Site_Kit\Modules\Analytics_4;
    1414use Google\Site_Kit\Modules\Analytics_4\Settings;
     15
     16
    1517
    1618/**
     
    2224 */
    2325class Conversion_Reporting_Events_Sync {
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
    2436
    2537    const EVENT_NAMES = array(
     
    4658
    4759    /**
     60
     61
     62
     63
     64
     65
     66
     67
    4868     * Constructor.
    4969     *
    5070     * @since 1.135.0
     71
    5172     *
     73
    5274     * @param Settings    $settings  Settings module settings instance.
    5375     * @param Analytics_4 $analytics Analytics 4 module instance.
    5476     */
    5577    public function __construct(
     78
    5679        Settings $settings,
    5780        Analytics_4 $analytics
    5881    ) {
    59         $this->settings  = $settings;
    60         $this->analytics = $analytics;
     82        $this->settings   = $settings;
     83        $this->analytics  = $analytics;
     84        $this->transients = new Transients( $context );
    6185    }
    6286
     
    7498        }
    7599
     100
     101
     102
     103
    76104        // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
    77105        if ( empty( $report->rowCount ) ) {
    78106            $this->settings->merge( array( 'detectedEvents' => array() ) );
     107
     108
     109
     110
     111
     112
    79113
    80114            return;
     
    83117        foreach ( $report->rows as $row ) {
    84118            $detected_events[] = $row['dimensionValues'][0]['value'];
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
    85134        }
    86135
  • google-site-kit/trunk/includes/Modules/Analytics_4/Conversion_Reporting/Conversion_Reporting_Provider.php

    r3148853 r3181737  
    1111namespace Google\Site_Kit\Modules\Analytics_4\Conversion_Reporting;
    1212
     13
    1314use Google\Site_Kit\Core\Storage\User_Options;
    1415use Google\Site_Kit\Modules\Analytics_4;
     
    5657     *
    5758     * @since 1.135.0
     59
    5860     *
     61
    5962     * @param Settings     $settings     Settings instance.
    6063     * @param User_Options $user_options User_Options instance.
     
    6265     */
    6366    public function __construct(
     67
    6468        Settings $settings,
    6569        User_Options $user_options,
     
    6973        $this->analytics    = $analytics;
    7074
    71         $this->events_sync = new Conversion_Reporting_Events_Sync( $settings, $this->analytics );
     75        $this->events_sync = new Conversion_Reporting_Events_Sync( $settings, $this->analytics );
    7276        $this->cron        = new Conversion_Reporting_Cron( fn() => $this->cron_callback() );
    7377    }
  • google-site-kit/trunk/includes/Modules/Analytics_4/Report/RequestHelpers.php

    r3156474 r3181737  
    204204            array(
    205205                'activeUsers',
     206
    206207                'averageSessionDuration',
    207208                'bounceRate',
    208209                'conversions',
     210
    209211                'engagedSessions',
    210212                'engagementRate',
     213
    211214                'screenPageViews',
    212215                'screenPageViewsPerSession',
     
    275278                'date',
    276279                'deviceCategory',
     280
    277281                'newVsReturning',
    278282                'pagePath',
  • google-site-kit/trunk/includes/Modules/Analytics_4/Settings.php

    r3164469 r3181737  
    7474            'availableAudiences',
    7575            'audienceSegmentationSetupCompletedBy',
     76
    7677        );
    7778    }
  • google-site-kit/trunk/includes/Modules/Sign_In_With_Google.php

    r3164469 r3181737  
    1818use Google\Site_Kit\Core\Modules\Module_With_Settings;
    1919use Google\Site_Kit\Core\Modules\Module_With_Settings_Trait;
     20
    2021use Google\Site_Kit\Modules\Sign_In_With_Google\Settings;
    2122
     
    2930final class Sign_In_With_Google extends Module implements Module_With_Assets, Module_With_Settings, Module_With_Deactivation {
    3031
     32
    3133    use Module_With_Assets_Trait;
    3234    use Module_With_Settings_Trait;
     
    4345     */
    4446    public function register() {
     47
    4548    }
    4649
     
    108111        return new Settings( $this->options );
    109112    }
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
    110172}
  • google-site-kit/trunk/includes/Modules/Sign_In_With_Google/Settings.php

    r3173125 r3181737  
    2424    const OPTION = 'googlesitekit_sign-in-with-google_settings';
    2525
    26     const TEXT_CONTINUE_WITH_GOOGLE = 'Continue with Google';
    27     const TEXT_SIGN_IN              = 'Sign in';
    28     const TEXT_SIGN_IN_WITH_GOOGLE  = 'Sign in with Google';
    29     const TEXT_SIGN_UP_WITH_GOOGLE  = 'Sign up with Google';
     26    const TEXT_CONTINUE_WITH_GOOGLE = '';
     27    const TEXT_SIGN_IN              = 'in';
     28    const TEXT_SIGN_IN_WITH_GOOGLE  = '';
     29    const TEXT_SIGN_UP_WITH_GOOGLE  = '';
    3030
    31     const THEME_LIGHT   = 'light';
    32     const THEME_NEUTRAL = 'neutral';
    33     const THEME_DARK    = 'dark';
     31    const THEME_LIGHT   = '';
     32    const THEME_NEUTRAL = '';
     33    const THEME_DARK    = 'k';
    3434
    3535    const SHAPE_RECTANGULAR = 'rectangular';
     
    4545    protected function get_default() {
    4646        return array(
    47             'clientID' => '',
    48             'text'     => self::TEXT_SIGN_IN_WITH_GOOGLE,
    49             'theme'    => self::THEME_LIGHT,
    50             'shape'    => self::SHAPE_RECTANGULAR,
     47            'clientID'      => '',
     48            'text'          => self::TEXT_SIGN_IN_WITH_GOOGLE,
     49            'theme'         => self::THEME_LIGHT,
     50            'shape'         => self::SHAPE_RECTANGULAR,
     51            'oneTapEnabled' => false,
    5152        );
    5253    }
     
    105106            }
    106107
     108
     109
     110
     111
    107112            return $option;
    108113        };
  • google-site-kit/trunk/readme.txt

    r3173125 r3181737  
    33Contributors:      google
    44Requires at least: 5.2
    5 Tested up to:      6.6
     5Tested up to:      6.
    66Requires PHP:      7.4
    7 Stable tag:        1.138.0
     7Stable tag:        1.13.0
    88License:           Apache License 2.0
    99License URI:       https://www.apache.org/licenses/LICENSE-2.0
     
    110110== Changelog ==
    111111
    112 = 1.138.0 =
     112= 1.13.0 =
    113113
    114114**Added**
    115115
    116 * Add datastore infrastructure for Sign in With Google settings. See [#9480](https://github.com/google/site-kit-wp/issues/9480).
    117 * Add Sign in with Google module settings. See [#9333](https://github.com/google/site-kit-wp/issues/9333).
     116* Add ).
     117* Add ).
    118118
    119119**Enhanced**
    120120
    121 * Update the RRM setup CTA copy to explicitly mention that subscriptions aren't available yet as part of the integration. See [#9524](https://github.com/google/site-kit-wp/issues/9524).
    122 * Update the Audience Segmentation support documentation "learn more" link in the tooltip for an Audience Tile. See [#9455](https://github.com/google/site-kit-wp/issues/9455).
    123 * Update tailored metrics to also include new ACR metrics. See [#9437](https://github.com/google/site-kit-wp/issues/9437).
    124 * Disallow manual Ads Conversion ID entry when using the Partner Ads Experience. See [#9426](https://github.com/google/site-kit-wp/issues/9426).
    125 * Update copy text in Google Ads module when Partner Ads Experience is enabled. See [#9425](https://github.com/google/site-kit-wp/issues/9425).
    126 * Fix OAuth error handling when attempting to create a custom dimension from the "Top content" metric area in an Audience Tile. See [#9350](https://github.com/google/site-kit-wp/issues/9350).
    127 * Update Analytics setup to support any number of accounts. See [#9348](https://github.com/google/site-kit-wp/issues/9348).
    128 * Implement the ability to dismiss detected and lost events information in the Analytics module. See [#9343](https://github.com/google/site-kit-wp/issues/9343).
    129 * Refactor the setup success subtle notification for Audience Segmentation. See [#9281](https://github.com/google/site-kit-wp/issues/9281).
    130 * Increase maximum Key Metric Widget selection count to 8. See [#9135](https://github.com/google/site-kit-wp/issues/9135).
    131 * Update the Reader Revenue Manager setup success notification to use the new notifications datastore. See [#8981](https://github.com/google/site-kit-wp/issues/8981).
    132 * Update the design of the Key Metrics setup CTA banner. See [#8895](https://github.com/google/site-kit-wp/issues/8895).
    133 * Improve UI/UX on AdSense alerts. See [#7642](https://github.com/google/site-kit-wp/issues/7642).
     121* 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).
     122* 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).
     123* Add Dashboard Sharing support to Analytics Conversion Reporting tiles. See [#9377](https://github.com/google/site-kit-wp/issues/9377).
     124* Improved the design of the User Input Questionnaire. See [#9374](https://github.com/google/site-kit-wp/issues/9374).
     125* Update requirement checks for notifications to have all selectors resolved correctly and efficiently. See [#9351](https://github.com/google/site-kit-wp/issues/9351).
     126* Update conversion reporting events synchronization to save detected and lost events. See [#9342](https://github.com/google/site-kit-wp/issues/9342).
     127* Add the setup form for the Sign in With Google module. See [#9336](https://github.com/google/site-kit-wp/issues/9336).
     128* Implement the ability to edit Sign in With Google settings. See [#9334](https://github.com/google/site-kit-wp/issues/9334).
    134129
    135130**Fixed**
    136131
    137 * Prevent audience settings from being deleted when changing or disconnecting the Analytics property. Reset `configuredAudiences` and `didSetAudiences` to default values while keeping `isAudienceSegmentationWidgetHidden` unchanged. See [#9432](https://github.com/google/site-kit-wp/issues/9432).
    138 * Improve the availability of the audience widget for secondary administrators. See [#9411](https://github.com/google/site-kit-wp/issues/9411).
    139 * Fix VRT test failures in CI when launching Chromium, ensuring tests run to completion without errors. See [#9406](https://github.com/google/site-kit-wp/issues/9406).
    140 * Ensure the error style for the Settings edit screen is cleared when settings are saved successfully. See [#8481](https://github.com/google/site-kit-wp/issues/8481).
     132* Fix an issue that caused the visitor groups overlay notification to appear unexpectedly. See [#9481](https://github.com/google/site-kit-wp/issues/9481).
     133* 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).
     134* 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).
     135* 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).
     136* 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).
     137* 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).
     138* 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).
    141139
    142140[See changelog for all versions](https://raw.githubusercontent.com/google/site-kit-wp/main/changelog.txt).
Note: See TracChangeset for help on using the changeset viewer.