-
-
Save anonymous/f6d6c03eb8a5af2cb070c842cfafe8c9 to your computer and use it in GitHub Desktop.
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
<script> | |
window.addEventListener("load", function load(event){ | |
window.removeEventListener("load", load, false); | |
if (document.body.className.indexOf("applied") > 0) { | |
var conversion_id = 'INDEED_CONVERSION_ID'; | |
var conversion_label = ''; | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
script.src = "//conv.indeed.com/pagead/conversion.js"; | |
$("head").append(script); | |
} | |
},false); | |
</script> |
Hi. Is there an updated version in jQuery? I placed this in a js file and trying to load this using $.getScript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Guys,
<script>Been working on a update for this tracker as the one above has been change slight as Indeed updated their tracker on their end.
Underneath the new function code. Replace INDEED_CONVERSION_ID with the fetched code from you account.
window.addEventListener("load", function load(event){
window.removeEventListener("load", load, false);
if (document.body.className.indexOf("applied") > 0) {
// Indeed conversion tracking:
var img = new Image();
img.src = 'https://conv.indeed.com/pagead/conv/INDEED_CONVERSION_ID/?script=0';
img.setAttribute('height', 1);
img.setAttribute('width', 1);
img.setAttribute('border', 0);
document.getElementsByTagName('body')[0].appendChild(img);
}
},false);
</script>