Jump to content

Help Fixing Embedded Popup from Flodesk

Recommended Posts

I had header code for a pop-up from Flodesk (to sign up for my newsletter) on my site. It seems like it's now broken. Can anyone help me fix it!? Pasting the code below. Huge thanks to anyone who might be able to help figure out a solution!

<script>
  (function(w, d, t, h, s, n) {
    w.FlodeskObject = n;
    var fn = function() {
      (w[n].q = w[n].q || []).push(arguments);
    };
    w[n] = w[n] || fn;
    var f = d.getElementsByTagName(t)[0];
    var v = '?v=' + Math.floor(new Date().getTime() / (120 * 1000)) * 60;
    var sm = d.createElement(t);
    sm.async = true;
    sm.type = 'module';
    sm.src = h + s + '.mjs' + v;
    f.parentNode.insertBefore(sm, f);
    var sn = d.createElement(t);
    sn.async = true;
    sn.noModule = true;
    sn.src = h + s + '.js' + v;
    f.parentNode.insertBefore(sn, f);
  })(window, document, 'script', 'https://assets.flodesk.com', '/universal', 'fd');
</script>
<script>
  window.fd('form', {
    formId: '619e4bca117f2e0a9bdc585f'
  });
</script>

Link to comment
  • Replies 8
  • Views 733
  • Created
  • Last Reply

Top Posters In This Topic

Hi @Veronique9753 Can you share your website and the page that this is located on? Do you have the Squarespace business plan? Have you altered the code or is that exactly as you got it from Flodesk?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
  • 3 months later...

Hello

I am also having this problem. 

I had a functioning Flodesk popup at one point, and I'm not sure when it stopped working. I have SS's native popups disabled; do we know if there's a conflict? I haven't found mention of one online in a quick search. 

I set it up using Flodesk's instructions, and I have the code where it should be on SS, but when I reload my site, there's no popup, and hasn't been for a while. I thought maybe I had turned it off at one point, but there doesn't seem to be an option for that.

My website is www.studioumbralux.com if you want to see. Pop-ups are meant to load on the Home page. I have a Squarespace business plan (pre-update), from 2021.

Any help would be greatly appreciated! 

Here's my code (Fd is at the end). Perhaps I've installed it wrong?

<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '171242645205849');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=171242645205849&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->

<meta name="google-site-verification" content="ut5lK0KD7Bl_ADaD0CF719r3IDpbfxQAJRRLYzvhzo8" />

<script>
  (function(w, d, t, h, s, n) {
    w.FlodeskObject = n;
    var fn = function() {
      (w[n].q = w[n].q || []).push(arguments);
    };
    w[n] = w[n] || fn;
    var f = d.getElementsByTagName(t)[0];
    var v = '?v=' + Math.floor(new Date().getTime() / (120 * 1000)) * 60;
    var sm = d.createElement(t);
    sm.async = true;
    sm.type = 'module';
    sm.src = h + s + '.mjs' + v;
    f.parentNode.insertBefore(sm, f);
    var sn = d.createElement(t);
    sn.async = true;
    sn.noModule = true;
    sn.src = h + s + '.js' + v;
    f.parentNode.insertBefore(sn, f);
  })(window, document, 'script', 'https://assets.flodesk.com', '/universal', 'fd');
</script>
<script>
  window.fd('form', {
    formId: '613bbf0d7accb4c021020549'
  });
</script>

Link to comment

@Veronique9753 Your code appears to be working fine.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
1 hour ago, LayilUmbralux said:

I am also having this problem. I had a functioning Flodesk popup at one point, and I'm not sure when it stopped working.

@LayilUmbralux Your code seems to be working fine too.

image.thumb.png.75458a2b0abd6643399a564df1c41ef5.png

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 2 weeks later...

Hi Folks, 

I'm a code novice. 

I recently created a Mailchimp pop-up form (newsletter subscription) for my website landing page. 

The domain for page is www.finickyheart.com which directs to a page on my website www.spinsterproduction.com.

Is it possible for a pop-up code to work on a PAGE vs a home page of a website? 

Also, am I right to understand I simply copy and paste code into header on that page? Does it need to be any special format or changed in a way I'm not understanding? 

Appreciate any feedback or advice, 

Leah 

Code: <script 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/d490339cc231b3a722376c29e/196f62c276a6eefc51d7c097c.js");</script>

Link to comment

Hi Folks, 

I'm a code novice. 

I recently created a Mailchimp pop-up form (newsletter subscription) for my website landing page. 

The domain for page is www.finickyheart.com which directs to a page on my website www.spinsterproduction.com.

Is it possible for a pop-up code to work on a PAGE vs a home page of a website? 

Also, am I right to understand I simply copy and paste code into header on that page? Does it need to be any special format or changed in a way I'm not understanding? 

Appreciate any feedback or advice, 

Leah 

Code: <script 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/d490339cc231b3a722376c29e/196f62c276a6eefc51d7c097c.js");</script>

Link to comment
On 3/14/2023 at 4:14 PM, LeahMaria said:

 

Hi Folks, 

I'm a code novice. 

I recently created a Mailchimp pop-up form (newsletter subscription) for my website landing page. 

The domain for page is www.finickyheart.com which directs to a page on my website www.spinsterproduction.com.

Is it possible for a pop-up code to work on a PAGE vs a home page of a website? 

Also, am I right to understand I simply copy and paste code into header on that page? Does it need to be any special format or changed in a way I'm not understanding? 

Appreciate any feedback or advice, 

Leah 

Code: <script 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/d490339cc231b3a722376c29e/196f62c276a6eefc51d7c097c.js");</script>

Just add the code to Page Header (Page where you want to popup work with)

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.