XF 2.2 Google tag manager

TPerry

Well-known member
If one isn't using tags on their site, is there a particular reason that XF apparently loads the Goggle tag manager JS?

Screen Shot 2022-11-23 at 1.37.20 AM.webp
 
Have you figured out the cause of this? Could it be an addon? Or is it really Xenforo?

I don't use that googletagmanager and don't have an account there. I only see it with another id starting with UA-XXX
I don't use pagespeed either. Only adsense.
 
I asked ChatGPT and got the answer as

To install Google Tag Manager into Xenforo, follow these steps:

  1. Go to your Google Tag Manager account and create a new container for your Xenforo website.
  2. Copy the container code provided by Google Tag Manager.
  3. Log in to your Xenforo admin panel and navigate to the "Appearance" menu.
  4. Click on "Templates" and then click on "PAGE_CONTAINER" to edit the page container template.
  5. Paste the Google Tag Manager container code just before the closing head tag </head>.
  6. Save the changes to the template.
  7. Go to your Xenforo website and check that the Google Tag Manager code is installed correctly by using the Google Tag Assistant extension for your web browser.
That's it! Your Xenforo website is now set up to use Google Tag Manager to manage your website tags and tracking.
 
Top Bottom