Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2006
    Posts
    18
    Plugin Contributions
    0

    Site statistics/hits/counters/whos online

    I have noticed that when I view my own store and the different pages that by me accessing this whether it be via the admin section/whos online etc that my own access gets added to the statitics in the admin section and counters of product viewed. Is there anyway to get these sections to exclude any of my own visits (ie. to exclude my own IP address from the reports?)? As I am trying to gauge the real number of hits to my store and each of my products.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Site statistics/hits/counters/whos online

    You would need to re-write the whos_online and then you would need to change the code everytime your IP Address changes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    May 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Site statistics/hits/counters/whos online

    Thanks Linda,

    It sounds like a difficult job rewriting the whos_online. If I attempted to do this can you suggest what I need to input and whereabouts in the code this would go, as I am not to sure about this.

    Your help will be much appreciated.

    Regards

    Steve

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Site statistics/hits/counters/whos online

    Have you considered looking into the User Tracking add-on? This might give you somehthing more meaningful to look at in regard to your customer activity ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    May 2006
    Posts
    18
    Plugin Contributions
    0

    Default Re: Site statistics/hits/counters/whos online

    Linda , Please excuse my ignorance but where do I find the "User Tracking add-on" section? In the support forum, FAQs or the cart itself?

    thanks

    Steve

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Site statistics/hits/counters/whos online

    Have to do a search for it ...

    Right now the downloads are down while we are finishing the upgrade, but I thought there was a link to this on the User Tracking thread ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Site statistics/hits/counters/whos online

    This question is along the same line....

    I'd like to NOT have my access to the shopping cart skew my numbers for product views. I tried dropping an IP address check into the counters.php but that didn't produce the results I was hoping.

    The code I have is:
    $ip_test = substr($_SERVER['REMOTE_ADDR'],0,7);
    if ($ip_test <> '192.168') {
    // do something here...
    // or skip code...
    }

    This works to keep myvisites from registering admin/local access to the pages for hit counts.

    Anything that would be along these lines for Zen?

  8. #8
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Site statistics/hits/counters/whos online

    Quote Originally Posted by jwaller View Post
    I'd like to NOT have my access to the shopping cart skew my numbers for product views. I tried dropping an IP address check into the counters.php but that didn't produce the results I was hoping.
    You'll need to modify /includes/modules/pages/product_info/main_template_vars.php and put an if() statement around the bit that says....
    PHP Code:
    $sql "update " TABLE_PRODUCTS_DESCRIPTION "
            set        products_viewed = products_viewed+1
            where      products_id = '" 
    . (int)$_GET['products_id'] . "'
            and        language_id = '" 
    . (int)$_SESSION['languages_id'] . "'";

    $res $db->Execute($sql); 
    If you use other product types then you will need to do the same for the other product_info pages as well.
    Note that the product view stats are not very accurate so be careful basing decisions on them.

    Regards,
    Christian.

  9. #9
    Join Date
    Jan 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Site statistics/hits/counters/whos online

    Much thanks!

    Got the issue handled and all happyness now...

    Regards,

    Jon

  10. #10

    Default Re: Site statistics/hits/counters/whos online

    hi guys, where can i add a code from google analitycs or sitemeter.com ?
    in which fiel should i write that code? index.php, index.html ?

    please explain - wish to have a very good site statistic

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Change whos online
    By Wilkesy in forum General Questions
    Replies: 0
    Last Post: 20 May 2008, 10:26 PM
  2. Whos Online Questions
    By keystonewebworks in forum General Questions
    Replies: 2
    Last Post: 3 Mar 2008, 12:16 PM
  3. whos online
    By oxicottin in forum General Questions
    Replies: 0
    Last Post: 7 May 2007, 04:14 PM
  4. Whos Online Fuction has crashed site
    By JOKESBYPOST in forum General Questions
    Replies: 3
    Last Post: 22 Feb 2007, 09:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR