From 54ed148c8708b3cb3e8b0d34170f539ff48252cf Mon Sep 17 00:00:00 2001 From: ethicalhack3r Date: Fri, 14 Oct 2016 14:48:48 +0200 Subject: [PATCH] Add passive detection of google-universal-analytics --- lib/common/collections/wp_plugins/detectable.rb | 4 ++++ spec/lib/common/collections/wp_plugins/detectable_spec.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/lib/common/collections/wp_plugins/detectable.rb b/lib/common/collections/wp_plugins/detectable.rb index df9cb5cd..3f271610 100644 --- a/lib/common/collections/wp_plugins/detectable.rb +++ b/lib/common/collections/wp_plugins/detectable.rb @@ -66,6 +66,10 @@ class WpPlugins < WpItems wp_plugins.add('wordpress-seo', version: $1) end + if body =~ /' + expected.add('google-universal-analytics', version: '2.4.2') + end + end end end