amastellone / mail-funnel-client

Mail-Funnel, a Shopify Embedded App available in the Shopify App Store
2 stars 3 forks source link

Create Checkout Webhook to check if Sale was made after it was viewed from an Email Campaign #52

Open vaskaloidis opened 7 years ago

vaskaloidis commented 7 years ago

When a product link is clicked in an Email, we send the user first to the redirect page, then to the product itself. In the redirect page we record analytical data, and also we record a piece of data, specifying that the user clicked the link to this product in an email at some point in time.

When the use goes through checkout, we need to iterate through the products to see if the user had ever clicked a link in an email that lead him to that product. If it did, then we need to mark it down in the analytics.