Hi, I added the Google Analytics script in my theme preferences as per Shopify guidelines.
How can I refer to the Google Analytics `gtag` instance from within the code? I tried to add it to `window`, i.e. `window.gtag`, with no luck. To be honest I was expecting this to be already available to the `window` object.