How to fix this lose the tracking code installation
-
The site automatically deletes tracking code installations such as GTM, Meta… when I update WP or the site theme. I’ve already tried using the child theme or creating a header and body function, but each time I update I lose the tracking code installation. How can I fix this?
Thanks
Hello,
Try to use the free plugin Insert Headers and Footers, have a look at the site https://wordpress.org/plugins/insert-headers-and-footers/
Best Regards
Hello
I know the plugin except that I don’t want to add any more plugins for executions that I could set up myself.
I tell you I’d like to do it without using an additional plugin, so you share with me an article showing how to do it by adding a plugin!
I know that plugins exist to facilitate code installation, but on sites with several essential plugins, I prefer to limit plugin installation. For example, by installing the code manually in the functions.php file of the child theme, the theme update shouldn’t delete the custom code added in this file! Except that this is the case for you. So it’s not possible to install plugins manually without any problems when updating the theme ?
Hello,
If you place your custom code into the file wp-content/themes/woodmart-child/functions.php it will not be removed after the theme update.
Kind Regards
When I install the code in the directory there it doesn’t work
Make sure that you have activated the child theme in Appearance -> Themes.
The topic ‘How to fix this lose the tracking code installation’ is closed to new replies.