close
Skip to content

Remove Google Analytics from personal-wp#3381

Merged
adamziel merged 1 commit intotrunkfrom
adamziel/rm-ga-personal-wp
Mar 12, 2026
Merged

Remove Google Analytics from personal-wp#3381
adamziel merged 1 commit intotrunkfrom
adamziel/rm-ga-personal-wp

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Mar 12, 2026

Summary

The personal WordPress app (my.wordpress.net) was loading Google Tag Manager and sending page views, blueprint step names, and error events to Google Analytics. Let's stop tracking even those rudimentary details.

This PR removes:

  • The gtag script tag and initialization snippet from index.html
  • The tracking.ts module that wrapped all GA calls
  • All logTrackingEvent() and logBlueprintEvents call sites in boot-site-client.ts

Test plan

Deploy and confirm there's no tracking.

The personal-wp app (my.wordpress.net) was sending page views and
blueprint step names to Google Analytics via gtag. This removes the
GA script tag from index.html, deletes the tracking module, and
strips all tracking calls from boot-site-client.
@adamziel adamziel marked this pull request as ready for review March 12, 2026 22:21
@adamziel adamziel requested review from a team, brandonpayton and Copilot March 12, 2026 22:21
@adamziel adamziel merged commit 788b946 into trunk Mar 12, 2026
43 checks passed
@adamziel adamziel deleted the adamziel/rm-ga-personal-wp branch March 12, 2026 22:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes Google Analytics / Tag Manager instrumentation from the personal WordPress Playground app to stop sending page views, blueprint step names, and error events to Google Analytics.

Changes:

  • Removed the Google Tag Manager (gtag) script tag and initialization from index.html
  • Deleted the tracking.ts module that wrapped GA calls and blueprint event logging
  • Removed GA event logging call sites from boot-site-client.ts

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/playground/personal-wp/src/lib/tracking.ts Removes the GA wrapper and blueprint step tracking implementation by deleting the module.
packages/playground/personal-wp/src/lib/state/redux/boot-site-client.ts Eliminates GA logging hooks during load, blueprint validation, and error handling.
packages/playground/personal-wp/index.html Removes the GTM/gtag script include and initialization snippet.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants