![]() |
How do you send traffic through a redirect URL and change the referrer?
Basically I am trying to find a way to send traffic through a URL and have the referrer shown at that URL. So let's say I have links on:
site1.com site2.com site3.com And the links point to othersite.com/link1, which redirects to finalsite.com. I need finalsite.com's referrer stats to say that all the traffic came from othersite.com/link1 and not a bunch of traffic sources. Usually when you send traffic through a redirect like that the referrers will show up as the original sources. |
Pretty sure it isn't possible unless you pipe everything through othersite.com/link1 and even then the url from before can be passed on.
Trying to pull a dodgy? |
Only way I know of is if the page on othersite.com/link1 has a meta refresh tag like
<meta http-equiv="refresh" content="0;url=http://finalsite.com/" /> but that has its own issues. |
Quote:
Not trying to pull anything slick at all, I just want to make sure my statistics are laid out very simple and not showing referrers from all over the place. Quote:
Another example would be if you wanted to skim traffic coming to your site from your trade1 to your trade2 (not what I'm trying to do), the referrer for trade2's stats will usually show as trade1 and not YOUR domain, so you are losing credit for sending trade2 traffic. Is it an on-page time problem? The redirect needs to happen slower in order to plant the correct referrer URL? Or is it a problem where the surfer needs to click something in order for the referrer to come from that URL? Maybe I'll just have to run some tests. |
How do you send traffic through a redirect URL and change the referrer?
It's called hypertext preprocessor. ~ |
The referer will be correct every time. The 0 or any other number before the URL inserts the delay before the automatic redirect so with a 0 there is very little if any delay. The acccuracy of the redirect is the same with any delay. The surfer does not need to click anything. One of the issues is the browser back button is not as functional with a short or no delay.
|
Quote:
|
Quote:
|
Quote:
Quote:
|
Quote:
|
Use the meta refresh... Helps to filter out some bots as well..
|
PHP Code:
|
will php redirect work ?? i never tried it before
|
javascript
|
Double META-refresh will clean the referer. I think you have to set the META-redirect to 5 seconds to make the new page the referer.
|
Code:
<?php $url = urldecode($_REQUEST[url]);?> |
Quote:
Quote:
Quote:
Final code I'm going with for the redirect page: PHP Code:
|
Quote:
Not that it makes any difference really, but if you're going to hard code the url in the php, you might as well take all of the php out and put the url in the location directly. Either way works though. :upsidedow |
All times are GMT -7. The time now is 12:37 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123