Remove Google Analytics from personal-wp#3381
Merged
Conversation
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.
Contributor
There was a problem hiding this comment.
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.tsmodule 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
index.htmltracking.tsmodule that wrapped all GA callslogTrackingEvent()andlogBlueprintEventscall sites inboot-site-client.tsTest plan
Deploy and confirm there's no tracking.