Solved

Google Tag Manager

TomHes
Excursionist
19 1 6

Hi, as our page speed is below expectations we looked into it and noticed that google tag manager is listed as a potential issue. It is also listed 3 times. Now we are wondering whether Google Tag manager is indeed installed 3 times, especially as we noticed that our Google Ads data (conversions) is over proportionally high. Can anybody help us with that?

Bild 04.12.23 um 16.11.jpg

Thomas
Accepted Solutions (2)
shahshruti
Shopify Partner
3 1 0

This is an accepted solution.

We suggest to assessing the effectiveness of JavaScript code by considering utilizing the coverage option in the website inspect tool. By using this you can verify that particular javascript is used or not on that page. I've included a link with detailed information about the coverage tool: 
https://developer.chrome.com/docs/devtools/coverage/

if you need more help do let me know your feedback or send an email at shruti.shah@mlveda.com

View solution in original post

oreoorbitz
Shopify Partner
241 29 128

This is an accepted solution.

Hi, so if the Id starts with G-, then that means its GA4 being loaded.
AW is google ads tracking.
MC is google merchant tracking, I believe.

So there isn't exactly redundant code, unless you don't need the AW and MC tracking.
My understanding is that you can link your adwords account to GA4, and I guess merchant center, and GA4 will take care of doing the tracking, and send the info to ad words and merchant center. So ideally, you would only be loading GA4.

Available for freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes



You can also contact me directly if you prefer.

View solution in original post

Replies 4 (4)

TomHes
Excursionist
19 1 6
Thank you for your feedback. I have actually tried to remove unused scripts
which is how I came across the 3 different Google tag managers. My problem
is that I don’t know whether it is unused or not.
Thomas
shahshruti
Shopify Partner
3 1 0

This is an accepted solution.

We suggest to assessing the effectiveness of JavaScript code by considering utilizing the coverage option in the website inspect tool. By using this you can verify that particular javascript is used or not on that page. I've included a link with detailed information about the coverage tool: 
https://developer.chrome.com/docs/devtools/coverage/

if you need more help do let me know your feedback or send an email at shruti.shah@mlveda.com

oreoorbitz
Shopify Partner
241 29 128

This is an accepted solution.

Hi, so if the Id starts with G-, then that means its GA4 being loaded.
AW is google ads tracking.
MC is google merchant tracking, I believe.

So there isn't exactly redundant code, unless you don't need the AW and MC tracking.
My understanding is that you can link your adwords account to GA4, and I guess merchant center, and GA4 will take care of doing the tracking, and send the info to ad words and merchant center. So ideally, you would only be loading GA4.

Available for freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes



You can also contact me directly if you prefer.
TomHes
Excursionist
19 1 6

Thank you!

Thomas