x

Leadsius Java Script in Footer

I am using Leadsius for email marketing, and when I try to embed the code for their web form my entire site editor blanks out white and I have to refresh the page to get it back.  If I added the embed on the body of the site, it shows up after I refresh, but because in the footer you have to push that "save" button, the footer will not keep the code once it is entered.  

Is there any way I can work around this?  I have looked into the coding part of the theme, but I'm not familiar enough with it to know where to put this embed code.  I spoke with a Weebly rep who basically said it's too complicated and Leadsius needs to give me a simpler code, but that seems like such a crap out answer.  Can I get any help here?

2,163 Views
Message 1 of 9
Report
1 Best Answer
Square

Best Answer

I see what you're describing - something with the scripting it includes isn't playing with with how editing the footer works.  Try doing this:

1. Add just this part to the footer in an Embed Code element:

<div id="RUI1UDZRPT0="></div>

2. Add this part to Settings > SEO > Footer Code

<script type="text/javascript">
    document.write(unescape("%3Cscript src='" + document.location.protocol + "//app.leadsius.com/bundles/leadsiusplatform/leadsius/New-Form-Builder/public/lswf.js?v=20160718' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    formu7289 = new Ls_Form('RUI1UDZRPT0=',document.location.protocol+'//app.leadsius.com','SHBrQkVnPT0=');
</script>

Anything added to footer code is added after footer content, so it should still function properly and be on all pages of the site.

View Best Answer >

1,901 Views
Message 10 of 9
Report
8 REPLIES 8
Square

Hey @bethyherself! Sorry to hear you're frustrated.  Do you have a link to instructions detailing how they want you to add the code?  You can also use the "insert code" button in the toolbar here in Community to paste in the code they want you to add so I can see it.

2,128 Views
Message 10 of 9
Report

<div id="RUI1UDZRPT0="></div>
<script type="text/javascript">
    document.write(unescape("%3Cscript src='" + document.location.protocol + "//app.leadsius.com/bundles/leadsiusplatform/leadsius/New-Form-Builder/public/lswf.js?v=20160718' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    formu7289 = new Ls_Form('RUI1UDZRPT0=',document.location.protocol+'//app.leadsius.com','SHBrQkVnPT0=');
</script>
                                                

This is the code!  Their instructions just say "Copy and paste this code in your site or blog to collect submissions."

2,122 Views
Message 10 of 9
Report
Square

Thanks for providing that.  On what page of which of your sites were you adding it? I can try to add myself for you if you'd like.

2,113 Views
Message 10 of 9
Report

I'm trying to add it into the footer.  Every time I add the code into the embed code element my page blanks out white and I have to refresh the page.  If I add it into the body of the site, the web form works fine after I refresh, but since I want to add it into the footer, I am not able to press the "save footer" button and when my site blanks out it refreshes and the code never saves in the embed element.  Does that make sense?

2,034 Views
Message 10 of 9
Report
Square

Best Answer

I see what you're describing - something with the scripting it includes isn't playing with with how editing the footer works.  Try doing this:

1. Add just this part to the footer in an Embed Code element:

<div id="RUI1UDZRPT0="></div>

2. Add this part to Settings > SEO > Footer Code

<script type="text/javascript">
    document.write(unescape("%3Cscript src='" + document.location.protocol + "//app.leadsius.com/bundles/leadsiusplatform/leadsius/New-Form-Builder/public/lswf.js?v=20160718' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
    formu7289 = new Ls_Form('RUI1UDZRPT0=',document.location.protocol+'//app.leadsius.com','SHBrQkVnPT0=');
</script>

Anything added to footer code is added after footer content, so it should still function properly and be on all pages of the site.

1,902 Views
Message 10 of 9
Report

Thank you so much.  I really appreciate you working on the problem till you had solved it.  🙂

1,703 Views
Message 10 of 9
Report
Square

Glad to help! Smiley Happy

1,701 Views
Message 10 of 9
Report

Hello,

I am trying to insert the same type of code from Leadsius; however, mine is different enough that I can't figure out how to modify your instructions to fit my needs. Please help. Thank you.

<script type="text/javascript">
var lsBaseURL = (("https:" == document.location.protocol) ? "https://tracker.leadsius.com/djs/" : "http://tracker.leadsius.com/djs/");
document.write(unescape("%3Cscript src='" + lsBaseURL + "tracker.js?_k=3d8da31aea58f96a82951121b9a6496b9c358492' type='text/javascript'%3E%3C/script%3E"));
</script>

1,285 Views
Message 10 of 9
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.