Forums

[resolved] [Plugin: Google Analytics for WordPress] Google Analytic Tracking Code Not being displayed (19 posts)

  1. ihatealex
    Member
    Posted 3 years ago #

    Hello,

    I just added the Google Analytics wordpress plugin in to my site and I'm not seeing the Google Analytics Javascript on my pages. I created the theme myself and I'm kind new to theme design.

    Could someone look at my site and see if I missing something?

    ihatealex.org

    The plug-in is activated, I have entered my google id and I have emptied my cache to see if the code is there on a fresh reload.

    Any help would be very much appreciated.

    Thanks

    alex

  2. dazonic
    Member
    Posted 3 years ago #

    I'm having the same issue, WP 2.6.1

    Also, there's a typo on the plugin's settings page.. The example Analytics ID should be in bold according to the 'What's this?' link, but it's blank. Might confuse someone...

  3. ihatealex
    Member
    Posted 3 years ago #

    I'm using 2.6.

    Dazonic did you create your own theme? If not I wonder if you could find a site (google theme name) that has your theme and email the author and ask them if they did anything special.

  4. lesliekirk
    Member
    Posted 3 years ago #

    Nevermind :( It was an issue with Firefox....mumble grumble...

    I've upgraded to 2.6.2, before upgrading the plug-in worked with my custom theme. I noticed I had a problem when I looked at the settings and found that every field had an "a" in it. When I viewed the source of the blog page it too had an "a" for the ID but at least the code was still displaying at the bottom of the page. After I "Reset all settings" to clear the "a" in every field and entered the correct information, the GA tag was no longer being inserted.

    Has something changed with how this plug-in adds the code?

  5. henrik_larsson
    Member
    Posted 3 years ago #

    Hi!

    I seem to have the same problem here. I can't see the code in FF (3.0.3) when using WP 2.6.3. I have cleared the cache and done everything I can think of. In Safari, it works fine.

    What is this strange problem? How do I solve it?

  6. henrik_larsson
    Member
    Posted 3 years ago #

    Ah, how stupid!

    I just had to enable this setting:

    "Track the administrator too (default is not to)"

    Otherwise it won't show up in the code while I'm logged in.

  7. Joost de Valk
    Member
    Posted 3 years ago #

    henrik_larsson: that "feature" is causing me more grief than you can imagine :)

  8. shafalcon
    Member
    Posted 3 years ago #

    thanks joostdevalk! got the plug-in to work just fine!

  9. Joost de Valk
    Member
    Posted 3 years ago #

    Good to hear that!

  10. nathanzhang
    Member
    Posted 3 years ago #

    Dear Joost,
    Please help after spend 1 week looking around the solution. I don't know where to ask.

    My problem is similar with lesliekirk above. One of my site has 40-50 visitors a day everday for the whole year. When I upgrade the wordpress to 2.6.5 (I think from WP 2.3.3) and then I upgrade all the plugins also.

    Several days later, I just notice in my google analytics account, that that site tracking zero visitor. I thought may be there is something wrong with the plugin setting after WP upgrade.

    What I found is quite the same with lesliekrik (above post), in the google analytics for wordpress settings, every field had an "a" in it.
    So I change all the setting back to the correct one like my analytics ID for that site.

    But after that, in google analytics there is no visitors, even I wait for several days. I looked at the site, there is no GA tracking code insert to the site.

    I already tried to deactivate and then activate it again. I already tried to remove all the files and then upload the newest version of googlel analytics for wordpress plugin.

    But it doesn't work. There is no GA tracking code inserted in the page, and in the google analytics report there is still no visitors even though in the AWStats there is still lots of visitor everyday.

    Anyone please help or advise what wrong with this?
    My site is : EvennaChang.com (my wife site)

    thanks a lot

    Nathan

  11. Joost de Valk
    Member
    Posted 3 years ago #

    So you're sure the UA- code is set correctly? And the wp_footer() call is in your themes footer.php file?

  12. nathanzhang
    Member
    Posted 3 years ago #

    Thanks Joost for the clue,
    Just checked that footer.php, yes there is no call to wp_footer. I add the call <?php wp_footer(); ?>, after that the tracking code is appear! Finally!

    My thought was I just upgrade the wordpress, I don't make any changes to the wordpress themes so I don't want change anything to make it worse :)

    Thanks again.

    Nathan

  13. Joost de Valk
    Member
    Posted 3 years ago #

    My pleasure Nathan

  14. bhamlibby
    Member
    Posted 3 years ago #

    Just wanted to tell yall thanks for this thread! especially joostdevalk - i added the wp_footer() call and it fixed my problem. I was going crazy trying to make it work, so thanks again.

  15. pokinwilly
    Member
    Posted 3 years ago #

    Hello, not sure it is fine to continue on a "solved" thread, but on the other hand, not sure I should open a new thread with the same subject :-?

    I've noticed too late the new usage of wp_footer(), and indeed my theme do not call it. But as I restored the old plugin version, I'll delay the change to next upgrade.

    However, I was quite surprised: the 2.7 plugin proposes to insert code into header (instead of footer), but this was not working either. Is this a bug or...?
    (only the <script>windows.google_analytics...</script> part was printed).

    Thx

  16. woolef
    Member
    Posted 3 years ago #

    Hi

    I'm using the inove template which has a footer.php file but the wp_footer() call is in a file called end.php and the GA tracking script isn't showing up on my page source. Can someone help please?

  17. woolef
    Member
    Posted 3 years ago #

    This may be a google chrome issue as it works fine (I get the code in my page source) with FF3 and IE7 :\

    [EDIT] No I'm an idiot, it was the track admin option, doh [/EDIT]

  18. spammypie
    Member
    Posted 3 years ago #

    Hi Joost,

    Please forgive my ignorance, as all of this stuff is rather foreign to me.

    I am having similar troubles using the iNove theme and am puzzled where I should place the call to the footer function.

    Does this look correct? The following is the footer.php contents:

    </div>
    <!-- main END -->

    <?php get_sidebar(); ?>
    <div class="fixed"></div>
    </div>
    <!-- content END -->

    <?php include('templates/end.php'); ?>
    <?php wp_footer(); ?> <-- is this where I should place the call to the function?

    Thank you.

    Spammy

  19. Joost de Valk
    Member
    Posted 3 years ago #

    That's the perfect spot indeed.

Topic Closed

This topic has been closed to new replies.

About this Topic