From 37eb8894d5d4381f3fd9b791a53a32f0012b32ec Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Fri, 25 Jan 2019 14:59:31 +0000 Subject: Convert tracking and analytics functions into modules --- resources/views/layouts/default.phtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/views/layouts') diff --git a/resources/views/layouts/default.phtml b/resources/views/layouts/default.phtml index e4c018135c..236c6f3358 100644 --- a/resources/views/layouts/default.phtml +++ b/resources/views/layouts/default.phtml @@ -2,6 +2,8 @@ + + @@ -41,7 +43,7 @@ - analytics() ?> + filter(function (ModuleAnalyticsInterface $module): bool { return $module->analyticsCanShow(); })->map(function (ModuleAnalyticsInterface $module): string { return $module->analyticsSnippet($module->analyticsParameters()); })->implode('') ?> -- cgit v1.3