The integration between Sky Pilot and Mailchimp provides a powerful tool to improve your digital product sales and delivery. The integration includes two key pieces of data: 


 1) Product tags to track when customers make an order that includes a digital item (at product or variant level)


 2) Events to track when customers have downloaded or viewed their digital item 'order_delivered'


 This will allow you to create specific campaigns to notify customers when they have made an order and to remind them to view their content. 


1. Find your API Key and Region in Mailchimp

2. Connect in Sky Pilot

If you have multiple audiences, activate only the ones you need

3. Disable Sky Pilot emails

4. Add a download link to your Mailchimp emails

5. Add this code to allow customers to access their order 


{% assign with_digital_files = false %}

{% for line_item in line_items %}   {% assign variant = line_item.variant %}   {% assign product = variant.product %}   {% assign variant_tag = "variant-<variant-id>-has-digital-downloads" | replace: "<variant-id>", variant.id %}   {% if product.tags contains variant_tag %}     {% assign with_digital_files = true %}   {% endif %} {% endfor %}
{% if with_digital_files %}   <a href="http://{{shop.domain}}/apps/downloads/orders/view/{{email}}/{{id}}" class="btn">     Download My Purchases   </a> {% endif %}