---
title: How do I use the Code Injection tab?
description: Learn how to execute third-party scripts in the header and footer of every page, and configure code execution for the control panel and Embed widgets.
---

[Skip to content](https://success.ministrydesigns.help/how-do-i-use-the-code-injection-tab#main-content)

English

Show submenu for translations

[Submit a Ticket](https://success.ministrydesigns.help/kb-tickets/new)

[![MD Logo 1\_Black-2](https://success.ministrydesigns.help/hs-fs/hubfs/MD%20Logo%201_Black-2.png?width=200&height=73&name=MD%20Logo%201_Black-2.png)](https://ministrydesigns.com/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Submit a Ticket](https://success.ministrydesigns.help/kb-tickets/new)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Ministry Designs Success Hub](https://success.ministrydesigns.help/)
2. [Sites (Formerly Omega)](https://success.ministrydesigns.help/sites-formerly-omega)
3. [Settings](https://success.ministrydesigns.help/sites-formerly-omega#settings)

# How do I use the Code Injection tab?

## Use the Code Injection tab to add scripts in the header and footer

1\. The Code Injection tab allows you to execute third-party code in the Header and Footer tag on every page of your site, select whether or not the injected code should be executed in the control panel as well as if the code entered in the Embed widgets on the site should be executed in the control panel

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/408fa892-8b62-44c6-bd82-28f5e0a041f6/ascreenshot.jpeg?tl_px=0,96&br_px=982,645&force_format=jpeg&q=100&width=983&wat_scale=87&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=230,243)

2\. If you need to see how your third-party code behaves directly in your admin panel (for example, a third-party chat code), enable a corresponding checkbox to execute the injected code in the control panel.

If disabled, the execution of the code in the control panel will not be seen, but the code will still execute on the live website preview

This feature affects both the injected code of the Header/Footer section for the separate page ([Page properties](https://success.ministrydesigns.help/how-to-manage-page-properties) - Code Injection) and the injected code for all pages of your site (Settings - Code Injection)

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/9db98d68-e004-43bd-8772-b16f2a95b49f/ascreenshot.jpeg?tl_px=0,0&br_px=982,549&force_format=jpeg&q=100&width=983&wat_scale=87&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=281,193)

3\. If you need to see how your third-party code that is inserted in [Embed](https://success.ministrydesigns.help/how-to-use-the-embed-widget) widgets behaves directly in your admin panel (for example a third-party countdown timer), enable a corresponding checkbox to execute the injected code for Embed Widgets in the control panel.

If disabled, the execution of the code in the Embed widgets in the control panel will not be seen, but the code will still execute on the live website preview

This feature applies to all "Embed" widgets in the Control Panel.

If both options are what you need, leave both checkboxes selected

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/c4fdd2cd-6335-4cb8-b3f9-99b04f770e4b/ascreenshot.jpeg?tl_px=0,0&br_px=982,549&force_format=jpeg&q=100&width=983&wat_scale=87&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=283,226)

4\. Paste the code that will be executed globally in the head tag on your site

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/f82527bd-2e8a-4163-8ac0-75067cfa486d/ascreenshot.jpeg?tl_px=0,24&br_px=982,573&force_format=jpeg&q=100&width=983&wat_scale=87&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=306,243)

5\. Paste the code that will be executed globally before the closing body tag on your site

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/a17d53c3-87f4-4708-8d6d-cc0136d02baa/ascreenshot.jpeg?tl_px=0,158&br_px=982,707&force_format=jpeg&q=100&width=983&wat_scale=87&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=319,243)

6\. Click "Save Changes" to confirm the changes

![](https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-08-04/6a700a40-28f0-4ffc-9634-c3f9fab91ff9/ascreenshot.jpeg?tl_px=321,0&br_px=1181,480&force_format=jpeg&q=100&width=860&wat_scale=76&wat=1&wat_opacity=0.7&wat_gravity=northwest&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png&wat_pad=729,88)

- [Account](https://success.ministrydesigns.help/account)
- [Sites (Formerly Omega)](https://success.ministrydesigns.help/sites-formerly-omega#main-content)

    - [Next-Steps Framework](https://success.ministrydesigns.help/sites-formerly-omega#next-steps-framework)
    - [Video Guides](https://success.ministrydesigns.help/sites-formerly-omega#video-guides)
    - [Site Builder Profile Settings](https://success.ministrydesigns.help/sites-formerly-omega#site-builder-profile-settings)
    - [Pages](https://success.ministrydesigns.help/sites-formerly-omega#pages)
    - [Design](https://success.ministrydesigns.help/sites-formerly-omega#design)
    - [Media Library](https://success.ministrydesigns.help/sites-formerly-omega#media-library)
    - [Extensions](https://success.ministrydesigns.help/sites-formerly-omega#extensions)
    - [Blog](https://success.ministrydesigns.help/sites-formerly-omega#blog)
    - [Events](https://success.ministrydesigns.help/sites-formerly-omega#events)
    - [Small Groups](https://success.ministrydesigns.help/sites-formerly-omega#small-groups)
    - [Sermons](https://success.ministrydesigns.help/sites-formerly-omega#sermons)
    - [Settings](https://success.ministrydesigns.help/sites-formerly-omega#settings)
    - [SEO](https://success.ministrydesigns.help/sites-formerly-omega#seo)
    - [Website Management](https://success.ministrydesigns.help/sites-formerly-omega#website-management)
    - [FAQ](https://success.ministrydesigns.help/sites-formerly-omega#faq)
- [illume for Church Members](https://success.ministrydesigns.help/illume-for-church-members#main-content)

    - [Signing Up](https://success.ministrydesigns.help/illume-for-church-members#signing-up)
    - [Giving](https://success.ministrydesigns.help/illume-for-church-members#giving)
- [illume for Church Administration](https://success.ministrydesigns.help/illume-for-church-administration#main-content)

    - [Getting Started](https://success.ministrydesigns.help/illume-for-church-administration#getting-started)
    - [Managing Your Account](https://success.ministrydesigns.help/illume-for-church-administration#managing-your-account)
    - [Using People](https://success.ministrydesigns.help/illume-for-church-administration#using-people)
    - [Using Giving](https://success.ministrydesigns.help/illume-for-church-administration#using-giving)

[![MD Logo 1\_Black-3](https://success.ministrydesigns.help/hs-fs/hubfs/MD%20Logo%201_Black-3.png?width=200&height=73&name=MD%20Logo%201_Black-3.png "MD Logo 1_Black-3")](http://ministrydesigns.com)

15 Carlyle St Floor 2,  
Battle Creek, Mi 49017

<https://www.facebook.com/BestChurchWebsiteBuilder> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2025,