Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2017 12:01
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 anonymous/f6d6c03eb8a5af2cb070c842cfafe8c9 to your computer and use it in GitHub Desktop.
Save anonymous/f6d6c03eb8a5af2cb070c842cfafe8c9 to your computer and use it in GitHub Desktop.
<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>
@Michael-Indeed
Copy link

Michael-Indeed commented Mar 22, 2018

Hi Guys,
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.

<script>
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>

@blackjersey
Copy link

blackjersey commented May 10, 2018

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