0

Pulling my hair out here trying to locate the code being invoked by the wp_footer() hook.

The following Google Analytics code doesn't seem to be located in any of the files in my entire web directory. None of the theme files. None of the WordPress files. Nowhere to be seen.

Google Analytics Code I realize wp_footer pulls in everything initiated by the function. It spits out a bunch of script includes among others. Everything it pulls in is fine except this one Google Analytics line, which for the life of me, doesn't seem to reside anywhere in any of the site's local files.

Searching for "GoogleAnalyticsObject", the direct "xx-xxxxxx" Google code. No keywords in that line seem to be inside any of the files. I'm not convinced the code isn't being populated from an external file, but not sure how to narrow this down to a specific function.

Any help is highly appreciated.

closed as off-topic by RRikesh, Nicolai, Rarst, cjbj, Howdy_McGee Oct 26 '17 at 15:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – RRikesh, Rarst, cjbj, Howdy_McGee
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Have you checked your plugins? – ngearing Oct 23 '17 at 22:30
  • I actually discovered the solution not too long after I posted the question. Found the answer buried in deep inside the Admin panel for customizing the particular theme that's being used. Funny, because I looked there, but missed it the first time around. Evidently, these particular theme options are saved into a database field which explains why scanning for keywords in all the site files came up null. Apparently I have to wait 2 whole days to mark my response as answered. – Israel Thompson Oct 25 '17 at 1:39
0

I finally found the answer buried in deep inside the Admin panel for customizing the particular theme that's being used. Funny, because I looked there already, but missed it the first time around. Evidently, these particular options are saved into a database which explains why scanning for keywords found in all the site files came up null.

Not the answer you're looking for? Browse other questions tagged or ask your own question.