Skip to content

Instantly share code, notes, and snippets.

@Isxida
Forked from anonymous/pixel
Created October 3, 2012 04:49
Show Gist options
  • Save Isxida/3825062 to your computer and use it in GitHub Desktop.
Save Isxida/3825062 to your computer and use it in GitHub Desktop.
Pixel tracking attemptt
<script type="text/javascript">
var XHR = new XMLHttpRequest();
XHR.open("GET", "http://shop.bodytrim.com.au/TrackingPixelList.txt", true);
//do watheva con alltext o lines.
allText = XHR.responseText;
lines = XHR.responseText.split("\n");
XHR.send(null);
XHR.onload = function (){
console.log( XHR.responseText.slice(0, XHR.responseText.indexOf("\n")) );
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment