Forum Moderators: phranque

Message Too Old, No Replies

Display Content Based on Referrer or Source

Can you display different content based on visitor referrer?

         

DopeR

8:48 pm on Aug 4, 2006 (gmt 0)

10+ Year Member



Google Paid has a problem with one of the products that i have on my site. I get good organic traffic for this item so i do not want to take the listing down just because Google paid dosnt like it. I wanted to hide this product to the Google Paid visitors by source or referrer. Is there a way to do this?

BTW I do not want a solution that includes sending a user to different versions of the same site. Here is an example of what i CANT use:

<script language="JavaScript">
<!--
if (document.referrer.indexOf('url1.com') > -1)
location.href = 'index1.html';
else if (document.referrer.indexOf('url2.com') > -1)
location.href = 'index2.html';
else
location.href = 'index0.html';
//-->
</script>

I need a solution that allows me to change the content on the page its self.

DopeR

[edited by: DopeR at 8:54 pm (utc) on Aug. 4, 2006]