• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Xenforo & Google Tag Manager similar placement as Analytics


I am trying to find a way to add Google Tag Manager to my Xenforo Install which would place the Tag Manager code on all of the pages within my Xenforo install automatically. Something similar to the placement of where the Google Analytics Web Property ID goes except I can´t currently place Google Tag Manager there.

Why? Because I am running ads and once I have the the Google Tag Manager installed I can place :
  • Facebook Pixel
  • Google Analytics
  • Remarketing

How can I do this?
If you want it on all pages, the PAGE_CONTAINER template is what you want.
It worked! Thanks... I confirmed with Google Tag Manager Chrome Plugin as well as Facebook Chrome Pixel Plugin: they read the tags firing and tell you if there are any problems with the placement or other details.

Question, ... why is the Xenforo PAGE_CONTAINER option all red though?

xenforo page.png