Okay
  Public Ticket #2421607
Google Tag Manager
Closed

Comments

  •  21
    Simon started the conversation

    It would be great to have an option (within the theme) to add the additional code for Google Tag Manager after the opening <body> tag.

    Is there an easy way to do this than manually via the header.php file in a child theme.

    Si 

  •  2,979
    Andrew replied

    Hi Simon,

    Copy header.php file from parent theme to child theme folder where the function.php file is located 

    The file header.php contains both head and body tags. You can easily identify when you open the file. Please try that option and let us know if any issue arises.

    The following article can help you in pasting the scripts.

    https://www.wpexplorer.com/google-tag-manager-wordpress/

    Kind regards.