Conversation
|
Someone is attempting to deploy a commit to the Nuxt Team on Vercel. A member of the Team first needs to authorize it. |
commit: |
|
@huang-julien I guess we had this at some point and then removed it. I'm fine with adding it back even if it does end up conflicting with different GTM scripts; what do you think? |
gtag globally
|
the reason we removed it was if there's multiple google tag managers. one |
|
This PR seems to go against the documented usage of scripts, which is to rely on the .proxy accessor or using the Given that gtag is essentially a queue function, though, and doesn't fail if adblockers block GTM then I think we should just merge it as there may be some dependency on it being available on the window accessor in other third-party code. |
🔗 Linked issue
Global gtag function not exposed when using GTM via useScriptGoogleTagManager (#523)
❓ Type of change
📚 Description
Expose globally the gtag function on the Google Tag Manager Script, useful for consent updates.