-
Notifications
You must be signed in to change notification settings - Fork 218
Google Analytics - Support a GT tracking ID #7213
Conversation
The release ZIP for this PR is accessible via:
|
Size Change: 0 B Total Size: 893 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @mikkamp, for working on this PR! 🙌 I followed the testing instructions, and I believe I did so correctly:
- I created a new property in Google Analytics for my Jurassic Ninja testing site
- The following tag was created (a
G-
tag):
- I retrieved the second tag (
GT-
) from theTag details
page:
- I added the Google tag in Google Analytics Integration Extension:
- I triggered some events in the
Cart
&All Products
blocks, and the Browser Dev Tools > Network displayed some requests sent to Google Analytics:
- Lastly, I checked my Google Analytics account -> Reports -> Realtime:
Please let me know if there is anything I missed! If not, feel free to 🚢 it! 👍
Thanks for the review @tarhi-saad you followed those testing steps perfectly. Still find it a quirky way to create a GT-ID but those are the steps we were suggested. As for merging, I still see |
The Google Analytics Integration extension now supports GTAG tracking with ID's prefixed with both
G-
andGT-
. This PR changes the tracking code to load for both types of prefixes.Fixes woocommerce/woocommerce-google-analytics-integration#228
Other Checks
Testing
Automated Tests
User Facing Testing
https://region1.google-analytics.com/g/collect
(region could vary)WooCommerce Visibility
Changelog