Available on Plus, Professional, and Enterprise plans.
In this article, you'll learn two ways to add custom code to your landing page.
Add custom code to your page's settings
You can embed script tags and analytics tracking code to your page under Page Settings.
Note that custom code added in Page settings can only be viewed when the page is live. It cannot be viewed in the Page Builder.
To add custom code to your page's settings:
- From Pages in your ActiveCampaign account, hover over the page you want to add custom code to and click "View Page Settings."
- There will be two fields under "Custom Code": <head> and <body>. Type the code into either field.
- If you're adding Google Analytics code to your page, you'll want to add it to the header. See the "How to add your Google Analytics code to your ActiveCampaign page" help article for more information about that topic.
- Click the "Save" button when finished.
Add custom code using the "Embed" block
If you wish to add a Google Map or Calendly widget to your page, you can do so with the "Embed" block.
To add the "Embed" block to your page, drag it from the right pane into your page layout. Then paste the code into the code editor in between the two paragraph tags <p> located on the right pane.
See the "Use the Embed block" help article for more information on how to use this block.
Note that while you can use the "Embed" block to add an ActiveCampaign form to your page, we recommend using the "Inline Form" block instead.