How to find and remove the tracking codes running in my wordpress site?

In one of my old websites I inserted GTM and GA tracking codes. Now when I run my website 'BathindaHelper.com' in G Chrome, its Tag extension shows 3 tags are running (2 for GTM and one for GA). But when I check my wordpress website's backend, I don't find the code inserted in the theme 'header.php' or 'footer.php'. I also deleted any plugins like 'Insert Headers Footers' or similar.

How can I find and remove those tags?

Topic google-analytics Wordpress

Category Web


Try switching to a default theme like Twenty Twenty. If the tags are still running, you'll know for sure they're coming from a plugin. And if they're not running, you'll know the tags are somewhere in the theme.

(It's highly recommended to disable editing the theme directly in wp-admin. It is safer to FTP in and upload/download the files, in case any issues arise, so you can easily revert changes. This also makes it easier to search through the files - many editors have a "find in files" search feature so you could look for your specific tracking code, i.e. search for your GA UA- number.)

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.