Skip to content

Commit 189a320

Browse files
authored
Merge pull request #1364 from algolia/update/MAGE-655
Send logged in user token for click and conversion
2 parents 61226c8 + 8feb35c commit 189a320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Observer/Insights/CustomerLogin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function execute(Observer $observer)
3131
/** @var Customer $customer */
3232
$customer = $observer->getEvent()->getCustomer();
3333

34-
if ($this->insightsHelper->getPersonalizationHelper()->isPersoEnabled($customer->getStoreId())) {
34+
if ($this->insightsHelper->getConfigHelper()->isClickConversionAnalyticsEnabled($customer->getStoreId()) || $this->insightsHelper->getPersonalizationHelper()->isPersoEnabled($customer->getStoreId())) {
3535
$this->insightsHelper->setUserToken($customer);
3636
}
3737
}

0 commit comments

Comments
 (0)