Hey all, I was wondering if I could get some help with this script I cut up and glued back together Our company is putting an ad in magazine that includes our URL as www.domain.com/nmn so that we can track the direct visits to that page. Once analytics has captured the data I want it to redirect the visitor to our homepage. I'm not entirely sure about the best way to redirect with JavaScript. All I did was find a generic redirect line of code on google and pasted it after the analytics code (hoping it would load after). It doesn't seem to be capturing the data in analytics. What am I doing wrong? Do I need to put a delay in there or something before it loads the window.location? See code: <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-4xxxxxx-1"); pageTracker._trackPageview(); } catch(err) {} </script> <script type="text/javascript"> window.location = "http://www.intouchtoday.com/mortgage/" </script> <html> <body> <p style="text-align:center;"> Welcome to In Touch Today! Please make sure you have JavaScript enabled so that you may be redirected to the website. </p> </body> </html> Code (markup): Thanks very much in advance for any advice! Evan Bryant www.intouchtoday.com P.S. this is the best and most active (and most awesome) web development forum I've found yet!