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

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

Open lokineo opened this issue 4 years ago • 3 comments

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"

lokineo avatar Jul 02 '20 07:07 lokineo

+1 Any update on this?

bart avatar Dec 03 '20 10:12 bart

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!

abarkhurstZR avatar Oct 01 '22 13:10 abarkhurstZR

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.

HrachovRoman avatar Dec 22 '23 12:12 HrachovRoman