redirect with google analytics?

by 2 replies
3
what code can i have on my page such that it immediately redirects AND allows me to put in the code i need for google analytics? (i tried the php redirect, but it doesn't work if there's other code on the page...)
#programming #analytics #google #redirect
  • this is what i got. is it good? is there a better alternative?



    <html>
    <head>
    <title>title for SEO purposes</title>
    <script type="text/javascript">
    <!--
    function delayer(){
    window.location = "location of reference"
    }
    //-->
    </script>

    GOOGLE TRACKING CODE

    </head>
    <body onLoad="setTimeout('delayer()', 1)">

    </body>
    </html>
  • You can track visitors just by checking views of that entry page in Google stats.

Next Topics on Trending Feed

  • 3

    what code can i have on my page such that it immediately redirects AND allows me to put in the code i need for google analytics? (i tried the php redirect, but it doesn't work if there's other code on the page...)