I'm trying to add google tag manager to the site. I've added a plugin to add it to the <head> section, however I need to insert code just after the <body> tag. I've edited the header.php file to add this but it's not showing on the front end of the site. Is this the appropriate place to do this? I'm not a programmer....just know enough to be dangerous.
I think you could find a plugin that let you add the code you in the backend and the plugin will add a filter to have it added after the body tag automatically.
If you want you can still do it manually and modify the header file we have in our theme.
If it's not showing in frontend it's maybe that you are currently not using a page template that use the default header.php file or that you need to clear the server and browser cache of your site.
Do not hesitate to contact us if you have more questions.
I'm trying to add google tag manager to the site. I've added a plugin to add it to the <head> section, however I need to insert code just after the <body> tag. I've edited the header.php file to add this but it's not showing on the front end of the site. Is this the appropriate place to do this? I'm not a programmer....just know enough to be dangerous.
Thanks.
Hello Jason, thanks for purchasing Thefox!
I think you could find a plugin that let you add the code you in the backend and the plugin will add a filter to have it added after the body tag automatically.
If you want you can still do it manually and modify the header file we have in our theme.
If it's not showing in frontend it's maybe that you are currently not using a page template that use the default header.php file or that you need to clear the server and browser cache of your site.
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme
Hello Jason,
You can check this video, and use the same plugins they use to inject the code you need :
I see on your page that the code is correctly included but you putted it after the </header> tag you need to put it after the </body> tag
Do not hesitate to contact us if you have more questions.
Regards.
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme