I’m using Google Analytics on my site and the site I’m using it on has a section of it that still uses frames. (Yes I know frames are horrible and outdated…but we still need them for this section of our site). Anyways, I’m using the code on some links that go to another URL where I need to use the code for tracking links across multiple domains. So my link looks like this:
<a href=“http://www.otherurl.com” onclick=“pageTracker._link(this.href); return false;” target=“_top”>Go to Other URL</a>
My problem is though that even though I have target=“_top” in the href tag the new URL still loads into the frame itself instead of loading in the whole browser window and leaving the frames pages. I’m thinking that I need to change something in the onclick javascript code. Does anyone know what I can change in the javascript code to make this work and still be able to track my links? I’ve posted this on the Google Analytics help forum but no one was able to help, so thought I’d post it here. If I take out the onclick part the link works just fine. So I know it has something to do with the javascript portion.