Support » Fixing WordPress » Code at bottom of website

  • wtwp

    (@wtwp)


    Hi,
    Since yesterday, the following code has been showing at the bottom of my site:

    (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-XXXXXXXX-X', 'mysite.com'); ga('send', 'pageview');

    I have disabled plugins and re-enabled, but there is no change. I have also deleted the manually placed ga code, still no show.
    It only just started to appear, what can I do to resolve this pls?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • sinip

    (@sinip)

    If your website is http://www.whattowearpost.com/ then I don’t see any code in the bottom.

    Carl Wuensche

    (@stuffradio)

    I see this text at the bottom of the page.

    } } } } }

    You have some funny things going on on your site, such as some tags trying to close other tags that are not open. Did you make changes yourself? Here’s what it looks like

    
    <script type='text/javascript'>
    /* <![CDATA[ */
    r3f5x9JS=escape(document['referrer']);
    hf4N='3414b0841bb60b11ba3e03aceb85d429';
    hf4V='55c1d3c5f2ab7f17da844ddecd3bdde9';
    jQuery(document).ready(function($){var e="#commentform, .comment-respond form, .comment-form, #lostpasswordform, #registerform, #loginform, #login_form, #wpss_contact_form, .wpcf7-form";$(e).submit(function(){$("<input>").attr("type","hidden").attr("name","r3f5x9JS").attr("value",r3f5x9JS).appendTo(e);return true;});var h="form[method='post']";$(h).submit(function(){$("<input>").attr("type","hidden").attr("name",hf4N).attr("value",hf4V).appendTo(h);return true;});});
    /* ]]> */
    </script> 
     <!-- Amazon Publisher Studio -->
    <script> var amzn_ps_tracking_id = 'wtwp-20'; </script>
    <script async="true" type="text/javascript" src="//ps-us.amazon-adsystem.com/scripts/US/studio.js" charset="UTF-8"></script>
    }
    
    <meta name="p:domain_verify" content="2f64402a72efca0f63aa029a096975a7" />
    }
    
    </style>
    
    <script type="text/javascript">
    var fb_param = {};
    fb_param.pixel_id = '6012530070090';
    fb_param.value = '0.00';
    fb_param.currency = 'GBP';
    (function(){
      var fpw = document.createElement('script');
      fpw.async = true;
      fpw.src = '//connect.facebook.net/en_US/fp.js';
      var ref = document.getElementsByTagName('script')[0];
      ref.parentNode.insertBefore(fpw, ref);
    })();
    </script>
    <noscript><img height="1" width="1" alt="" src="https://www.facebook.com/offsite_event.php?id=6012530070090&value=0&currency=GBP" /></noscript>
    }
    
    <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-42267964-1', 'whattowearpost.com');
      ga('send', 'pageview');
    
    </script>
    }
    

    Thanks for your responses. It wasn’t whattowearpost it was another site of mine, lachrystol. However, after going to the site today, I can’t see any code. This is weird though.

    @stuffradio, I noticed } in question. I followed what was added to the side initially to add other codes. I also noticed that when I took out the whole codes, the } disappeared. I’m not sure if it will do any harm to the site, hence, I have left it like so.
    I guess the } gives me the difference or the start/end between one code and the other. Otherwise, I wouldn’t have known how to differentiate between all of them.
    How to handle this will be highly appreciated.

    Thanks 🙂

    @wtwp Sorry, I’m not sure I understand the question because I can’t see what you’re talking about.

    @stuffradio, I was referring to your comments on this:

    I see this text at the bottom of the page.

    } } } } }

    You have some funny things going on on your site, such as some tags trying to close other tags that are not open. Did you make changes yourself? Here’s what it looks like

    And I responded as before that I only followed what I saw on the website backend to ad more codes.
    In a nutshell, yes, I did add some of the codes myself following what was previously added.
    I hope I made myself clear enough.
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Code at bottom of website’ is closed to new replies.