gtm-support / vue-gtm

Simple implementation of Google Tag Manager for Vue
https://www.npmjs.com/package/@gtm-support/vue-gtm
MIT License
207 stars 26 forks source link

PartyTown support #408

Open ebisbe opened 8 months ago

ebisbe commented 8 months ago

Request / Idea

Page speed insights is complaining about Google Analytics module blocking the main thread. I figured that Partytown web worker can help avoid blocking the main thread when using analytics.

Is there any chance it could be supported out of the box?

Additional Context

Adding a new property to tell the set up to use partytown. https://partytown.builder.io

Shinigami92 commented 8 months ago

I suggest checking out the repo / create a fork with PR and explore if it is possible. If you found any solution, you can open a PR in this or the core repo

IgorHalfeld commented 2 months ago

I just read the source code and found this

Pass a scriptType field to the options with text/partytown

Shinigami92 commented 1 month ago

I just read the source code and found this

Pass a scriptType field to the options with text/partytown

Does this mean it can be closed?

ebisbe commented 1 month ago

It seems so. But I first should try it. I honestly forgot about this and don't have all the details on my head.