Finding the file/plugin that inserted my Google Analytics code?
First time poster here... I need to make a change to my google analytics code on my wordpress site, but cannot figure out how it was inserted. I've checked header.php, within the child theme, etc.
In essence, I'd like to be able to trace objects in the source code to where they came from, how they were inserted, etc.
You'll need to go through your plugin directory to see if there is some kind of "seo" or "analytics" plugin.
Also if you view the source code of your site you may see some hints near the analytics.js file. Like "inserted by yoast seo" plugin.
Generally, no. This would be a security issue if someone was able to look at all of the plugins you're running on your site. Many plugins have security issues and this would help malicious users track down exploitable sites.