0

Folks, i think my question is simple and stupid... but please, be gentle.

There is any way to return information from a get request with javascript? I wanna save the information of utmr from google analytics into a variable.

https://i.stack.imgur.com/ND370.jpg

(sorry, for the bad english ;) )

  • Sure you can do this. Please take a look at http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values – René Maas May 23 '13 at 14:57

1 Answers1

0

HTTP GET request in JavaScript?

function httpGet(theUrl)
{
var xmlHttp = null;

xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
return xmlHttp.responseText;
}
Community
  • 1
  • 1
John b
  • 1,338
  • 8
  • 16