Skip to content

Comment on Google Tag Managerparent

Comments

Question for your JS folks: How are they going to handle document.write calls in third party or even 1st party tags ? Those are blocking by nature and trying to load them up asynchronously will ruin the page. I know there are a few document.write overrides but I'm interested in seeing how they would approach this :)

Good question. Google Tag Manager is about improving marketing and tracking tag/pixel performance. These scripts shouldn't do document.write too much.

We don't recommend putting tags in Google Tag Manager that manipulate on-screen elements due to the asynchronous behaviour.

I'm the founder of UberTags, which is a similar solution. We automatically transform doc.writes to appends to handle async. I'm assuming GTM does something similar.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.