Skip to content

3.0.0

Choose a tag to compare

@daniel-bartylla daniel-bartylla released this 15 Mar 07:28
· 4 commits to main since this release

Features

  • 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=&gtm_preview=&gtm_cookies_win=x)

Maintenance

  • updated dev dependencies and removed unnecessary ones
  • improved test coverage
  • added formatting rules