Skip to content

Add ability to add props to script and noscript tags - #50

Open
rtrvrtg wants to merge 1 commit into
alinemorelli:masterfrom
rtrvrtg:feature/script-noscript-tag-props
Open

Add ability to add props to script and noscript tags#50
rtrvrtg wants to merge 1 commit into
alinemorelli:masterfrom
rtrvrtg:feature/script-noscript-tag-props

Conversation

@rtrvrtg

@rtrvrtg rtrvrtg commented Dec 9, 2019

Copy link
Copy Markdown

We've been using react-gtm for a while and we've hit the issue of the noscript iframe being visible on various platforms, thereby causing accessibility problems. We put this PR together to address this by allowing arbitrary attributes to be assigned to the <noscript> tag, but figured we should do it to the <script> tag as well, to ensure we could do the same to it as well.

Sorry about all the edits -- looks like my local prettier instance has made a lot of changes.

@rtrvrtg

rtrvrtg commented Dec 9, 2019

Copy link
Copy Markdown
Author

Occurs to me that this might conflict with #46. Happy to go back and do another pass.

@marbirk

marbirk commented Jun 26, 2020

Copy link
Copy Markdown

I would appreciate this new feature very much. To ensure a good and save implementation of a new cookie consent manager in our website, I have to use text/plain type prop to the GTM implementation:
https://usercentrics.com/knowledge-hub/direct-integration-usercentrics-script-website/

Do you know when you will merge this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants