{"id":87379,"date":"2020-09-24T15:59:18","date_gmt":"2020-09-24T19:59:18","guid":{"rendered":"https:\/\/optinmonster.com\/?post_type=optinmonster_docs&#038;p=87379"},"modified":"2025-07-31T13:27:22","modified_gmt":"2025-07-31T17:27:22","slug":"how-to-integrate-optinmonster-with-squarespace","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/how-to-integrate-optinmonster-with-squarespace\/","title":{"rendered":"How to Integrate OptinMonster with Squarespace"},"content":{"rendered":"\n<p>OptinMonster works on any website where you can add our embed code, including Squarespace.<\/p>\n\n\n\n<p>In this article, you&#8217;ll learn how to integrate OptinMonster with Squarespace.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Embed Site-Wide<\/h2>\n\n\n\n<p>After you\u2019ve&nbsp;<a href=\"https:\/\/optinmonster.com\/docs\/creating-your-first-optin\/\" target=\"_blank\" rel=\"noopener\" title=\"\">created a campaign<\/a> in OptinMonster, you\u2019ll want to embed it on your Squarespace 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 Squarespace account and <a href=\"https:\/\/support.squarespace.com\/hc\/en-us\/articles\/205815908\" 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\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Inline campaign<\/a> you will need to place the embed code on the specific page within the content where it should appear visually.<\/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 campaign builder, navigate to the&nbsp;<strong>Publish&nbsp;<\/strong>tab 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 Squarespace site and <a href=\"https:\/\/support.squarespace.com\/hc\/en-us\/articles\/206543167-Code-Blocks\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">follow their guide to adding code using Code Blocks<\/a>.<\/li>\n<\/ol>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">Troubleshooting<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"domain\">What domain do I enter when creating my campaign?<\/h5>\n\n\n\n<p>When creating your campaign you can add the domain <code>squarespace.com<\/code> for your campaign to load on. 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>.<br><\/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. <img decoding=\"async\" width=\"850\" height=\"653\" 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 Squarespace. In this article, you&#8217;ll learn how to integrate OptinMonster with Squarespace. Embed Site-Wide After you\u2019ve&nbsp;created a campaign in OptinMonster, you\u2019ll want to embed it on your Squarespace site. To add the embed code to your entire site, follow these steps: Embed&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-87379","optinmonster_docs","type-optinmonster_docs","status-publish","hentry","categories-platforms"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87379","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=87379"}],"version-history":[{"count":10,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87379\/revisions"}],"predecessor-version":[{"id":197666,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/87379\/revisions\/197666"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=87379"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=87379"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=87379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}