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