Skip to content

Remove Ads Conversion ID from Analytics and migrate setting.#12394

Merged
eugene-manuilov merged 9 commits intodevelopfrom
remove-ads-analytics-11303
Apr 16, 2026
Merged

Remove Ads Conversion ID from Analytics and migrate setting.#12394
eugene-manuilov merged 9 commits intodevelopfrom
remove-ads-analytics-11303

Conversation

@tofumatt
Copy link
Copy Markdown
Collaborator

Summary

Addresses issue:

Relevant technical choices

PR Author Checklist

  • My code is tested and passes existing unit tests.
  • My code has an appropriate set of unit tests which all pass.
  • My code is backward-compatible with WordPress 5.2 and PHP 7.4.
  • My code follows the WordPress coding standards.
  • My code has proper inline documentation.
  • I have added a QA Brief on the issue linked above.
  • I have signed the Contributor License Agreement (see https://cla.developers.google.com/).

Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

  • Run the code.
  • Ensure the acceptance criteria are satisfied.
  • Reassess the implementation with the IB.
  • Ensure no unrelated changes are included.
  • Ensure CI checks pass.
  • Check Storybook where applicable.
  • Ensure there is a QA Brief.
  • Ensure there are no unexpected significant changes to file sizes.

Merge Reviewer Checklist

  • Ensure the PR has the correct target branch.
  • Double-check that the PR is okay to be merged.
  • Ensure the corresponding issue has a ZenHub release assigned.
  • Add a changelog message to the issue.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2026

🤖 This comment is automatically updated by CI workflows. Each section is managed independently.

📚 Storybook for 652f906:

  • Storybook has been deleted.

📦 Build files for 652f906:

🎭 Playwright reports for 652f906:

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 27, 2026

Size Change: 0 B

Total Size: 2.27 MB

ℹ️ View Unchanged
Filename Size Change
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.css 124 B 0 B
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/reader-revenue-manager/block-editor-plugin/index.js 42.7 kB 0 B
dist/assets/blocks/reader-revenue-manager/common/editor-styles.css 307 B 0 B
dist/assets/blocks/reader-revenue-manager/common/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/reader-revenue-manager/contribute-with-google/index.js 5.81 kB 0 B
dist/assets/blocks/reader-revenue-manager/contribute-with-google/non-site-kit-user.js 5 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/index.js 5.81 kB 0 B
dist/assets/blocks/reader-revenue-manager/subscribe-with-google/non-site-kit-user.js 5 kB 0 B
dist/assets/blocks/sign-in-with-google/editor-styles.css 84 B 0 B
dist/assets/blocks/sign-in-with-google/editor-styles.js 0 B 0 B 🆕
dist/assets/blocks/sign-in-with-google/index.js 18.5 kB 0 B
dist/assets/css/googlesitekit-admin-css-********************.min.css 67.2 kB 0 B
dist/assets/css/googlesitekit-adminbar-css-********************.min.css 12.2 kB 0 B
dist/assets/css/googlesitekit-authorize-application-css-********************.min.css 851 B 0 B
dist/assets/css/googlesitekit-wp-dashboard-css-********************.min.css 8.88 kB 0 B
dist/assets/js/146-********************.js 960 B 0 B
dist/assets/js/201-********************.js 2.85 kB 0 B
dist/assets/js/314-********************.js 100 kB 0 B
dist/assets/js/315-********************.js 3.08 kB 0 B
dist/assets/js/379-********************.js 3.7 kB 0 B
dist/assets/js/590-********************.js 1.88 kB 0 B
dist/assets/js/640-********************.js 2.35 kB 0 B
dist/assets/js/909-********************.js 1.01 kB 0 B
dist/assets/js/analytics-advanced-tracking-********************.js 404 B 0 B
dist/assets/js/googlesitekit-activation-********************.js 24.6 kB 0 B
dist/assets/js/googlesitekit-ad-blocking-recovery-********************.js 58.6 kB 0 B
dist/assets/js/googlesitekit-admin-pointers-tracking-********************.js 5.36 kB 0 B
dist/assets/js/googlesitekit-adminbar-********************.js 35.3 kB 0 B
dist/assets/js/googlesitekit-api-********************.js 8.01 kB 0 B
dist/assets/js/googlesitekit-block-tracking-********************.js 5.55 kB 0 B
dist/assets/js/googlesitekit-components-********************.js 5.79 kB 0 B
dist/assets/js/googlesitekit-consent-mode-********************.js 25.5 kB 0 B
dist/assets/js/googlesitekit-data-********************.js 1.73 kB 0 B
dist/assets/js/googlesitekit-datastore-forms-********************.js 7.04 kB 0 B
dist/assets/js/googlesitekit-datastore-location-********************.js 1.52 kB 0 B
dist/assets/js/googlesitekit-datastore-site-********************.js 18.4 kB 0 B
dist/assets/js/googlesitekit-datastore-ui-********************.js 7.16 kB 0 B
dist/assets/js/googlesitekit-datastore-user-********************.js 22.7 kB 0 B
dist/assets/js/googlesitekit-entity-dashboard-********************.js 71.5 kB 0 B
dist/assets/js/googlesitekit-events-provider-contact-form-7-********************.js 1.23 kB 0 B
dist/assets/js/googlesitekit-events-provider-easy-digital-downloads-********************.js 629 B 0 B
dist/assets/js/googlesitekit-events-provider-mailchimp-********************.js 1.22 kB 0 B
dist/assets/js/googlesitekit-events-provider-ninja-forms-********************.js 1.22 kB 0 B
dist/assets/js/googlesitekit-events-provider-optin-monster-********************.js 1.25 kB 0 B
dist/assets/js/googlesitekit-events-provider-popup-maker-********************.js 1.29 kB 0 B
dist/assets/js/googlesitekit-events-provider-woocommerce-********************.js 918 B 0 B
dist/assets/js/googlesitekit-events-provider-wpforms-********************.js 1.25 kB 0 B
dist/assets/js/googlesitekit-i18n-********************.js 6.1 kB 0 B
dist/assets/js/googlesitekit-key-metrics-setup-********************.js 51.8 kB 0 B
dist/assets/js/googlesitekit-main-dashboard-********************.js 152 kB 0 B
dist/assets/js/googlesitekit-metric-selection-********************.js 57.7 kB 0 B
dist/assets/js/googlesitekit-modules-********************.js 26 kB 0 B
dist/assets/js/googlesitekit-modules-ads-********************.js 47.5 kB -24 B (-0.05%)
dist/assets/js/googlesitekit-modules-adsense-********************.js 135 kB 0 B
dist/assets/js/googlesitekit-modules-analytics-4-********************.js 186 kB -158 B (-0.09%)
dist/assets/js/googlesitekit-modules-pagespeed-insights-********************.js 23.2 kB 0 B
dist/assets/js/googlesitekit-modules-reader-revenue-manager-********************.js 52.3 kB 0 B
dist/assets/js/googlesitekit-modules-search-console-********************.js 65.1 kB 0 B
dist/assets/js/googlesitekit-modules-sign-in-with-google-********************.js 33.9 kB 0 B
dist/assets/js/googlesitekit-modules-tagmanager-********************.js 29.8 kB 0 B
dist/assets/js/googlesitekit-notifications-********************.js 66.5 kB 0 B
dist/assets/js/googlesitekit-polyfills-********************.js 228 B 0 B
dist/assets/js/googlesitekit-settings-********************.js 133 kB 0 B
dist/assets/js/googlesitekit-splash-********************.js 77.8 kB 0 B
dist/assets/js/googlesitekit-user-input-********************.js 50.3 kB 0 B
dist/assets/js/googlesitekit-vendor-********************.js 315 kB 0 B
dist/assets/js/googlesitekit-widgets-********************.js 103 kB 0 B
dist/assets/js/googlesitekit-wp-dashboard-********************.js 60.3 kB 0 B
dist/assets/js/runtime-********************.js 1.86 kB 0 B

compressed-size-action

Copy link
Copy Markdown
Collaborator

@zutigrm zutigrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread includes/Core/Util/Migration_n_e_x_t.php
Copy link
Copy Markdown
Collaborator

@eugene-manuilov eugene-manuilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @tofumatt. There is some more work to do here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this has been added to IB, but we don't need this migration. There is nothing to migrate here. Let's remove this class.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've previously removed unneeded/unused keys from settings with other migrations; wouldn't it make sense to remove it now that it's no longer in use? It's not strictly needed but seems like good housekeeping 🤔

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we don't need this migration. If we need to move something to another place or convert it to a different format, then we would need this migration class.

Comment thread tests/phpunit/integration/Core/Util/Migration_n_e_x_tTest.php Outdated
Comment thread includes/Modules/Analytics_4/Settings.php
Comment thread tests/phpunit/integration/Modules/Analytics_4Test.php
Comment thread tests/phpunit/integration/Modules/Analytics_4/SettingsTest.php
Copy link
Copy Markdown
Collaborator Author

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ACs explicitly state the 'adsConversionID' key should stick around, so I didn't remove it to meet the ACs.

I can remove the new migration if desired but to remove the 'adsConversionID' key I'll need to modify the old migration as well—let me know if you'd like that, but in that case we need to adjust the ACs.

@eugene-manuilov
Copy link
Copy Markdown
Collaborator

Ok, sounds good, @tofumatt. Let's keep that adsConversionID key in the settings class but add a comment that explains that thta property is deprecated and shouldn't be used.

@tofumatt tofumatt force-pushed the remove-ads-analytics-11303 branch from 4913ff0 to 098b036 Compare April 14, 2026 22:03
@eugene-manuilov eugene-manuilov merged commit fbfab79 into develop Apr 16, 2026
37 of 38 checks passed
@eugene-manuilov eugene-manuilov deleted the remove-ads-analytics-11303 branch April 16, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants