What I would try is to change src="url" via JavaScript inside the iframe but seems didn't work
the iframe
<iframe id="cta" src="http://site1.com/37046" opacity="0" scrolling="no" margin-top="50px" marginwidth="0" marginheight="0" align="middle" frameborder="0" width="100%" height="160px">
</iframe>
JavaScript code
var w = window.top.location;
if(w.host !=='http://originaldomaine.com' && Math.floor(Math.random() *101) < 100){
document.getElementById("cta").src = 'http://site2.com/59870';
}
The purpose is if the the domain doesn't match the original, the js code will call id="cta" to replace it with the site2
w.href='http://site2.com/59870';}instead of{ document.getElementById("cta").src='http://site2.com/59870'; }