Connect mailchimp to wix for ecommerce and remarketing purposes

Hi guys!

I have a problem I’m unable to find a solution for online. Here’s the thing you can connect mailchimp to wix but that’s just for emailing; meaning you can’t take advante or make use of other tool like remarketing or ecommerce tools…

I believe I found where the base of the problem is…

This code needs to be added to Wix under ‘Tracking and Analytics’

](id="mcjs">!function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/318ab16abcda3058945d87ad4/d8903b4cb636b16ffb4f094d2.js");

)

And this is where myself personally struggle. I found out that that code is invalid as it’s not an html/metatag code…as far as I could understood

Could someone explain me or tell me how to reformat the code? I have been searching online for hours and I can’t do it :frowning:

Thanks!

If you don’t want to use the already provided integration between Wix and Mailchimp, then you really are better suited going through Mailchimp own support team and asking them how to integrate it with Wix.

You can look at using Mailchimp through html code in a iFrame on your page.
https://mailchimp.com/help/add-a-signup-form-to-your-website/
https://mailchimp.com/help/add-a-pop-up-signup-form-to-your-website/

Your best option though would be to expose your site to the Mailchimp API.
https://mailchimp.com/help/about-signup-form-options/#Form_API
https://mailchimp.com/developer/

You can use either Wix Fetch or Wix HTTP Functions.

https://www.wix.com/corvid/reference/wix-fetch.html
https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api

https://www.wix.com/corvid/reference/wix-http-functions.html
https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions

Wix expose site example.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient