Where to add custom code
There are two levels at which you can add custom code:Page-level custom code
Custom code added at the page level applies only to that specific page. This is appropriate for page-specific scripts, embed codes, or CSS overrides. To access page-level custom code:- Open the page in the builder.
- Click the Page Settings icon in the top toolbar.
- Select Custom CSS for styles, or use the Tracking Code panel to add HTML/JavaScript to the
<head>or<body>sections.
Funnel-level custom code
Custom code added in the funnel’s Settings tab under Head / Body Tracking Code applies to every step in the funnel. Use this for scripts that should run sitewide — analytics libraries, chat widgets, and global style overrides.Element-level custom code
The builder includes a Code element (found in the Embed category of the elements panel) that lets you embed custom HTML and JavaScript directly on the canvas. This is useful for embedding third-party widgets, iframes, or dynamic content blocks within a specific section of a page.Adding custom CSS
1
Open page settings
In the builder, click the Page Settings icon and select Custom CSS.
2
Write your CSS rules
Enter valid CSS in the editor. Rules added here apply only to this page and are scoped by the builder’s class structure.
3
Save
Click Save. The styles are applied immediately in the builder preview.
Common CSS use cases
Adding custom JavaScript
Use the Tracking Code panel (in Page Settings) to add JavaScript:- Head code: Paste scripts that need to load before the page content. Analytics libraries and tag managers typically go here.
- Body code: Paste scripts that should load after the page content. Event listeners, third-party widgets, and deferred scripts go here.
Common JavaScript use cases
Embedding third-party content
Use the Code element on the canvas to embed iframes and third-party widgets:Performance considerations
The funnel’s Settings tab includes two performance options that affect how custom code loads:- Optimize JavaScript — lazy-loads custom HTML and JavaScript elements. This can improve page load speed, but may delay scripts from firing until the user interacts with the page. Disable this if your scripts need to run immediately on page load.
- GDPR compliant fonts — uses self-hosted fonts instead of loading them from Google Fonts, which can resolve GDPR compliance concerns related to IP address logging.
Video backgrounds
Add a video background to any section using custom code:video-bg-section class to the section containing the video element. The video plays silently on loop behind the section content.
Dynamic animations and visual effects
Add scroll-triggered animations using custom CSS and JavaScript:animate-fade-in class to any element in the builder to apply the scroll animation.
Hide/show elements on button click
Toggle element visibility with a button click using custom JavaScript:display: none in the Custom CSS panel, and assign the matching IDs (#toggle-button and #hidden-content) to your elements in the builder.