Delayed redirect without clearing referral?

Status
Not open for further replies.

projectv3

New member
Mar 6, 2007
506
2
0
just curious if anyone could tell me how to do a time delayed refresh without clearing the referral header? currently i'm using a meta refresh but to my knowledge it clears the referral data no?
 


Depends, if it's for like 3 seconds or more, it will clear the referer. Frankly why are you so worried?

Capture the referer before the redirect then you don't have to worry about it.
 
Code:
<div style="display:none"><form name="ref"></form></div>
<script>setTimeout('document.ref.submit()',5000);</script>
 
The script I provided above will only keep the page url you are on as the referrer. If you want to keep the referrer from the original source use the PHP header directive instead

Code:
<?php  header('Location: url_here  ?>
 
Thanks for the reply guys

My goal is to have a delayed redirect of about 4-5sec. ikonic thanks for the code, i'm not too sure how to implement it though (sorry i'm terrible at coding lol)

My strategy is:

ppc -> 4-5sec redirect landing page -> offer page (which requires the referral from ppc, not the redirected landing page url)

I'm guessing i have to put something in the "redirect landing page" to pass it onto the offer page?

Also on the redirect page should i be linking directly with the url, or will using a php?offer=xxx type linking structure affect the referral as well?

thanks again!
 
Status
Not open for further replies.