- Issue created by @newaytech
Client needs to understand if the customer is new or returning from a Guest / Logged Account Drupal perspective.
Simply added a line of code to line 63 in Event/Commerce/PurchaseEvent - but would like to understand how to do this without hacking the module...
$result = [
// Add the ability to pass whether a user is logged in or not to the purchase event as a User dimension
'is_guest'=> $order->getCustomer()->isAnonymous(),
Maybe worth adding the code as is to the module - or document how to override / extend the PurchaseEvent?
Active
1.0
Code