Open ryanmcdonnell opened 9 years ago
Thanks for reporting — this doesn't happen in my test store, but I can see it being an issue.
We do want to attribute the log out action to the customer, which I imagine was my initial motivation for including the userId
. But you're right; we don't need it inside of this block, since analytics.js will attach the userId to the track call automatically.
"Undefined index" exceptions fall under E_NOTICE which is commonly filtered out in many PHP configurations.
Stack trace points to line 23 of app/code/community/Segment/Analytics/Model/Controller/Customerloggedout.php
Does the block even need a userId set? Since the customer logged out, wouldn't the userId be non-existent?