With our GA code, we are tracking multiple domains and subdomains, and we have the main bulk of the code tracking properly with only a couple of self-referrals. The biggest issue revolves around the fact that we use Colorbox for modal windows, and I need to be able to attach code to these pages to eliminate self referrals.
I’ve done a lot of searching, and working around in JavaScript to find a work-around, with no luck.
If I add onClick="_gaq.push(['_link', $(this).attr('href')]);return false;" to the a tag to open the modal window, when the page refreshes with the attach querystring params from Google, it breaks out of the modal window and takes over the entire browser window. I’ve tried building a custom function rather than just a straight onclick, and I get the same result. The only reference I have found is this article from 2010.
I’m at a loss here. I was thinking maybe I could grab the utmcc info pre-link and append it to the URL ahead of time, with no luck on finding a way to grab that from the session.
This is the code I ended up using, thanks to yahelc for the help.