From 4e97e9966528f0b3f712dbc6d7df1a88608aa98d Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Thu, 21 Feb 2019 11:15:37 +0100 Subject: [PATCH] Fixes #1321 Prevent js errors if tracker blocked by browser plugin (ex: ublock origin) --- .../view/frontend/templates/config.phtml | 4 ++++ .../view/frontend/templates/variables/page.phtml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml index 1538221f0..0b978cf8b 100644 --- a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml +++ b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml @@ -19,6 +19,7 @@ isEnabled()) : ?> diff --git a/src/module-elasticsuite-tracker/view/frontend/templates/variables/page.phtml b/src/module-elasticsuite-tracker/view/frontend/templates/variables/page.phtml index eb6f80caf..25ea75cb5 100644 --- a/src/module-elasticsuite-tracker/view/frontend/templates/variables/page.phtml +++ b/src/module-elasticsuite-tracker/view/frontend/templates/variables/page.phtml @@ -20,9 +20,13 @@ isEnabled() && !empty($variables)) : ?>