Hi @ayedlin
I think this will solve your problem…
This script just delays adding the embed script to the host page until the “delay” value has been reached. *NOTE: Any existing version of the Convertable’s script should be removed from the host page or this script won’t work.
Required Values:
1. delayInSeconds - The amount of seconds to delay the Convertable being eligible to show.
2. convertableScriptSrc - The src of the Convertables embed script, e.g.
<script src="//f26e7782694e41398352088f013af031.js.ubembed.com" async></script>
For this Convertable script: convertableScriptSrc = “//f26e7782694e41398352088f013af031.js.ubembed.com”
Host Page Script:
Define the required values and add the script to the Convertable.
<script>
// Define the required variables
var delayInSeconds = 5;
var convertableScriptSrc = "//f26e7782694e41398352088f013af031.js.ubembed.com"
window.setTimeout( function () {
var script = document.createElement('script');
script.src = convertableScriptSrc;
script.async = true;
document.getElementsByTagName('head')a0].appendChild(script);
}, delayInSeconds* 1000);
</script>
Looks like it’s working beautifully. Thank you so much!