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

PartyTown support

Open ebisbe opened this issue 1 year ago • 4 comments

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

ebisbe avatar Jan 18 '24 18:01 ebisbe

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

Shinigami92 avatar Jan 18 '24 18:01 Shinigami92

I just read the source code and found this

Pass a scriptType field to the options with text/partytown

IgorHalfeld avatar Aug 02 '24 20:08 IgorHalfeld

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?

Shinigami92 avatar Aug 04 '24 08:08 Shinigami92

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

ebisbe avatar Aug 04 '24 09:08 ebisbe