Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

leebadham

Members
  • Content count

    9
  • Joined

  • Last visited

Profile Information

  • Real Name
    Lee Badham
  1. Here's the code I added to includes/classes/supertracker.php to distinguish bots around line 100 replace //New vistor, so record referrer, etc $refer_data = $_SERVER['HTTP_REFERER']; $refer_data = explode('?', $refer_data); $referrer=$refer_data[0]; with //New vistor, so record referrer, etc $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } $refer_data = $_SERVER['HTTP_REFERER']; $refer_data = explode('?', $refer_data); if ($spider_flag) $referrer="Bot"; else $referrer=$refer_data[0]; I'll watch the results to see what happens now. Lee
  2. Ahhhhhh BOTS I use a sitemap for google, and that would explain why we are getting so many direct hits. I'll see whether I can alter the logic to discount bots. Lee
  3. Also many of the referrer pages listed from our website are direct product pages such as http://www.bodoni.co.uk/pantonecolorbridge...uide-p-155.html No-one is ever going to keep that as a bookmark, or would type that into a browser. Lee
  4. Yep, increasing the timeout hasn't had any real effect. Since resetting the tracker data, 85% of the referrers are displayed as us. I've had a look at our web stats, and only 4% of our visitors resolve to aol.com, so I don't think that AOL users could account for this. If I test this myself, by clicking from a seperate website it all works fine. If i am already on our website and reset the data, if lists us as the referrer, which is correct. The logic in determining if a visitor is a new one looks fine so I don't understand why it isn't working. Hmmm more investigation needed. Lee
  5. I've increased the timeout to 2 hours to see whether that helps. Lee
  6. Hi, I've installed the contribution, but have got one particular problem. The problem I have is that 90% of the referrers listed are pages on my website. All my pages listed are provided by osCommerce, so they should all use application_top.php We use UltimateSEO URLs to turn the .php pages so they display as .html. I wonder whether this is the problem? Hope someone can help Lee Badham
  7. leebadham

    Seperate Pricing Per Customer v3.5

    Does this work with Register Globals turned off? Thanks Lee Badham
×