Skip to content

Instantly share code, notes, and snippets.

@arialdomartini
Last active August 29, 2015 14:07
Show Gist options
  • Save arialdomartini/19eaf7bc2190b104e888 to your computer and use it in GitHub Desktop.
Save arialdomartini/19eaf7bc2190b104e888 to your computer and use it in GitHub Desktop.
var jr_track = {
country: 'tw',
id: 6775784,
uuid: 'twF00149141076fd0670',
};
var trackApplication = function() {
var jrta = document.createElement('script');
jrta.type = 'text/javascript';
jrta.async = true;
jrta.src = 'http://static.jobrapido.com/public/tracking/tp.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jrta, s);
});
//////////
var id = jr_track['id'];
var uuid = jr_track['uuid'];
var country = jr_track['country'];
var link = [ 'http://', country, '.jobrapido.com/fo/api/v1/trackingpixel/blank.gif?advertid=', id, '&uuid=', uuid ].join('');
var img = document.createElement('img');
img.setAttribute('src', link)
$( "body" ).append(img);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment