Skip to content

Instantly share code, notes, and snippets.

@d136o
Last active August 29, 2015 14:02
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 d136o/77bdd53a71a7af1f6365 to your computer and use it in GitHub Desktop.
Save d136o/77bdd53a71a7af1f6365 to your computer and use it in GitHub Desktop.
yellow hammer asynchronous workaround
<head>
<script src="http://code.jquery.com/jquery-1.7.2.js"></script>
</head>
<body>
<script type="text/javascript">
var hostProtocol = (("https:" == document.location.protocol) ? "https" : "http");
$.getScript(
hostProtocol+'://5003.xg4ken.com/media/getpx.php?cid=XXXXXX',
function(){
console.log("about to log request after initial dom rendering, not on initial dom render.");
var params = new Array();
params[0]='id=XXXXXX';
params[1]='type=conv';
params[2]='val=0.0';
params[3]='orderId=';
params[4]='promoCode=';
params[5]='valueCurrency=USD';
params[6]='GCID='; //For Live Tracking only
params[7]='kw='; //For Live Tracking only
params[8]='product='; //For Live Tracking only
k_trackevent(params,'5003');
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment