google-gtag-module icon indicating copy to clipboard operation
google-gtag-module copied to clipboard

Partytown implementation

Open andrevferreiraa opened this issue 3 years ago • 2 comments

Any idea how to implement @nuxtjs/partytown with this module?

andrevferreiraa avatar Mar 22 '22 11:03 andrevferreiraa

Tried to implement what is mentioned at here - https://partytown.builder.io/nuxt but looks like we don't have the support to add/edit type attribute to script tag.

For letting partytown handle the gtag, we need to somehow add type="text/partytown" to the script tag for gtag

harsh253 avatar Mar 24 '22 07:03 harsh253

Also @andrevferreiraa if you look at line 38 at https://github.com/nuxt-community/google-gtag-module/blob/master/lib/module.js , it looks like the module is directly adding script tag to the head along with async option.

harsh253 avatar Mar 24 '22 07:03 harsh253