Hello, I’m sorry to hear about the issue you’re facing. To install Google Tag Manager using a child theme, you can create a new header.php file in your child theme directory and add the necessary code for Google Tag Manager there.
Here are the steps to do this:
- Navigate to your child theme directory using FTP or cPanel File Manager.
- Create a new file named
header.php in the child theme directory.
- Add the
and code for Google Tag Manager to the header.php file.
If you need assistance with adding the code for Google Tag Manager, please refer to the official Google Tag Manager documentation or feel free to ask for further help.
If you have any more questions or need further assistance, please don’t hesitate to ask.
Sources:
How to Easily Use PHP Code on Your Website » Rank Math
Remove Organization Schema from Your Website » Rank Math
How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
These solutions don’t seem to work. Any other guidance?
Hello,
Thank you for your patience.
You may need to get in touch with your theme provider in that case to assist you on how to create the header.php file in your child theme.
Alternatively, you may use plugins to add your tag to your site like this one:
https://wordpress.org/plugins/duracelltomi-google-tag-manager/
Hope that helps.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.