Viewing google analytic stats for the current day

I was trying to view the google analytics for the current day without jumping through the hoops. I came across this article which almost worked for me. I had to modify the code a bit, here it is below:

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

WordPress won’t let me post it as a bookmarklet, but just simple add a new bookmark and paste the above string into the same place you would input the URL.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: