From cecdfd10dca788363441346334c703a41df963e2 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 27 Mar 2017 15:37:02 -0700 Subject: [PATCH] Don't exit early if custom head or body JS is defined https://github.com/virtualmin/virtualmin-google-analytics/issues/1 --- Virtualmin/GoogleAnalytics.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Virtualmin/GoogleAnalytics.pm b/Virtualmin/GoogleAnalytics.pm index 683c688..495b714 100644 --- a/Virtualmin/GoogleAnalytics.pm +++ b/Virtualmin/GoogleAnalytics.pm @@ -31,7 +31,7 @@ sub handler { my $bodyjs_file = $f->r->dir_config("BodyJavascriptFile"); my $ssl = $f->r->dir_config("SSL"); if (!$account && !$mybloglog && !$quantcast && !$clicky && - !$woopra && !$piwik) { + !$woopra && !$piwik && !$headjs_file && !$bodyjs_file) { # No account set yet, so nothing to do! return Apache2::Const::DECLINED; }