As a larger and larger portion of retail sales in the U.S. move online, customer service has become essential to e-commerce businesses that want to attract shoppers and keep them. E-commerce also has become critical to the profits of brick-and-mortar operations like Wal-Mart Stores Inc. and Best Buy Co. Inc.