From a98c339276d11273fd136bd28a204a1730909fbd Mon Sep 17 00:00:00 2001 From: q-- Date: Wed, 30 Apr 2014 10:14:36 +0200 Subject: [PATCH] Improve Google Analytics pattern See also #390. --- share/apps.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/apps.json b/share/apps.json index 367dda1a6..03281fada 100644 --- a/share/apps.json +++ b/share/apps.json @@ -1083,7 +1083,7 @@ "website": "google.com/analytics", "cats": [ 10 ], "html": "_gaq\\.push\\(\\['_setAccount|i\\['GoogleAnalyticsObject'\\]|ga\\.async = true", - "script": "(?:\\.google-analytics\\.com\/ga\\.js|\/urchin\\.js|\\.google-analytics\\.com\/analytics\\.js)", + "script": "^https?://[^\/]+\\.google-analytics\\.com\/(?:ga|urchin|(analytics))\\.js\\;version:\\1?Universal Analytics:", "headers": { "Set-Cookie": "__utma" }, "env": "^gaGlobal$" },