While dealers say the majority of sales are still consummated in person, often in the framework of long-term relationships, the seeds of those relationships are increasingly being sown online, rather than through traditional routes like art fairs and referrals. The stakes are high: Galleries’ long-term survival may ultimately depend on building up a robust digital presence.