A Shopify program webhook can be used to convert existing Dotdigital contacts to new customers or subscribed customers in Shopify. This is useful if you're collecting new contacts directly into Dotdigital.
If you’re using Dotdigital signup forms or Surveys, pages, and forms, you can enrol contacts who submit the form directly into a program which passes your new contacts back to Shopify.
The webhook supports the following Shopify customer fields for a newly added contact:
Email
First name
Last name
Accepts marketing
These fields use the mapping that’s defined in the Field mapping area of your Shopify connector. You must ensure that these fields are created and mapped. If they aren't, new customers aren't created.
Learn how in Map Shopify customer data to Dotdigital contact data fields.
Once your store is connected, you can find the Shopify webhook node in the program builder in the Webhooks section of the left side menu.
Learn more in Working with the program builder.
Configure your webhook
Go to Automation > Programs and create a new program or edit an existing one.
Learn more about programs in the Program builder section of the Help Centre.Drag the Shopify program webhook node onto the program builder canvas.
Select the node to access its settings.
For Accept marketing, select YES or NO.
By default, Accepts marketing is set to YES. If contacts enrolled into the program haven’t opted into your marketing communications, make sure this option is set to NO.Select APPLY.
Once you’re happy with your program, select ACTIVATE.
Once a contact reaches this node in your program, they are added as a customer or subscribed customer within your store.
Customer already exists
If a contact’s email address exists in Shopify already, it’s ignored; it isn’t added or updated.