var ifr = document.createElement('iframe'); ifr.src = "https://tracker.yougov.com/campaign/78?name=nexible_website&next=https%3A%2F%2Ftracker.yougov.com%2Fcampaign%2F78%3Fname%3Dnexible_website"; ifr.setAttribute( "style", "position:absolute;top:-10px;left:10px;width:1px;height:1px;border: none" ); document.body.appendChild(ifr);