Marketing permission or newsletter consent from customers is recorded either during order confirmation or through customer webhooks. In case of order confirmation, the consent is received through the marketingPermission flag. These fields tell Nosto if the customer has given their GDPR compliant consent for receiving marketing emails.
Consent - Order confirmation
When a customer is placing an order for any product, the checkout page will collect the customer's consent for receiving the marketing emails as shown below,
Consent during order confirmation
When the customer selects Email me with news and offers option and confirms the order, the consent along with order information will be sent to Nosto through /order/track API in the following format,
A third approach for sending customer information to Nosto is using Page tagging. For more information, please refer Customer Information Tagging
If your store has a custom process for gathering marketing permissions or the default logic explained above doesn't fit for your store, you can override Nosto's extension to amend the behaviour. Please read more detailed instructions in our guide on Import customer data