{"id":87316,"date":"2020-09-25T15:58:44","date_gmt":"2020-09-25T19:58:44","guid":{"rendered":"https:\/\/optinmonster.com\/?post_type=optinmonster_docs&#038;p=87316"},"modified":"2025-08-23T08:15:57","modified_gmt":"2025-08-23T12:15:57","slug":"how-to-integrate-optinmonster-with-wix","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/how-to-integrate-optinmonster-with-wix\/","title":{"rendered":"How to Integrate OptinMonster with Wix"},"content":{"rendered":"\n<p>OptinMonster works on any website where you can add our embed code, including Wix.<\/p>\n\n\n\n<p>In this article, you&#8217;ll learn how to integrate OptinMonster with your Wix site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before You Start<\/h2>\n\n\n\n<p>Here are some things to know before you begin:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You will need a premium Wix account to fully implement OptinMonster on your site.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Embed Site-Wide<\/h2>\n\n\n\n<p>When you <a href=\"https:\/\/optinmonster.com\/docs\/creating-your-first-optin\/\" target=\"_blank\" rel=\"noopener\" title=\"\">create a campaign<\/a> in OptinMonster, you&#8217;ll want to embed it on your Wix site.<\/p>\n\n\n\n<p>To add the embed code to your entire site, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the OptinMonster campaign builder, navigate to the&nbsp;<strong>Publish<\/strong> view and copy the Global Embed code.<br><img decoding=\"async\" width=\"620\" height=\"342\" class=\"alignnone size-full wp-image-151149\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code.jpg\" alt=\"Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code.jpg 620w, https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code-300x165.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/li>\n\n\n\n<li>Next, log into your Wix account and <a href=\"https:\/\/support.wix.com\/en\/article\/embedding-custom-code-to-your-site\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">follow their guide to adding custom code<\/a>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Embed on Specific Page<\/h2>\n\n\n\n<p>When adding an <a href=\"https:\/\/optinmonster.com\/docs\/how-to-create-an-after-post-or-in-line-optin\/\" title=\"\">Inline campaign<\/a> you will need to place the embed code on the specific page within the content where it should visually appear. You can also use this method to add a specific campaign (of any type) to just a single page of your site.<\/p>\n\n\n\n<p>To add the embed code to a specific page of your site, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the OptinMonster campaign builder, navigate to the&nbsp;<strong>Publish<\/strong> view and copy the Campaign Embed code.<br><img decoding=\"async\" width=\"620\" height=\"342\" class=\"alignnone size-full wp-image-151149\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code.jpg\" alt=\"Copy the embed code for your OptinMonster campaign from the Publish screen of the campaign builder.\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code.jpg 620w, https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/publish-screen-copy-embed-code-300x165.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/li>\n\n\n\n<li>Next, log into your Wix site and <a href=\"https:\/\/support.wix.com\/en\/article\/wix-editor-using-iframes-to-display-visible-content-on-your-site\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">follow their guide to adding an HTML embed<\/a>.<\/li>\n\n\n\n<li>After you embed custom HTML using Wix&#8217;s <strong>&#8220;Embed HTML&#8221;<\/strong> feature, the content is typically served through an iframe on a subdomain such as <strong>yourdomain.filesusr.com<\/strong>. Wix automatically generates this subdomain based on your website&#8217;s primary domain to create an isolated environment for embedded elements like custom HTML and media files. However, this subdomain may not be recognized as a verified domain by our app, preventing OptinMonster campaigns from displaying correctly. To resolve this issue, you need to add the Wix-generated subdomain to the list of allowed domains in your OptinMonster campaign settings. For instance, if your domain is <strong>test.com<\/strong>, you&#8217;ll need to add <strong>test.filesusr.com<\/strong> to the list of allowed domains, as shown in the image.  <img decoding=\"async\" width=\"620\" height=\"279\" class=\"wp-image-200799\" style=\"width: 620px;\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6.png\" alt=\"\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6.png 1875w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6-300x135.png 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6-1024x461.png 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6-768x346.png 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/01\/image-6-1536x692.png 1536w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/li>\n<\/ol>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\">What domain do I enter when creating my campaign?<\/h5>\n\n\n\n<p>When creating your campaign you can add the domain USERNAME.wixsite.com for your campaign to load on. Be sure to replace USERNAME with the actual username for your Wix account. This will allow you to view the campaign when previewing your site.<\/p>\n\n\n\n<p>If your site uses a custom domain, you&#8217;ll need to also add the domain that appears in the address bar when you view your website.<\/p>\n\n\n\n<p>If you haven&#8217;t registered the domain you want to use in your OptinMonster account yet, you can&nbsp;add the site through the&nbsp;<strong>Publish<\/strong> screen in the campaign builder, or through the&nbsp;<strong>Account &gt; Sites<\/strong> screen. Learn more about <a href=\"https:\/\/optinmonster.com\/docs\/how-to-add-edit-or-delete-a-website-in-optinmonster\/\" target=\"_blank\" rel=\"noopener\" title=\"\">how to register your domain in OptinMonster<\/a>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the <strong>Publish<\/strong> view of the campaign builder, be sure the domain is listed under the&nbsp;<strong>Websites<\/strong> section. Click&nbsp;<strong>Add a website<\/strong> if your domain isn&#8217;t already assigned to the campaign to select and add it.<br><img decoding=\"async\" width=\"850\" height=\"653\" class=\"alignnone size-full wp-image-151150\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2020\/09\/5f6cf6500e9be381063831.gif\" alt=\"Add site to the Publish screen for your OptinMonster campaign.\"><\/li>\n\n\n\n<li>When you&#8217;re finished, click <strong>Save<\/strong>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>OptinMonster works on any website where you can add our embed code, including Wix. In this article, you&#8217;ll learn how to integrate OptinMonster with your Wix site. Before You Start Here are some things to know before you begin: Embed Site-Wide When you create a campaign in OptinMonster, you&#8217;ll want to embed it on your&nbsp;&hellip;<\/p>\n","protected":false},"author":4657,"comment_status":"open","ping_status":"closed","template":"","documentation\/categories":[210],"documentation\/tags":[31399,31430,31411,31418],"class_list":["post-87316","optinmonster_docs","type-optinmonster_docs","status-publish","hentry","categories-platforms"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/types\/optinmonster_docs"}],"author":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/users\/4657"}],"replies":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/comments?post=87316"}],"version-history":[{"count":12,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87316\/revisions"}],"predecessor-version":[{"id":207305,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87316\/revisions\/207305"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=87316"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=87316"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=87316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}