Target is partnering with Shopify as it looks for ways to drive online traffic and get back to sales growth.