View Google Analytics For Current Day
By on October 10th, 2008

Google Analytics is one of the best and widely used analytics tool. In addition to it being free it also has lots of features. The annoying factor with Google Analytics is that whenever you login it shows you the analytics for the past 30 days and not the current day.

There is a workaround to viewing the data for the current day using a bookmarklet.

Drag and drop the Analytics Today Bookmarklet to your bookmarks toolbar. Once you have done this you will need to make a change in the bookmarklet code. For this first login into your analytics account and load the site you want to view the stats for.

In the URL you will see a parameter called as id (?id=xxxxxx) copy the site id from the URL and edit your bookmarklet by right clicking on it and choosing properties. In the location for the bookmark you will see some text which says “YOURIDHERE” without the quotes. Replace this text with the site id you just copied from the URL.

Click on Ok to save the bookmarklet. Next time whenever you want to view the statistics for the current day just click on this bookmarklet. This definitely saves time you would spend on changing the date using the visual tools available in Google Analytics.

Tags: ,
Author: Keith Dsouza Google Profile for Keith Dsouza
I am the editor-in-chief and owner of Techie Buzz. I love coding and have contributed to several open source projects in the past. You can know more about me and my projects by visiting my Personal Website. I am also a social networking enthusiast and can be found active on twitter, you can follow Keith on twitter @keithdsouza. You can click on my name to visit my Google+ profile.

Keith Dsouza has written and can be contacted at keith@techie-buzz.com.
  • http://www.online-tech-tips.com Aseem Kishore

    Ohh that is great, have been looking for something like that for a while! thanks!

  • http://www.whoismadhur.com Madhur Kapoor

    Nice article buddy . This was something i was looking for too .

  • http://www.techdune.com/ TechDune

    That’s Great,
    I was using sitemeter b’coz analytics would not update every hour . Now,it Fine..Thanks Keith.
    What happened to other blog design ? (This is better)

  • http://www.nirmaltv.com Nirmal

    Interesting find! I’ll try this out.

  • http://www.brownbaron.com/blog/ Brown Baron

    I love this tip. Thanks for helping out a stats junkie heh.

  • keith

    @Baron – Glad to help a stats junkie :-)

    @Nirmal – Yups you should try it out its quite useful.

    @TechDune – Yups it was annoying as Google did not show current day stats, well I changed the design back to the old one since my earnings dropped with the old design. I am trying to make few changes in the new design before I can relaunch it.

    @Madhur – Glad you liked it buddy.

  • Pingback: Güncel Blog » Blog ArÅŸivi » Bugüne ait google analytics bilgileri

  • http://www.gabfire.com Mehmet

    If the month is a single digit (like from 1-9) then the date is going to be printed in wron format.

    Current format, prints date out as 2008107-2008107, but it should be 20080107-20080107.

  • http://webtrickz.com Mayur

    Its simply an awesome article dude :p
    I was looking for this from a long time, but can’t find a way 2 it.
    Thanks Keith
    keep rocking…

  • http://www.quickpwn.com QuickPWN

    I also found it annoying when Google Analytics showed all the days by default. Thanks for posting this up here now. I’ve added this bookmarklet to Firefox and now it’ll be easier for me to check my stats.

  • http://thisismyurl.com Christopher Ross

    WOW! Thank you so much. Not being able to see the current traffic has been driving me nuts for weeks now. I really appreciate you sharing this with us.

  • Pingback: Google Analytics - Free Business Forums UK

  • http://www.bossev.com Martin Bossev

    Hello,

    Thanks for the valuable script.

    I modified it (although I am absolutely not familiar with javascript) a bit because for me it wasn't working as it looked like the "pad" variable wasn't defined.

    Also as I wanted to display not only the current day but a period of one month I added one more variable.

    Check it here:

    <code>

    javascript:var%20d=new%20Date();%20var%20pad='';%20if(d.getDate()<10)%20%20{var%20pad='0';}%20;%20var%20tl=''+d.getFullYear()+(d.getMonth())+pad+d.getDate();%20var%20t=''+d.getFullYear()+(d.getMonth()+1)+pad+d.getDate();%20location.href='https://www.google.com/analytics/reporting/dashboard?id=22307909&pdr='+tl+'-'+t+'&cmp=average&#039;

    </code>

  • Nelson

    Had to modify the code to make it work, I put the code up on my blog:
    http://wp.me/s1kxG3-16

  • http://www.amethystandamber.com Lindley @ Amethyst and Amber

    Just what I was looking for. Thanks so much!

 
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN