I have a 3rd party hosted script I wish to execute, but within a conditional loading script.
Loader:
<script>
if (typeof({{Session alive}}) == "undefined") {
<!-- 3rd party script I wish to execute -->
}
var d = new Date();
d.setTime(d.getTime()+1800000);
var expires = "expires="+d.toGMTString();
document.cookie = "session=1; "+expires+"; path=/";
</script>
The 3rd party script I wish to execute is:
<script type='text/javascript' src='https://www.geolify.com/georedirect.php?id=7190'></script>
is there a way to have this 3rd party script execute only within the logic of the first container, while keeping the 3rd party script hosted on the external server still.
Any help ofcourse is much appreciated, thanks very much :)