# Intergating Mautic with WIX

**URL:** <https://forum.mautic.org/t/intergating-mautic-with-wix/7641>\
**Category:** Product Support\
**Created:** [February 23, 2017, 9:26am UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641 "2017-02-23T09:26:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Charles](https://forum.mautic.org/u/Charles)\
**Post date:** [February 23, 2017, 9:26am UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/1 "2017-02-23T09:26:46Z")

</div>

Has anyone used WIX to front end a Mautic installation? I would really appreciate some help integrating a WIX based squeeze page or landing page to trigger a Mautic campaign.

---

<div class="post-metadata">

**Author:** ![Charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@Charles](https://forum.mautic.org/u/Charles)\
**Post date:** [February 23, 2017, 9:26am UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/2 "2017-02-23T09:26:46Z")

</div>

Has anyone used WIX to front end a Mautic installation? I would really appreciate some help integrating a WIX based squeeze page or landing page to trigger a Mautic campaign.

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 3:58pm UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/3 "2017-02-23T15:58:59Z")

</div>

For the most comprehensive tracking, you should embed two scripts on your Wix page.

1. Mautic tracking code - “3rd party website tracking code” found in Configuration \> Landing Page Settings, preferably before the closing tag in your Wix template
2. Form embed code - Create a Mautic Form, select that Form, then click “Automatic” in the teal Form HTML box, copy and paste the “Via Javascript (recommended)” code to the place on your Wix page where you’d like the form to appear.

The reason why you want to choose “Automatic” instead of “Manual Copy” is so the form will reflect the changes automatically when you modify the fields using the form editor inside the Mautic dashboard.

---

<div class="post-metadata">

**Author:** ![philippe07410](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/philippe07410/32/1999_2.png) [@philippe07410](https://forum.mautic.org/u/philippe07410)\
**Post date:** [March 14, 2020, 9:12pm UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/4 "2020-03-14T21:12:01Z")

</div>

No luck on Wix with Mautic Form embed code Javascript in Form HTML box. No visible error on debugger console.  
Did anyone successfully integrate a Mautic form in Wix?

Revision: I got it to work via a Mautic landing page hosting the form, paste the webpage address in “Embed a Site” on Wix side and turn off the X-Frame-Options “sameorigin” on http server side.

---

<div class="post-metadata">

**Author:** ![harry5](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/harry5/32/902_2.png) [@harry5](https://forum.mautic.org/u/harry5)\
**Post date:** [July 27, 2022, 11:54am UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/5 "2022-07-27T11:54:35Z")

</div>

I just came across this old post. If you want to embed the Javascript form in Wix you can use the embed HTML box and add the javascript code. However, to make this work you must add before the javascript.  
e.g

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [June 27, 2024, 2:33am UTC](https://forum.mautic.org/t/intergating-mautic-with-wix/7641/6 "2024-06-27T02:33:03Z")

</div>

I read [this documentation on X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options).

So the X-Frame-Options needs to be declared on the server that hosts the Wix site, right?

The `sameorigin` directive requires that the page be loaded “in a frame as long as the site including it in a frame is the same as the one serving the page.” If the landing page is created in Mautic, then it’s hosted on the same server as Mautic, right? How then, could it work with the `sameorigin` directive?

EP
