Use domain-level custom code to inject scripts, tracking pixels, or global styles into every landing page published under a specific domain, without editing each page individually.
What is Domain-Level Custom Code?
Domain-level custom code lets you add HTML, JavaScript, or CSS that runs on every page published under a specific domain in LanderLab. Instead of adding the same script to each landing page one by one, you add it once at the domain level and it gets automatically injected into all pages on that domain. This is useful for:- Global tracking pixels (e.g. a Google Tag Manager container)
- Analytics scripts that should run on every page
- Custom CSS or styles that apply across all pages on the domain
- Any third-party script that needs to be present on every page
Where to Add Domain-Level Custom Code
1
Go to Settings
Log in to your LanderLab account and click Settings in the left sidebar.
2
Click Domains
In the Settings menu, select Domains. You will see a list of all domains connected to your account.
3
Open the domain menu
Find the domain where you want to inject global scripts. Click the three-dot menu (…) on the right side of that domain row.

4
Select Settings
From the dropdown, click Settings. A modal will open for that domain.
5
Go to the Custom Code tab
Inside the domain settings modal, click the Custom Code tab. You will see two code editor panels:

6
Paste your code and save
Paste your script or code into the appropriate panel and click Save. The code will be automatically injected into every page published under this domain.
Which Panel Should I Use?
As a general rule:- Head panel - Use for tracking pixels, tag managers (e.g. Google Tag Manager), and analytics initialization scripts. These typically need to load as early as possible.
- Body panel - Use for scripts that depend on the page content being loaded first, or for any third-party widget that recommends placement before
</body>.
Domain-level custom code is injected into every page on that domain. If you need a script to run only on a specific landing page, use the per-page custom code setting inside the landing page editor instead.