I have tried many times to insert whole script with this code:
;
document.body.innerHTML += 'code here';
What i am trying to insert is this code example :
<script type="text/javascript">
var adfly_id = 000;
var adfly_advert = 'int';
var popunder = true;
var exclude_domains = ['example.com', 'yoursite.com'];
</script>
<script src="https://cdn.adf.ly/js/link-converter.js"></script>
Any suggestion on how could i insert this adfly script into body of content via javascript would be really appreciated.
.html();? And then insert your code in those parenthesis