Use Custom Code with Enhanced Landing Pages

To further customize landing pages, you can add custom code, including script, style, comment, noscript, and link tags to the header and footer code. You can also copy, edit, or remove code at any time. The header and footer code blocks are available on the Settings tab of an enhanced landing page record.

Required Editions

Available in: All Account Engagement Editions
User Permissions Needed
To edit an enhanced landing page: Access Drag-And-Drop Builder
To customize a Lightning record page: Customize Application
  1. From an enhanced landing page, navigate to the Settings tab.
  2. For the Header Code or Footer Code block, click Add.
    To change existing code in these blocks, click Edit.
  3. Enter the code that you want to include, and then save.
    Header and Footer code blocks support script, style, link, noscript, and comment tags such as <!-–hidden text-->.
  4. Review and resolve any errors.
  5. To publish the landing page, click Publish.
Note
Note If you can’t find the Settings tab, an admin can add the Header Code and Footer Code fields using the Lightning App Builder. To add the fields, open a Landing Page Lightning record page, create a tab and name it Settings. Then, drag in the Landing Pages - Header & Footer component. Save the page and activate it for users.