Hi Air,
Hope you are ok, i can see you have been dealing with some medical issues.
I have a few questions about SEO on the Rife theme, i have been reading about and have been told that the best way to add the google code, both the analytics and google tag manager is to add it to the header.php file.
1) Do i add it in the child theme or the main theme ?
2) some themes have a special place in admin to add the code, does Rife have it or do i have to do it directly in the header.php file ?
3) will this affect when i make any updates to the theme or wordpress ?
Many thanks
Jorge
Comments
Thanks for your interest, I am fine & will be back fully in next week :-)
In header.php there is special comment that we added to explain how to do it best way.
Anyway on our site we do it by wordpress action added in child theme. It looks like that: add it to functions.php in child theme
With kind regards.
However if you will view header.php in main theme you will see comments explaining how to do it best way with WordPress actions.
You can do it either way. If you don't feel comfortable then add it in header.php. WordPress actions & filters are best way to do it safely.
Like I said add this code in functions.php in child theme, just set there your code. For tag manger.
Look at screen shot from our site:
Hope that will help.
With kind regards.