-
-
Save vjsingh/2002990 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void(( | |
function(){ | |
var t = new Date(), y = t.getFullYear(), month = t.getMonth(), month_plus = month + 1; | |
var parsed_day = function() { return (t.getDate() < 10 ? '0' : '') + t.getDate()}; | |
var parsed_month = function() { return (month_plus < 10 ? '0' : '') + month_plus }; | |
window.location.href="#report/visitors-overview/a28499152w54277021p55201311/?_.date00="+y+parsed_month()+parsed_day()+"&_.date01="+y+parsed_month()+parsed_day();} | |
)() | |
) | |
void function(){var a=new Date,b=a.getFullYear(),c=a.getMonth(),d=c+1;var e=function(){return(a.getDate()<10?"0":"")+a.getDate()};var f=function(){return(d<10?"0":"")+d};window.location.href="#report/visitors-overview/a28499152w54277021p55201311/?_.date00="+b+f()+e()+"&_.date01="+b+f()+e()}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shows current day in Google Analytics. Copy 'javascript:' and then the minified version into a bookmark