Why do we recommend putting JavaScript in the Landing Page Setting’s Custom Code Section?

The Landing Page Editor relies on JavaScript to provide the rich editor experience on the page. Sometimes third-party code can interfere or collide with the editor’s JavaScript and cause unexpected behavior. This behavior includes the inability to upload or insert images, unexpected layout issues, or other functionality appearing not to work.

To avoid this, we recommend placing HTML and CSS in the embed block in the landing page editor. The JavaScript should be copied and pasted to the Custom Code box in the Page Settings tab. JavaScript code is anything contained in a set of script tags like this:

<script>/* JavaScript code goes here */</script>

Adding ActiveCampaign forms to an Embed block

There should be no known conflicts with adding your ActiveCampaign form's simple embed code to your landing page's Embed block. You should be able to add that javascript code to the embed block with no issues.


To learn more about landing pages, visit Get Started with ActiveCampaign landing pages

Was this article helpful?
1 out of 2 found this helpful

Have more questions? Submit a request

Start free trial