var url = document.location; var device = 'PC'; device = checkmobile(); jQuery.getJSON('//bq03.events.pixnet.net/addhits.php?url='+url);