Veronique9753 Posted November 21, 2022 Share Posted November 21, 2022 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
Ziggy Posted November 21, 2022 Share Posted November 21, 2022 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 🔌 Ghost Squarespace Plugins (Referral link)📈 SEO Space (Referral link)⬛ SquareWebsites Plugins (Referral link)☕ Did I help? Buy me a coffee? Link to comment
LayilUmbralux Posted March 4 Share Posted March 4 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
paul2009 Posted March 4 Share Posted March 4 @Veronique9753 Your code appears to be working fine. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
paul2009 Posted March 4 Share Posted March 4 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. Did this help? Please give feedback by clicking an icon below ⬇️ About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
LayilUmbralux Posted March 5 Share Posted March 5 Oh! Interesting. Well that's good to know. I had tried it in incognito, figuring that would default it, but I guess it still knows not to show it to me. I'll have to tweak my settings. Thank you! Link to comment
LeahMaria Posted March 13 Share Posted March 13 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
LeahMaria Posted March 14 Share Posted March 14 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
tuanphan Posted March 16 Share Posted March 16 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment