I am trying to write a scriupt to serve ad slot for each region. URL's are generated dynamically. OK, so I have the following code to display the ad (Google Ad Manager)
<script type="text/javascript">
if (location.href. substring(75,76 ) == "1")
{
GA_googleFillSl ot("Button4");
}
</script>
The script works fine as long as the page is served from http://www.atlanticpor tal.com
The Problem is that the script wont work with any of the other URL's that I have such as Http://atlanticportal. com or http://www.atlanmticpo rtal.ca
How can I fix this?
<script type="text/javascript">
if (location.href. substring(75,76 ) == "1")
{
GA_googleFillSl ot("Button4");
}
</script>
The script works fine as long as the page is served from http://www.atlanticpor tal.com
The Problem is that the script wont work with any of the other URL's that I have such as Http://atlanticportal. com or http://www.atlanmticpo rtal.ca
How can I fix this?
Comment