{"_path":"/providers/mailchimp","_draft":false,"_partial":false,"_empty":false,"title":"Mailchimp","description":"Learn more about the Mailchimp provider integration for newsletter module.","excerpt":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Get down to business and grow sales. Engage your customers and boost your business with Mailchimp's advanced, yet easy‑to‑use marketing platform."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can learn more about Mailchimp "},{"type":"element","tag":"a","props":{"href":"https://mailchimp.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"here"}]}]},{"type":"element","tag":"h2","props":{"id":"usage"},"children":[{"type":"text","value":"Usage"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"In order to have Mailchimp as your newsletter provider set the provider option in the configuration options of the "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nuxt-newsletter"}]},{"type":"text","value":" module to 'mailchimp' like following:"}]},{"type":"element","tag":"code","props":{"code":"export default defineNuxtConfig({\n modules: [\n 'nuxt-newsletter'\n ],\n newsletter: {\n mailchimp: {\n apiKey: process.env.MAILCHIMP_API_KEY,\n serverPrefix: process.env.MAILCHIMP_SERVER_PREFIX,\n audienceId: process.env.MAILCHIMP_AUDIENCE_ID,\n component: true // optional\n }\n }\n})\n","filename":"nuxt.config.js|ts","language":"ts"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"text","value":"export default defineNuxtConfig({\n modules: [\n 'nuxt-newsletter'\n ],\n newsletter: {\n mailchimp: {\n apiKey: process.env.MAILCHIMP_API_KEY,\n serverPrefix: process.env.MAILCHIMP_SERVER_PREFIX,\n audienceId: process.env.MAILCHIMP_AUDIENCE_ID,\n component: true // optional\n }\n }\n})\n"}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can then use the built in "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"NewsletterForm.vue"}]},{"type":"text","value":" component or "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"useNewsletterSubscribe"}]},{"type":"text","value":" composable to handle adding new email to subscribers list."}]}]},"body":{"type":"root","children":[{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"Get down to business and grow sales. Engage your customers and boost your business with Mailchimp's advanced, yet easy‑to‑use marketing platform."}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can learn more about Mailchimp "},{"type":"element","tag":"a","props":{"href":"https://mailchimp.com/","rel":["nofollow","noopener","noreferrer"],"target":"_blank"},"children":[{"type":"text","value":"here"}]}]},{"type":"element","tag":"h2","props":{"id":"usage"},"children":[{"type":"text","value":"Usage"}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"In order to have Mailchimp as your newsletter provider set the provider option in the configuration options of the "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"nuxt-newsletter"}]},{"type":"text","value":" module to 'mailchimp' like following:"}]},{"type":"element","tag":"code","props":{"code":"export default defineNuxtConfig({\n modules: [\n 'nuxt-newsletter'\n ],\n newsletter: {\n mailchimp: {\n apiKey: process.env.MAILCHIMP_API_KEY,\n serverPrefix: process.env.MAILCHIMP_SERVER_PREFIX,\n audienceId: process.env.MAILCHIMP_AUDIENCE_ID,\n component: true // optional\n }\n }\n})\n","filename":"nuxt.config.js|ts","language":"ts"},"children":[{"type":"element","tag":"pre","props":{},"children":[{"type":"element","tag":"code","props":{"__ignoreMap":""},"children":[{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-26010d"},"children":[{"type":"text","value":"export"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-26010d"},"children":[{"type":"text","value":"default"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-fa5647"},"children":[{"type":"text","value":"defineNuxtConfig"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"({"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"modules"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": ["}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-dca1e0"},"children":[{"type":"text","value":"'nuxt-newsletter'"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" ],"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"newsletter"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": {"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"mailchimp"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": {"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"apiKey"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": "}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"process"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"env"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"MAILCHIMP_API_KEY"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":","}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"serverPrefix"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": "}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"process"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"env"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"MAILCHIMP_SERVER_PREFIX"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":","}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"audienceId"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": "}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"process"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-177029"},"children":[{"type":"text","value":"env"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"."}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"MAILCHIMP_AUDIENCE_ID"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":","}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-7c615f"},"children":[{"type":"text","value":"component"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":": "}]},{"type":"element","tag":"span","props":{"class":"ct-3d5959"},"children":[{"type":"text","value":"true"}]},{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" "}]},{"type":"element","tag":"span","props":{"class":"ct-b62a9b"},"children":[{"type":"text","value":"// optional"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" }"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":" }"}]}]},{"type":"element","tag":"span","props":{"class":"line"},"children":[{"type":"element","tag":"span","props":{"class":"ct-51125f"},"children":[{"type":"text","value":"})"}]}]}]}]}]},{"type":"element","tag":"p","props":{},"children":[{"type":"text","value":"You can then use the built in "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"NewsletterForm.vue"}]},{"type":"text","value":" component or "},{"type":"element","tag":"code-inline","props":{},"children":[{"type":"text","value":"useNewsletterSubscribe"}]},{"type":"text","value":" composable to handle adding new email to subscribers list."}]},{"type":"element","tag":"style","children":[{"type":"text","value":".ct-b62a9b{color:#7F848E}.ct-3d5959{color:#D19A66}.ct-177029{color:#E5C07B}.ct-dca1e0{color:#98C379}.ct-7c615f{color:#E06C75}.ct-fa5647{color:#61AFEF}.ct-51125f{color:#ABB2BF}.ct-26010d{color:#C678DD}"}]}],"toc":{"title":"","searchDepth":2,"depth":2,"links":[{"id":"usage","depth":2,"text":"Usage"}]}},"_type":"markdown","_id":"content:3.providers:2.mailchimp.md","_source":"content","_file":"3.providers/2.mailchimp.md","_extension":"md"}