Is Java used in data analytics?no_redirect=1

I need help figuring out how to successfully redirect while including Analytics code.

The code for that redirect file:

This works as a redirect only if I don't include my Analytics code. I've tried moving the code around with no change.

QUESTION How can I add a redirect, of any kind, and still be able to track with Google Analytics?

I've tried PHP redirects with no success and am pretty sure htaccess redirects wont help although I'm open to suggestions.

The reason I'm using a JavaScript redirect is so I can continue to track with Google Analytics and also show a little message or make a custom page with the delay.

Thanks for any help. Doesn't have to be JS, please, any input is welcome if you know of a solution.

asked Jan 1 '12 at 9:12


6,52499 gold badges3434 silver badges7373 bronze badges