{
  "slug": "combine-mailchimp-with-shopify-tags",
  "title": "Combine mailchimp with shopify customer tags",
  "metaDescription": "Combine mailchimp with shopify customer tags. Shopify customer tags and Mailchimp list membership for. Merge Mailchimp and Shopify in one Bubble.io.",
  "headline": "E-commerce email segments from shop tags",
  "category": "aggregation",
  "categoryLabel": "Multi-API Aggregation",
  "urgency": 8,
  "clientPlatform": "Bubble.io",
  "upstreamServices": [
    "Mailchimp",
    "Shopify"
  ],
  "searchIntentQuery": "combine mailchimp with shopify customer tags",
  "directAnswerSummary": "Shopify customer tags and Mailchimp list membership for segmentation UI. For \"combine mailchimp with shopify customer tags\", store MAILCHIMP_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Bubble.io hit only https://realcomposer.com/v1/workspace/combine-mailchimp-with-shopify-tags with an rc_live_ client token.",
  "problem": {
    "title": "Waterfall latency from multiple Mailchimp and Shopify requests",
    "explanation": "Bubble.io widgets often await Mailchimp and Shopify sequentially, multiplying TLS handshakes on cellular networks and amplifying failure rates.",
    "risks": [
      "Race conditions between parallel manual fetches",
      "Higher mobile data usage from redundant JSON",
      "Timeouts when any upstream exceeds cellular RTT"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Add MAILCHIMP_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Set headers, mapping, and cache TTL",
      "description": "Configure headersTemplate to inject vault secrets, target https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10, and Add output mapping fields that mirror the JSON contract your screen already expects."
    },
    {
      "stepNumber": 3,
      "title": "Connect Bubble API Connector",
      "description": "Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.",
      "codeSnippet": "API Connector GET https://realcomposer.com/v1/workspace/combine-mailchimp-with-shopify-tags\nPrivate header: Authorization Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Combine mailchimp with shopify customer tags",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "mailchimp",
        "upstreamUrlTemplate": "https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Basic {{secrets.MAILCHIMP_BASIC_AUTH}}"
        },
        "timeoutMs": 3000
      },
      {
        "stepKey": "shopify",
        "upstreamUrlTemplate": "https://{{secrets.SHOPIFY_STORE}}.myshopify.com/admin/api/2026-10/products.json?limit=5",
        "httpMethod": "GET",
        "headersTemplate": {
          "X-Shopify-Access-Token": "{{secrets.SHOPIFY_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "mailchimp.memberId",
          "sourcePath": "members.0.id",
          "type": "string",
          "sourceStep": "mailchimp"
        },
        {
          "targetPath": "mailchimp.email",
          "sourcePath": "members.0.email_address",
          "type": "string",
          "sourceStep": "mailchimp"
        },
        {
          "targetPath": "shopify.productId",
          "sourcePath": "products.0.id",
          "type": "number",
          "sourceStep": "shopify"
        },
        {
          "targetPath": "shopify.title",
          "sourcePath": "products.0.title",
          "type": "string",
          "sourceStep": "shopify"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_combine-",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "combine-mailchimp-with-shopify-tags"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "mailchimp_memberId": "sample",
    "mailchimp_email": "sample",
    "shopify_productId": "sample",
    "shopify_title": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/combine-mailchimp-with-shopify-tags\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Mailchimp credential belongs in the vault for this pipeline?",
      "answer": "Store MAILCHIMP_BASIC_AUTH, SHOPIFY_ACCESS_TOKEN for combine-mailchimp-with-shopify-tags. Bubble.io never sees decrypted values."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "combine-mailchimp-with-shopify-tags POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "Can I restrict which domains call this pipeline?",
      "answer": "Rotate vault secrets for combine-mailchimp-with-shopify-tags anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "merge-airtable-and-shopify",
    "combine-mailchimp-with-hubspot-contacts"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/combine-mailchimp-with-shopify-tags",
    "markdown": "https://realcomposer.com/recipes/combine-mailchimp-with-shopify-tags.md",
    "json": "https://realcomposer.com/recipes/combine-mailchimp-with-shopify-tags.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=combine-mailchimp-with-shopify-tags&via=agent"
  }
}