Code injection
Want to add HTML or other scripts to your site? Code injection works by adding to or overriding built-in platform functionality. Code injection editors can be found in the following areas of your website:
- Sitewide header: Code added here is injected into the
<head>
tag on every page in your site. Used for broad, sitewide changes. - Sitewide footer: Code added here is injected before the closing
</body>
tag on every page on your site. Used for broad, sitewide changes. - Lock page: This customizes the lock screen for password-protected pages or sites. Code is injected above the password field. Used to customize the lock screen only.
- Order status and confirmation page: Add code to your Commerce order status page for memberships, subscriptions, and gift cards, or your confirmation page for physical, digital, and service-type products. Used to modify order status and confirmation page only.
- Page header injection: Add code to the
</head>...