View Google Analytics For Current Day

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.

15 thoughts on “View Google Analytics For Current Day”

  1. 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)

  2. @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.

  3. 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.

  4. 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.

  5. 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>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>