react-gtm
react-gtm copied to clipboard
Add nonce parameter to the initialize function
The recommended way to use Google Tag Manager with a Content Security Policy is to use a nonce. Add a nonce parameter to the initialize function.
See https://developers.google.com/tag-manager/web/csp
Hello @alinemorelli, I think that adding the nonce parameter to your library will be a great improvement 😁 Can you have a look to my PR ?
There are now 2 PRs for nonce support @alinemorelli and a lot of people are very keen on it. Is there anything we can do to help get either of them merged?
up up! :)
We need to merge this PR.
How can I help to make this happen?
Add me to the list of people who would love to see this merged. Anything further we need to do @alinemorelli ?
Seems like someone forked and made https://github.com/irsooti/react-gtm-module-nonce, but that's out of date as well, with the react dependency causing problems.