MODX Community

Adding GTM or Facebook Pixel code to header

How do you add Google Tag Manager or Facebook Pixel code to the header of a website? Chunk? Snippet?

Such things indeed typically go into the template or a header/footer chunk called in the template.

Wouldn’t necessarily look at snippets in this context - the HTML code is static so there’s no need to do any processing to it beyond just pasting it in.