redirect with google analytics?

by csrpj
2 replies
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...)
#analytics #google #redirect
  • Profile picture of the author csrpj
    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>
    {{ DiscussionBoard.errors[2257937].message }}
  • Profile picture of the author markjacey
    You can track visitors just by checking views of that entry page in Google stats.
    {{ DiscussionBoard.errors[2262676].message }}

Trending Topics