Skip to content

Commit c55abc8

Browse files
committed
Added a check on the active shop array length
1 parent cdb4afb commit c55abc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ps_googleanalytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function hookdisplayHeader($params, $back_office = false)
269269
$user_id = (int)$this->context->customer->id;
270270
}
271271

272-
if ((int)Configuration::get('GA_CROSSDOMAIN_ENABLED') && $is_multistore_active) {
272+
if ((int)Configuration::get('GA_CROSSDOMAIN_ENABLED') && $is_multistore_active && sizeof($shops) > 1) {
273273
$ga_crossdomain_enabled = true;
274274
}
275275

0 commit comments

Comments
 (0)