• The code is showing on line 94 of the website. It is not in the header.php file.

    Here’s the website:

    http://www.monarchshores.com

    Here’s the code:

    <script>
    (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

    ga(‘create’, ‘UA-59569414-1 Monarch Shores Recovery Sites’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

Viewing 7 replies - 1 through 7 (of 7 total)
  • It looks like you’re using this plugin – https://ww.wp.xz.cn/plugins/google-analyticator/ – could it be coming from there?

    Thread Starter richfern17

    (@richfern17)

    Unfortunately no. The problem is with this code is that it has a missing web property id, “Monarch Shores Recovery sites” which is not present on our Google Analytics account. Also, the code still shows up when I deactivate the plugin.

    Does the Salient theme feature a customization option which allows Google Analytics code to be entered directly from somewhere in the themes options page in your dashboard?

    Thread Starter richfern17

    (@richfern17)

    It does but it is currently empty.

    I also just noticed you are using W3 Total Cache. I’m not sure how that will affect what you see in your source code immediately after making a change, or if the cache needs to be purged in order to see any changes right away.

    Thread Starter richfern17

    (@richfern17)

    I have emptied the cache, no change 🙁

    Now it’s become a mystery. There’s also a way that it can be added in the themes functions.php file, but that seems a stretch if the option already exists in the theme features in the dashboard.

    Some things I can think of that I might try, if it was me;

    – Temporarily disable ALL of your plugins and see if the symptom changes. If yes, reactivate one at a time until you find the culprit
    if no,

    – Temporarily switch to the default WordPress theme and see if the symptom changes

    if yes,

    – Download a backup copy of your Salient theme files to your local pc and do a search for the code in the theme files.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Where is this google analytics code coming from?’ is closed to new replies.