nuxt-community / gtm-module

Google Tag Manager Module for Nuxt.js
MIT License
327 stars 71 forks source link

add rel="dns-prefetch" to google tag manager #49

Open lokineo opened 4 years ago

lokineo commented 4 years ago

Hi, is there a way to add dns-prefetch to GTM ? I want to increase web speed example: link rel="dns-prefetch" href="https://www.googletagmanager.com/" link href="https://www.googletagmanager.com/gtag/js?id=myappid" rel="preload" as="script"

bart commented 3 years ago

+1 Any update on this?

abarkhurstZR commented 2 years ago

Not the same, but related....I would like to use this module with Partytown and need to figure out how to set the script type to text/partytown so that all GTM scripts run in web worker. Thanks!

HrachovRoman commented 11 months ago

Not the same, but related....I would like to use this module with Partytown and need to figure out how to set the script type to text/partytown so that all GTM scripts run in web worker. Thanks!

Similar problem. I tried to manually insert the script into the project using partytown, but it simply does not appear in the container, although it is present in the code itself.

Are there any solutions for launching gtm through a webworker? Since this greatly affects speedpage performance, it is impossible to optimize the site.