Skip to main content

Sync customer email subscriptions between Shopify and Mautic

Workflow preview

Workflow preview
100%
Sync customer email subscriptions between Shopify and Mautic preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Having a seamless flow of customer data between your online store and your marketing platform is essential. By keeping your systems synchronized, you can ensure that your marketing campaigns are ac...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.shopifytrigger, n8n-nodes-base.if, n8n-nodes-base.noop, n8n-nodes-base.mautic, n8n-nodes-base.webhook, n8n-nodes-base.crypto, n8n-nodes-base.graphql, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Sascha.

Original n8n.io source

1.1 Workflow description

Title
Sync customer email subscriptions between Shopify and Mautic
Workflow name
Sync customer email subscriptions between Shopify and Mautic

Having a seamless flow of customer data between your online store and your marketing platform is essential.

By keeping your systems synchronized, you can ensure that your marketing campaigns are accurately targeted and effective.

The integration between Shopify, a leading e-commerce platform, and Mautic, an open-source marketing automation system, is not available out-of-the-box.

However, with a n8n workflow you can bridge this gap with.

This template will help you:

  1. enhance accuracy in marketing lists by ensuring that subscription changes in Shopify are instantly updated in Mautic.
  2. improve compliance with data protection laws by respecting users' subscription preferences across platforms
  3. achieve integration without the need for additional plugins or software, minimizing complexity and potential points of failure.

This template will demonstrate the follwing concepts in n8n:

  • working with Shopify in n8n
  • control flow with the IF node
  • use Webhooks
  • validate Webhooks with the Crypto node
  • use the GraphQL node to call the Shopify Admin API

The template consists of two parts:

  1. Sync Email Subscriptions from Shopify to Mautic
  2. Sync Email Subscriptions from Mautic to Shopify

How to get started?

  1. Create a custom app in Shopify get the credentials needed to connect n8n to Shopify This is needed for the Shopify Trigger
  2. Create Shopify Acces Token API credentials n n8n for the Shopify trigger node
  3. Create Header Auth credentials: Use X-Shopify-Access-Token as the name and the Acces-Token from the Shopify App you created as the value. The Header Auth is neccessary for the GraphQL nodes.
  4. Enable the Mautic API under Configuration/API Settings, After the settings are saved you will have an additional entry in your settings menu to create API credentials for n8n
  5. Create Mautic credentials in n8n

Please make sure to read the notes in the template.

For a detailed explanation please check the corresponding video: https://youtu.be/x63rrh_yJzI

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Shopify Trigger

Type / Role
n8n-nodes-base.shopifyTrigger - shopifyTrigger
Config choices
Version 1

Block 2 - Accepts Marketing?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 3 - Accepts Marketing?1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 4 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 5 - Add to confirmed segment

Type / Role
n8n-nodes-base.mautic - mautic
Config choices
Version 1

Block 6 - Remove from confirmed segment

Type / Role
n8n-nodes-base.mautic - mautic
Config choices
Version 1

Block 7 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1.1

Block 8 - Crypto

Type / Role
n8n-nodes-base.crypto - crypto
Config choices
Version 1

Block 9 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 10 - No Operation, do nothing1

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 11 - GraphQL

Type / Role
n8n-nodes-base.graphql - graphql
Config choices
Version 1

Block 12 - Marketing Consent - subscribed

Type / Role
n8n-nodes-base.graphql - graphql
Config choices
Version 1

Block 13 - Marketing Consent - unsubscribed

Type / Role
n8n-nodes-base.graphql - graphql
Config choices
Version 1

Block 14 - Mautic - Accepts Marketing?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 15 - Customer exists?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 16 - No Operation, do nothing2

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Set Shopify Subdomain

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.2

Block 22 - Search for Contact by Email

Type / Role
n8n-nodes-base.mautic - mautic
Config choices
Version 1

Block 23 - Contact exists?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 24 - Create a new contact

Type / Role
n8n-nodes-base.mautic - mautic
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Sync customer email subscriptions between Shopify and Mautic
Complexity advanced
Nodes 26
Categories Social Media
Author Sascha
Published 16 Feb 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2099/2099.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Sync customer email subscriptions between Shopify and Mautic do?

Having a seamless flow of customer data between your online store and your marketing platform is essential. By keeping your systems synchronized, you can ensure that your marketing campaigns are ac...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.