You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added support for Content Security Policy (via nonce arg) to mitigate risks related to cross-site scripting
added support for a custom script source (via source arg) which allows loading Google scripts from your own GTM Tagging Servers and/or script masking
added TypeScript definitions to the package itself
Bug Fixes
events arg is an array now which allows to events to dataLayer before the GTM script is injected -> This is a breaking change which led to major version 3!
the script src is no longer containing unused query params (gtm_auth=>m_preview=>m_cookies_win=x)
Maintenance
updated dev dependencies and removed unnecessary ones