Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-06 06:37:42 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-06 06:37:42 +0400
commit693c27f8b76b93199154a1e77c0e6c13c3189e26 (patch)
tree6cdd111129ab6dff0356209b6b2b6c5be4023cbe /core
parente847725313534a65d5c8195601ada2bc66eda395 (diff)
Ignore new google and facebook bots http://forum.piwik.org/read.php?2,106051
Diffstat (limited to 'core')
-rw-r--r--core/Tracker/VisitExcluded.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Tracker/VisitExcluded.php b/core/Tracker/VisitExcluded.php
index 53cca8f7ab..e9af532eea 100644
--- a/core/Tracker/VisitExcluded.php
+++ b/core/Tracker/VisitExcluded.php
@@ -143,6 +143,8 @@ class VisitExcluded
&& (strpos($this->userAgent, 'Googlebot') !== false // Googlebot
|| strpos($this->userAgent, 'Google Web Preview') !== false // Google Instant
|| strpos($this->userAgent, 'Google Page Speed Insights') !== false // #4049
+ || strpos($this->userAgent, 'Google (+https://developers.google.com') !== false // Google Snippet https://developers.google.com/+/web/snippet/
+ || strpos($this->userAgent, 'facebookexternalhit') !== false // http://www.facebook.com/externalhit_uatext.php
|| strpos($this->userAgent, 'bingbot') !== false // Bingbot
|| strpos($this->userAgent, 'YottaaMonitor') !== false // Yottaa
|| strpos($this->userAgent, 'CloudFlare') !== false // CloudFlare-AlwaysOnline