pastebin

Paste Search Dynamic
Recent pastes
Sales form click tracker
  1. /*
  2.  * Sales form click tracker
  3.  *
  4.  * tlink() will load a 1x1 GIF to track clickouts to the contact form
  5.  * Some basic scrambling prevents (a lot of) web scrapers to follow the link
  6.  *
  7.  * Date: 2016-03-22
  8. */
  9.  
  10. // function tlink(v, wow)
  11. // v is a fixed string
  12. // wow will contain the current domain name
  13. function tlink(v, wow) {
  14.     if (document.location.search.indexOf('_xas') === -1) {
  15.         // define some compenents that will later form the link to the 1x1 GIF
  16.         var proto_suf = "tp",
  17.             string = "omainb",
  18.             parameter = "php?salelink=1";
  19.         // generate and load the 1x1 GIF
  20.         new Image().src= "ht" + proto_suf + ":" + "//" + "ww" + "w.myd" + string + "uy.com/sale_form." + parameter + "&dom" + "ain_name=" + wow;
  21.     }
  22.  
Parsed in 0.006 seconds