Skip to content

Commit d70d07f

Browse files
authored
Update HookDisplayHeader.php
1 parent fff5963 commit d70d07f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

classes/Hook/HookDisplayHeader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ public function run()
5454
return '';
5555
}
5656

57-
if (Configuration::get('GA_TRACK_BACKOFFICE_DISABLED') && $this->backOffice) {
58-
return '';
59-
}
60-
6157
$this->context->controller->addJs($this->module->getPathUri() . 'views/js/GoogleAnalyticActionLib.js');
6258

6359
$shops = Shop::getShops();
@@ -81,6 +77,7 @@ public function run()
8177
$this->context->smarty->assign(
8278
[
8379
'backOffice' => $this->backOffice,
80+
'trackBackOfficeDisabled' => Configuration::get('GA_TRACK_BACKOFFICE_DISABLED'),
8481
'currentShopId' => $currentShopId,
8582
'userId' => $userId,
8683
'gaAccountId' => Tools::safeOutput(Configuration::get('GA_ACCOUNT_ID')),

0 commit comments

Comments
 (0)