1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone know what this is Timeout("ga('send','event', '30_seconds', 'read');", 30000);

Discussion in 'Web Design' started by coolsheet, Oct 1, 2014.

  1. coolsheet

    coolsheet Jr. VIP Jr. VIP

    Joined:
    Mar 28, 2014
    Messages:
    317
    Likes Received:
    130
    Occupation:
    Being me
    Location:
    The Pleiades
    tTimeout("ga('send','event', '30_seconds', 'read');", 30000); This code is showing up at the bottom of the front page of my site. Part of the message is being cut off to the left of the "t". It's obviously a ga error. But what could be causing it?

    It's a wordpress site and Ive never seen anything like it. This guy has so many plugins activated. No google analytics plugins though. Is it an error with the way the code was inserted?

    Absolutely confused on this one.
     
  2. tommyhot

    tommyhot Newbie

    Joined:
    Sep 30, 2014
    Messages:
    19
    Likes Received:
    13
    Occupation:
    Black market
    Home Page:
    The js function should be setTimeout(); so the whole string should look like this:

    Code:
    setTimeout("ga('send','event', '30_seconds', 'read');", 30000);
    It means the google's function ga() will be executed after 30 seconds from loading the script.
     
  3. coolsheet

    coolsheet Jr. VIP Jr. VIP

    Joined:
    Mar 28, 2014
    Messages:
    317
    Likes Received:
    130
    Occupation:
    Being me
    Location:
    The Pleiades
    Thanks. I knew that already though. My problem is the code is showing up in the bottom left corner of the site. I've already had a developer who completely codes his sites by hand, check it out, and he can't seem to determine the problem either. :(

    Do you think adjusting the time will remove the error from showing at the bottom of the site?
     
  4. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Premium Member

    Joined:
    Nov 10, 2012
    Messages:
    10,121
    Likes Received:
    28,560
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    • Thanks Thanks x 1
  5. coolsheet

    coolsheet Jr. VIP Jr. VIP

    Joined:
    Mar 28, 2014
    Messages:
    317
    Likes Received:
    130
    Occupation:
    Being me
    Location:
    The Pleiades
    Yeah it's a WP site, and I did try to disable all of the plug ins.

    Problem is the guy contacted me over the web, has had like 3 different developers prior to me who developed the site. The original developer, the one I need to get into contact with, that would know anything about the issue, has either passed away or is some where waiting to die from some terminal illness.

    Upon accessing the FTP the public_html folder was completely empty. ????

    Tried to access WHM with the login details owner provided, and no luck there. Client doesn't know where to access the actual ftp or how it was installed.


    This is the weirdest site I have ever seen. I actually just left a message for the owner of the site apologizing and telling him we would not be able to fix the error, and that if he can't find someone to fix it we could design his site from scratch.

    About the only option I've got at this point.

    Thanks for the help :)
     
  6. TrevorB

    TrevorB Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 21, 2011
    Messages:
    1,185
    Likes Received:
    361
    Location:
    Canada
    That code is showing on the page itself or just in the html?

    If it's showing on the page, I would check the javascript code, must be a syntax error making the browser show it as text and not javascript.
     
    • Thanks Thanks x 1
  7. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Premium Member

    Joined:
    Nov 10, 2012
    Messages:
    10,121
    Likes Received:
    28,560
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    If it is a WP site, can't you just edit the footer.php from the WP Admin and just delete the misplaced code?

    http://codex.wordpress.org/Editing_Files#Using_the_Theme_Editor_and_Plugin_Editor
    http://codex.wordpress.org/Appearance_Editor_SubPanel

    Use firebug/inspect element where the misplaced code is showing on screen to find where it is being called from and then edit out the code.
     
  8. coolsheet

    coolsheet Jr. VIP Jr. VIP

    Joined:
    Mar 28, 2014
    Messages:
    317
    Likes Received:
    130
    Occupation:
    Being me
    Location:
    The Pleiades

    Yeah its on the front page. And actually is showing up below the footer.

    No, I assumed so myself. Usually the editor would be located under the appearance menu. Here :

    Screen Shot 2014-10-09 at 11.36.31 PM.png

    No editor or anywhere else to access footer.php in the backend of WP. That's why I attempted to access the FTP and only found an empty public_html folder.

    No luck in inspect element or firebug either. Tried that first.

    We finally got in touch with the actual person who installed the GA code and are going to have them check it out. I'll let you guys know what the issue was when we discover it.

    I think something was thrown out of wack when they updated a bunch of plugins.
     
    Last edited: Oct 10, 2014
  9. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Premium Member

    Joined:
    Nov 10, 2012
    Messages:
    10,121
    Likes Received:
    28,560
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    Have they given you a full Admin account with all permissions?