Created
January 30, 2014 01:13
-
-
Save emaxerrno/8700787 to your computer and use it in GitHub Desktop.
sample.postback.js
This file contains hidden or 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
var addScriptTag = function(url) { | |
var node = document.createElement('script'); | |
node.type = 'text/javascript'; | |
node.async = true; | |
node.src = ('https:' === document.location.protocol ? 'https:' : 'http:') + url; | |
node.id = '' + new Date().getTime(); | |
var topelem = (document.getElementsByTagName('head')[0] || | |
document.getElementsByTagName('body')[0]); | |
topelem.appendChild(node); | |
}; | |
var clickId = '22222'; // you need to extrack this out of the url | |
addScript('//tkr.yieldmo.com/t_adt/adt?click_id' + clickId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment