Forums / General Questions / Google Bot (Spyder) increases Products Viewed - what to do?

Google Bot (Spyder) increases Products Viewed - what to do?

Locked

Started by bigbadbob on 18 Jul 2008, 10:27 AM · Views: 2,972

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Jul 2008, 10:27 AM
#1
bigbadbob avatar

bigbadbob

New Zenner

Join Date:
Feb 2008
Location:
by Nuremberg Germany
Posts:
52
Plugin Contributions:
0

Google Bot (Spyder) increases Products Viewed - what to do?

There must be a way to stop the Google bot from increasing my Products viewed count. I am only interested in what "real" people are looking at, not what the Bot (Spyder) is scanning to index. Of course, I love the Bot indexing all my stuff, but how can we stop it from increasing the Products Viewed Count?

Prevent Spider Sessions = true

No session number shows when the Spyder is on the site, but is still counted as a "visitor" in the products viewed.

Any ideas would be great.

18 Jul 2008, 12:33 PM
#2
kssinfo avatar

kssinfo

New Zenner

Join Date:
Apr 2008
Posts:
1
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

even i face the same thing , plz any solutions appreciated

20 Jul 2008, 11:01 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Google Bot (Spyder) increases Products Viewed - what to do?

You could try editing /includes/modules/pages/product_info/main_template_vars.php and change this:```
$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);

to this:
[B]if ($spider_flag == false) {[/B]
$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);

[B]}[/B]

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jul 2008, 5:40 AM
#4
bigbadbob avatar

bigbadbob

New Zenner

Join Date:
Feb 2008
Location:
by Nuremberg Germany
Posts:
52
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

The fix worked!! Caught the bot and waited until it was looking at a particular item. When it got done I checked the Products Viewed and it wasn't there!

Great idea, why didn't think of that? ha ha ha - You are the Code Guru, DrByte.

Thanks a million!

2 Dec 2008, 6:26 PM
#5
craftthefuture avatar

craftthefuture

New Zenner

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

Re: Google Bot (Spyder) increases Products Viewed - what to do?

I'd like to add on to your question. Are the 'products veiwed' counts including me? I haven't been able to find info on this and/or a how-to on filtering out my IP address so my reports aren't inflated....

2 Dec 2008, 7:17 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

As far as I know the 'products viewed' counts are a cumulative total of every hit to the product including spiders and yourself.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

16 Dec 2009, 4:42 PM
#7
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

Is there anyway of configuring the Products Viewed report from not including my IP address in the figures?

Saw same post in 2007 but no replies.

17 Oct 2012, 2:49 AM
#8
mybiz9999 avatar

mybiz9999

Zen Follower

Join Date:
Jul 2010
Posts:
143
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

Does the 'Product viewed' report include the views by google robot?

I mean this report,Admin-Reports-Product viewed

I got hundreds of views of each products, but zero sales.

So I think the views were made by robot, isn't it?

24 Oct 2012, 12:51 AM
#9
mybiz9999 avatar

mybiz9999

Zen Follower

Join Date:
Jul 2010
Posts:
143
Plugin Contributions:
0

Re: Google Bot (Spyder) increases Products Viewed - what to do?

Is there someone can help me?

thank you!

24 Oct 2012, 1:44 AM
#10
win8win avatar

win8win

Zen Follower

Join Date:
Apr 2012
Location:
beijing
Posts:
258
Plugin Contributions:
1

Re: Google Bot (Spyder) increases Products Viewed - what to do?

yes,what you guess is right,including robot's visit

focus on the open source for online shoping website.
my site: best shop 24h.com