Shopify have made a few modifications to the way that Analytics tracking code works
If you are using the Analytics Tracking ID with additional javascript in your stores then I'd recommend moving away from that.
Also, we have a more up to date version of our container template that will help you and also the below document can help with that https://support.vi1gtm.com/a/solutions/articles/67000630546?lang=en