WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
Google analytics (6 posts)

  1. mygfdfliving
    Member
    Posted 1 year ago #

    I cannot get google analytics to work with your site. Is it not compatible? I pasted my tracking code above the body tag in the footer.php file under editor in appearances. I love your theme, but I really need google analytics in order to analyze my website. Any hints of what I am doing wrong? Any help would be greatly appreciated.

  2. Alexander
    Member
    Posted 1 year ago #

    Hi mygfdfliving,

    Try to add the script to the header.php as suggested by google analytics.

  3. mygfdfliving
    Member
    Posted 1 year ago #

    I tried adding it in the header too. I am not having any luck in having google analytics track the site though. Any other hints? I am placing the code:

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-32419388-1']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    </script>

    before the </body> tag.

  4. Alexander
    Member
    Posted 1 year ago #

    Try to put it somewhere in the <head>.

  5. Alexander
    Member
    Posted 1 year ago #

    You can also try to add a plugin like "Ultimate Google Analytics".

    Once you've installed it, you can go to Settings/Ultimate GA and put in your account ID, which should basically do it already.

  6. gylpogglamour
    Member
    Posted 11 months ago #

    hello Alexander
    i instaled the plugin as you mentioned,
    Sporings-id
    UA-40973XXX-1
    Status: Sporing er blevet installeret
    it tells me its instaled, but when i tjeck the stats its shows none visitors :( dont know what went wrong? can it takes some time before its up?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic