add SPA support to customer.io