SocialGouv / matomo-next

Matomo for Next.js applications
Apache License 2.0
155 stars 22 forks source link

Allow setting custom data-attributes for script-tag #97

Open abenz1267 opened 1 year ago

abenz1267 commented 1 year ago

Hi,

some cookie-managment tools like f.e. cookiefirst.com require you to setup a data-attribute so the script only gets loaded when cookies have been accepted, f.e. <script type="text/plain" data-cookiefirst-category="advertising">Your script here</script>.

Would be nice to have to option to add custom data-attributes.

Regards

revolunet commented 1 year ago

Hi @abenz1267 , could you propose a pull request for this ?