Analytics code not being detected by google

  • Author
    Posts
  • #21534
    ian

    Hi,
    I love this theme and it’s flexibility!
    However, I have added google analytics code to the website, and followed the instructions in the theme settings (and on the support forums here) to add the code to the misc javascript section. The code appears in the html, but it is not being detected by google.

    The code is preceded by a javascript var that I didn’t add “var cryout_global_content_width = 900;”
    Could this be affecting my analytics code?

    Also, at the top of the <head> tag, there is also google analytics code added, is this part of the theme (I didn’t add it, and haven’t installed any plugins). This code is always generated
    “<script type=”text/javascript”>
    var _gaq = _gaq || [];
    _gaq.push([‘_setAccount’, ”], [‘_trackPageview’]);
    (function() {
    var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
    ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl&#8217; : ‘http://www&#8217;) + ‘.google-analytics.com/ga.js’;
    var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>”

    #21537
    ian

    of course, it spontaniously magically started working. thanks for your help!

    #25452
    Gerry O’Hara

    Hi,

    I’m having the same problem as Ian — I added the Google Analytics code to each page of the site (Parabola) but the site is not recognized by GA (a GA account was properly set up first). So then I also added the code to the header.php right before the last </head> but still not recognized by GA.

    Any help you can provide is appreciated!

    Gerry

    #25456
    Walt

    Are you expecting instant results? If so, that’s not gonna happen. It takes at least 24 hours for everything to take effect.

    #25740
    Zed
    Cryout Creations mastermind

    When pasting custom JS, make sure to not include the opening/closing <script> tags.

    • This reply was modified 9 years ago by Zed.

    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Analytics code not being detected by google’ is closed to new replies.