Google Tag Manager implementation in Newspaper Theme

Posted in: Newspaper
Post count: 3

Hi I am having difficulty with the code insertion for google tag manager in the newspaper theme. I tried to create the header.php file and load it into the child theme, but the site does not see the changes, I tried to modify the header.php file, that of the main theme, but the same does not work.
I tried to insert it in the “theme panel” settings, where the code for analytics is inserted, I inserted the one for google tag manager, but it does not work because the code is inserted before the closing of the head and body tags, instead, according to the specifications of google tag manager, the code must be entered immediately after opening the head and body tags.
I just need to enter the code for GTM, the code for Analytics I enter it in the GTM console.
Could you help me understand how to solve this problem?
In other sites I don’t have this problem because I just need to edit the header.php file of the various themes and everything works.
In addition, I must also add the code for cookiebot and in my opinion I will have the same problem.
Thanks.

Post count: 18283

Hello !

By simply integrating the code in the header.php file ( main theme ) this should work like a charm.

Please make sure that your cache is clear from your end and from host too. This sounds like a caching issue.

Thank you !

Post count: 3

Hello,
I have already tried to insert it in the header.php of the main theme, I do not use any plugin for the cache, I also emptied it from the server, but the changes do not take them.

Post count: 18283

Hello !

Please contact us via email at contact@tagdiv.com and provide the following:

– admin url and credentials
– cPanel url and credentials
– A link to this topic in order to identify you

Our team will take a look !

Thank you !

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.