Google tag manager

Posted in: Newspaper
Post count: 11

Hello,

please where can I add GTM script head and body in Newspaper theme ?

Thanks.

Post count: 20688

Hi,

The head tags are found in the theme header.php file (main theme folder)
https://www.screencast.com/t/2noeCTl9Z
In the same file below the head tags is the opening body tag
http://www.screencast.com/t/FpNkgaj8q
The body tag closes in the footer.php file
http://www.screencast.com/t/ErFWd0OLO

Thanks

Post count: 32

So is the best way to implement GTM inside the header php and not from within the theme’s google analytics section?

Post count: 20688

Hi,

@Sydney Archdiocese
The result will be the same for codes you want to be loaded in the header, between the head tags. Either enter the code directly in the theme (or child theme if used) header file, or in the theme panel
https://www.screencast.com/t/99JXi1lzzD

If you enter it directly in the main theme header file it will be lost after a theme update, since all the theme files will be replaced. Entering it in a child theme header file, or theme panel, it will not be lost.

Thanks

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