Last active
August 29, 2015 14:02
-
-
Save d136o/77bdd53a71a7af1f6365 to your computer and use it in GitHub Desktop.
yellow hammer asynchronous workaround
This file contains 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
<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