Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

WordPress add Google tag manager script to header.php

The Google tag manager requires me to put one script inside the "head" tag and one at the beginning of the "body" tag.

I want to know what would be considered "best practise" to achieve this.
Are there any other ways than to create a child theme and place the Script in the header.php file?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You can use "Insert Headers and Footers by WPBeginner" plugin

https://wordpress.org/plugins/insert-headers-and-footers/

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading