Me and my friend have developed a script that hide the cookie tag for "X" minutes because the whole concept is when a visitor visit my website I don't want to cookied immediately for retargeting proposes but to hide the cookie tag for x seconds so only I can cookied only the visitor that stays more than x seconds.
Check the code below:
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script>
function Inject() {
$('body').append(HERE WE PUT THE RETARGETING PIXEL CODE);
}
// run script after 45 sec.
window.setTimeout(Inject, 45000);
</script>
As you can see the retargeting pixel code goes between ( ) but the problem I am facing this moment is that when I place the retargeting pixel from Facebook inside the ( ) it seems that it doesn't work correctly. Check the image below to see how it looks like in my website: https://i.stack.imgur.com/z1KtE.png
As you can see something in the code is missing but I don't know what. Any help will be appreciated. Thanks.