I asked ChatGPT and got the answer as
To install Google Tag Manager into Xenforo, follow these steps:
Go to your Google Tag Manager account and create a new container for your Xenforo website.
Copy the container code provided by Google Tag Manager.
Log in to your Xenforo admin panel and...
Just transfered forum from vbb 3.8 to xenforo 2.2, and then the views/hits of threads are gone from list pages.
I am not sure if xenforo have counted the clicks or pageviews for threads?
If so, how to enable to display hits of threads?