Align magnews status with the Shopify email marketing state
You can align Shopify's marketing email consent with the contact status on MagNews at multiple levels:
- By adding an import filter such as Email - Marketing state equal to "SUBSCRIBED," you ensure that only contacts with marketing consent enabled on Shopify are imported into MagNews.
- Additionally, if you enable the "Unsubscribe existing contacts discarded on import" flag, you ensure that any active contacts on MagNews previously imported from Shopify are unsubscribed if their consent status changes on Shopify.
Alternatively, you can choose not to apply any import filter based on marketing consent and instead import all contacts into MagNews, setting their status to unsubscribed. This allows you to manage these contacts differently and avoid sending them bulk campaigns. To do this:
- Enable the "Unsubscribe contacts who have not agreed to receive marketing emails" flag and specify a custom unsubscription cause, such as "Shopify - no marketing consent."
You can also map Shopify's Email marketing consent field to a custom single-selection field in MagNews. This creates a "copy" of the consent value in MagNews, regardless of the contact's current status.
For added security, you can activate all of the above settings to create a cascading layer of protections.
Updating Shopify consent when contacts unsubscribe in magnews
In the previous section, we explored how to reflect Shopify's newsletter subscription status in magnews by syncing it with the contact's status on the platform.
Once a contact is subscribed in magnews and receives emails, they can click on the magnews unsubscribe link. This action updates their status in magnews from "Subscribed" to "Unsubscribed." However, if this change is not also immediately reflected in Shopify, it can create issues. Specifically, during the next Shopify -> MagNews synchronization, Shopify may overwrite the contact's status, marking them as "Subscribed" again.
To prevent this, it's crucial to include the Unsubscribe from Shopify action in your unsubscribe workflow. This step updates the contact's subscription status in Shopify to "Unsubscribed." By doing so, subsequent synchronizations between Shopify and MagNews will respect the updated status, ensuring the contact remains unsubscribed.
To do this:
- go to the Unsubscription form (Contacts > Shopify database > Contacts settings > Service page flows)
- from the Result tab, click on the edit Form page and from the designer click on the Next button edit.
You will find an ordered list of button actions, including the Unsubscribe contact action, which changes the contact's status from Subscribed to Unsubscribed. Immediately after this action and before the Redirect page, add a new button action of type Shopify: Unsubscribe from mailing lists. Configure it to specify which store(s) you want to disable marketing consent for the customer corresponding to the current contact, and save the button.
This way, when the button is clicked, the customer will be unsubscribed both in MagNews and Shopify.