Home › Forums › Basel support forum › Google Tag Manager Google Tag Manager This topic has 7 replies, 2 voices, and was last updated 7 years, 8 months ago by Artem Temos. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts May 9, 2017 at 11:06 am #13414 GiulioParticipant Hi there, I’d to insert Google Tag Manager code inside body. Have I to add it inside header.php or style.css and how? Thank you! May 9, 2017 at 12:48 pm #13438 Artem TemosKeymaster Hi, We suggest you to use this plugin to add any code to header or footer https://wordpress.org/plugins/insert-headers-and-footers/ Regards May 9, 2017 at 12:49 pm #13440 GiulioParticipant I’d like, but we already use many plugins for WooCommerce. Please could you suggest a way to insert without a plugin? May 9, 2017 at 12:55 pm #13446 Artem TemosKeymaster Then, you can add it to the header.php or footer.php May 9, 2017 at 12:58 pm #13447 GiulioParticipant How I can add it here? <body <?php body_class(); ?>> May 9, 2017 at 1:00 pm #13449 Artem TemosKeymaster Just place your code there, before or after this tag. May 9, 2017 at 1:23 pm #13452 GiulioParticipant As this? <body <?php body_class(); ?>> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-*******" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <?php if (basel_needs_header()): ?> <?php do_action( 'basel_after_body_open' ); ?> May 9, 2017 at 1:48 pm #13455 Artem TemosKeymaster Yes, you can do in this way. Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to create new topics. Login / Register