Zen Cart Logo
Forums / General Questions / Site statistics/hits/counters/whos online

Site statistics/hits/counters/whos online

Locked

Views: 6,225

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
13 May 2006, 11:14 PM
#1
powerzone avatar

powerzone

New Zenner

Join Date:
May 2006
Posts:
12
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.

14 May 2006, 1:52 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

14 May 2006, 11:15 AM
#3
powerzone avatar

powerzone

New Zenner

Join Date:
May 2006
Posts:
12
Plugin Contributions:
0

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

14 May 2006, 12:45 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

14 May 2006, 10:13 PM
#5
powerzone avatar

powerzone

New Zenner

Join Date:
May 2006
Posts:
12
Plugin Contributions:
0

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

15 May 2006, 1:55 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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 ...

27 Jan 2008, 12:05 AM
#7
jwaller avatar

jwaller

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

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?

27 Jan 2008, 12:23 AM
#8
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Site statistics/hits/counters/whos online

jwaller:

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....

$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.
27 Jan 2008, 12:45 AM
#9
jwaller avatar

jwaller

New Zenner

Join Date:
Jan 2008
Posts:
3
Plugin Contributions:
0

Re: Site statistics/hits/counters/whos online

Much thanks!

Got the issue handled and all happyness now...

Regards,

Jon

3 Feb 2008, 3:38 PM
#10
co13 avatar

co13

New Zenner

Join Date:
Feb 2008
Posts:
7
Plugin Contributions:
0

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:oops:

11 Mar 2009, 3:42 PM
#11
fastcar avatar

fastcar

New Zenner

Join Date:
Dec 2007
Posts:
28
Plugin Contributions:
0

Re: Site statistics/hits/counters/whos online

Could I see the finished code for how this turned out? Would really like to implement this change myself.