Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   redirect with google analytics? (https://www.warriorforum.com/programming/228138-redirect-google-analytics.html)

csrpj 23rd June 2010 06:53 PM

redirect with google analytics?
 
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...)

csrpj 23rd June 2010 08:20 PM

Re: redirect with google analytics?
 
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>

markjacey 24th June 2010 09:09 PM

Re: redirect with google analytics?
 
You can track visitors just by checking views of that entry page in Google stats.


All times are GMT -6. The time now is 04:19 AM.