Re: Checkout - check for marketing permission

Checkout - check for marketing permission

PureTime
Explorer
69 2 24

Shopify does not comply with Danish rules when it comes to marketing/newsletter sign-up.

I need the customer to complete the checkout before the newsletter sign-up event is actually stored.

 

Out of the box Shopify creates the customer in checkout and also saves the newsletter sign-up done in checkout even if the customer does not complete the checkout.

So I need a flow to check if the user does not complete the checkout but did opt-in to marketing.
In this case I need to unsubscribe them from marketing.
UNLESS if they were previously subscribed to marketing then I should not unsubscribe them.

I can't find a way to do this - probably because I'm not familiar with Flow.

I can see the Abandoned cart condition and I can find the condition if the customer accepts marketing, but I can't find any way to check if they already accepted marketing before they began checkout - and I also can't find the action to unsubscribe them.

Can anyone help?

Reply 1 (1)

paul_n
Shopify Staff
1336 151 307

I don't think there is a way in the API to know if they already had consent before it was updated. To do that, you could store the first consent when it happens to a metafield. You would also need to clear that if they ever revoke their consent. The app Flow helper has a "Customer unsubscribed from email marketing" trigger that may be helpful there

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.