Remove UA from internal tracking #9042
Labels
P1
Medium priority
Team S
Issues for Squad 1
Type: Infrastructure
Engineering infrastructure & tooling
Feature Description
Universal Analytics has stopped tracking all hits since July 1 2024, it can now be removed from the plugin.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
\Google\Site_Kit\Core\Tracking\Tracking
trackingID_GA4
can be removed / replaced with the above (as it was before there were multiple IDs)Implementation Brief
TRACKING_ID
const at includes/Core/Tracking/Tracking.php and replace the value with that of the GA4 tracking IDdataLayerPush
code block referencingconfig.trackingID
site-kit-wp/assets/js/util/tracking/createInitializeSnippet.js
Lines 62 to 72 in 45342dd
dataLayerPush
code block referencingconfig.trackingID_GA4
and update it to instead referenceconfig.trackingID
site-kit-wp/assets/js/util/tracking/createInitializeSnippet.js
Lines 73 to 85 in 45342dd
trackingID_GA4
from theinitialConfig
objectsite-kit-wp/assets/js/util/tracking/index.js
Lines 37 to 48 in 45342dd
Test Coverage
QA Brief
UA-xxx
), but only the GA4 oneG-xxx
Changelog entry
The text was updated successfully, but these errors were encountered: