react-gtm icon indicating copy to clipboard operation
react-gtm copied to clipboard

Add nonce parameter to the initialize function

Open lmaillet opened this issue 3 years ago • 6 comments

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

lmaillet avatar Mar 09 '21 11:03 lmaillet

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 ?

lmaillet avatar Mar 09 '21 13:03 lmaillet

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?

tonytamps avatar Mar 18 '21 21:03 tonytamps

up up! :)

shye0000 avatar Sep 02 '22 16:09 shye0000

We need to merge this PR.

How can I help to make this happen?

eugeniosegala avatar Mar 24 '23 11:03 eugeniosegala

Add me to the list of people who would love to see this merged. Anything further we need to do @alinemorelli ?

seancswanson avatar May 03 '23 21:05 seancswanson

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.

mix3d avatar Jun 15 '23 16:06 mix3d