---
title: Switching your script wrapper to the Mediavine Control Panel plugin
description: Update your Mediavine script wrapper to our WordPress plugin so it's always up-to-date and performing well
---

[Skip to content](https://help.mediavine.com/switching-your-script-wrapper-to-the-mediavine-control-panel-plugin#main-content)

English

Show submenu for translations

[![mediavine-horiz-white-pn-RGB-(r)-spacing](https://help.mediavine.com/hs-fs/hubfs/Logos/Mediavine%20Logos/mediavine-horiz-white-pn-RGB-(r)-spacing.png?width=385&height=100&name=mediavine-horiz-white-pn-RGB-(r)-spacing.png)](https://www.mediavine.com/)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Go to mediavine.com](https://www.mediavine.com/)

[Go to mediavine.com](https://www.mediavine.com/)

 Advice and answers from Mediavine!

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

1. [Help Center](https://help.mediavine.com/?hsLang=en)
2. [Launching your Mediavine Ads](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en)
3. [Mediavine Control Panel Wordpress Plugin](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#mediavine-control-panel-wordpress-plugin)

# Switching your script wrapper to the Mediavine Control Panel plugin

## Update your Mediavine script wrapper to our WordPress plugin so it's always up-to-date and performing well

### Mediavine now offers WordPress users the Mediavine Control Panel plugin to insert the Mediavine script wrapper. 

Here's how to update to the Mediavine Control Panel plugin in WordPress!

1\) Find your existing script wrapper. 

Many publishers have their Mediavine script wrapper hard-coded into their head tags, or inserted via a plugin.  

#### Look for these WordPress plugins in your website dashboard: 

- Genesis Simple Hooks 
- Head & Footer 
- Theme settings (varies per theme)

If you don't see it, email [publishers@mediavine.com](mailto:publishers@mediavine.com) for help. 

### 2) Delete it!

You don't have to remove the plugin, but you DO want to remove the script wrapper code. It will look something like this: 

```
<script type="text/javascript" async="async" data-noptimize="1" data-cfasync="false" src="//scripts.mediavine.com/tags/YourSiteHere.js"></script>
```

### 3) Install the Mediavine Control Panel plugin.

Download the [Mediavine Control Panel plugin](https://wordpress.org/plugins/mediavine-control-panel/) from the Wordpress plugin repository. Then, activate the plugin.

### 4) Set up the plugin. 

Follow these steps to set up the plugin to insert your Mediavine script wrapper. 

A) Navigate to Settings \> Mediavine Control Panel page.   
B) Go to your [Mediavine Dashboard](https://dashboard.mediavine.com/) and go to your Settings \> Ad Setup menu.   
C) Copy and paste your **Site ID** from the Ad Setup page.   
D) Paste your unique Site ID into the Mediavine Control Panel plugin settings area, here.   
​

[![image3](https://help.mediavine.com/hs-fs/hubfs/image3.png?width=670&height=175&name=image3.png)](https://downloads.intercomcdn.com/i/o/211790075/925d5cb15ffbd755db930b85/Screen_Shot_2020-05-24_at_10_27_06_AM.png?expires=1736975700&signature=7eb452e1c2cdd0867d2037d80766650208bd49f63abd39128bad62f02f8b8d95&req=diEmEcB%2BnYZaFb4f3HP0gMr5PJCVNEB%2FixksclIH%2FkrgeDxsx3vDVgyaE2uG%0AvDYjhlCAFfpu4CdUXA%3D%3D%0A)

E) Check the box that says **Include Script Wrapper.** This allows us to insert the script into your header:

[![downloads.intercomcdn.comio339780487f50f5c5c7d6dc2405374cbb5Screen\_Shot\_2021-05-20\_at\_4\_34\_21\_PM-1](https://help.mediavine.com/hs-fs/hubfs/Knowledge%20Base%20Import/downloads.intercomcdn.comio339780487f50f5c5c7d6dc2405374cbb5Screen_Shot_2021-05-20_at_4_34_21_PM-1.png?width=670&height=190&name=downloads.intercomcdn.comio339780487f50f5c5c7d6dc2405374cbb5Screen_Shot_2021-05-20_at_4_34_21_PM-1.png)](https://downloads.intercomcdn.com/i/o/339779284/fbbba3547e847687667caa7a/Screen_Shot_2021-05-20_at_4_34_21_PM.png?expires=1736975700&signature=822ec73bad2c20eb6f4d7a50868bff3f8275c2f4440dcfaa2455fb24445405da&req=dyMuEc53n4lbFb4f3HP0gDeUhxV2GqEwtCNhcm6jOXXVOf%2BihYvfLmAdnUBc%0AZrEbLUKV9x9Qk%2BYlmA%3D%3D%0A)

F) Click **Save Changes.**

[![mediavine-2d8c00c7ee73.intercom-attachments-1.comio211790127afbfba0fc019f842bb4c88ffMediavine\_Control\_Panel\_-E2-80-B9\_Or\_Whatever\_You\_Do\_-E2-80--1](https://help.mediavine.com/hs-fs/hubfs/Knowledge%20Base%20Import/mediavine-2d8c00c7ee73.intercom-attachments-1.comio211790127afbfba0fc019f842bb4c88ffMediavine_Control_Panel_-E2-80-B9_Or_Whatever_You_Do_-E2-80--1.png?width=284&height=108&name=mediavine-2d8c00c7ee73.intercom-attachments-1.comio211790127afbfba0fc019f842bb4c88ffMediavine_Control_Panel_-E2-80-B9_Or_Whatever_You_Do_-E2-80--1.png)](https://mediavine-2d8c00c7ee73.intercom-attachments-1.com/i/o/211790127/afbfba0fc019f842bb4c88ff/Mediavine_Control_Panel_-E2-80-B9_Or_Whatever_You_Do_-E2-80-94_WordPress.jpg?expires=1736975700&signature=c9c22a3a770c057e8e413118f80a6e57fd90d9d07bf0c97a307cc5038cdc4ddb&req=diEmEcB%2BnINYFb4f3HP0gHl%2Bgiv7zosIaNxF8GwPH5HL5wCnBPQhgJ7vLN%2FF%0AJ69vaJm3SwymCs9haQ%3D%3D%0A)

### 5) Email [publishers@mediavine.com](mailto:publishers@mediavine.com) to check everything over.

Once you have switched to the plugin, let us know so we can make sure everything looks right on our end. The last thing we want is for your income to be affected negatively! Plus, we love hearing from you. 

 

- [Joining Mediavine Ad Management](https://help.mediavine.com/joining-mediavine-ad-management?hsLang=en#main-content)

    - [FAQ](https://help.mediavine.com/joining-mediavine-ad-management?hsLang=en#faq)
- [Launching your Mediavine Ads](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#main-content)

    - [Mediavine Control Panel Wordpress Plugin](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#mediavine-control-panel-wordpress-plugin)
    - [Installing the Mediavine Script on Non-Wordpress platforms](https://help.mediavine.com/launching-your-mediavine-ads?hsLang=en#installing-the-mediavine-script-on-non-wordpress-platforms)
- [Mediavine Publisher FAQ](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#getting-started)
    - [Site Sales](https://help.mediavine.com/mediavine-publisher-faq?hsLang=en#site-sales)
- [Payment Info](https://help.mediavine.com/payment-info?hsLang=en)
- [Dashboard FAQ](https://help.mediavine.com/dashboard-faq?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/dashboard-faq?hsLang=en#getting-started)
    - [Settings](https://help.mediavine.com/dashboard-faq?hsLang=en#settings)
    - [FAQ](https://help.mediavine.com/dashboard-faq?hsLang=en#faq)
    - [Troubleshooting](https://help.mediavine.com/dashboard-faq?hsLang=en#troubleshooting)
- [Site Health Checks](https://help.mediavine.com/site-health-checks?hsLang=en)
- [Standard Ad Units](https://help.mediavine.com/standard-ad-units?hsLang=en#main-content)

    - [Mediavine Ad Units](https://help.mediavine.com/standard-ad-units?hsLang=en#mediavine-ad-units)
    - [Ad Functionality](https://help.mediavine.com/standard-ad-units?hsLang=en#ad-functionality)
    - [Customizing your ad experience](https://help.mediavine.com/standard-ad-units?hsLang=en#customizing-your-ad-experience)
    - [AMP Ads](https://help.mediavine.com/standard-ad-units?hsLang=en#amp-ads)
    - [Troubleshooting](https://help.mediavine.com/standard-ad-units?hsLang=en#troubleshooting)
- [Site Specific Ad Units](https://help.mediavine.com/site-specific-ad-units?hsLang=en#main-content)

    - [Recipe Ads](https://help.mediavine.com/site-specific-ad-units?hsLang=en#recipe-ads)
    - [Interstitials](https://help.mediavine.com/site-specific-ad-units?hsLang=en#interstitials)
    - [Chicory](https://help.mediavine.com/site-specific-ad-units?hsLang=en#chicory)
    - [Sidebar Alternative](https://help.mediavine.com/site-specific-ad-units?hsLang=en#sidebar-alternative)
    - [Leaderboard](https://help.mediavine.com/site-specific-ad-units?hsLang=en#leaderboard)
- [Video](https://help.mediavine.com/video?hsLang=en#main-content)

    - [Mediavine Universal Player](https://help.mediavine.com/video?hsLang=en#mediavine-universal-player)
    - [Getting Started With Video](https://help.mediavine.com/video?hsLang=en#getting-started-with-video)
    - [Video Features](https://help.mediavine.com/video?hsLang=en#video-features)
    - [Mediavine Video + YouTube](https://help.mediavine.com/video?hsLang=en#mediavine-video-youtube)
    - [Closed Captions](https://help.mediavine.com/video?hsLang=en#closed-captions)
    - [Video Sitemaps](https://help.mediavine.com/video?hsLang=en#video-sitemaps)
    - [Playlists](https://help.mediavine.com/video?hsLang=en#playlists)
- [Optimize Your Ad Performance](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#main-content)

    - [Using Page-Level Data to Maximize Performance](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#using-page-level-data-to-maximize-performance)
    - [Tips to Maximize Ad Performance and RPM](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#tips-to-maximize-ad-performance-and-rpm)
    - [Sweet Land of Money Series](https://help.mediavine.com/optimize-your-ad-performance?hsLang=en#sweet-land-of-money-series)
- [Privacy](https://help.mediavine.com/privacy?hsLang=en#main-content)

    - [Privacy Policy](https://help.mediavine.com/privacy?hsLang=en#privacy-policy)
    - [State Privacy](https://help.mediavine.com/privacy?hsLang=en#state-privacy)
    - [GDPR](https://help.mediavine.com/privacy?hsLang=en#gdpr)
    - [LGPD Lei Geral de Proteção de Dados Pessoais](https://help.mediavine.com/privacy?hsLang=en#lgpd-lei-geral-de-prote%C3%A7%C3%A3o-de-dados-pessoais)
    - [US State Privacy Laws](https://help.mediavine.com/privacy?hsLang=en#us-state-privacy-laws)
- [Ad Quality](https://help.mediavine.com/ad-quality?hsLang=en)
- [SEO Help](https://help.mediavine.com/seo-help?hsLang=en)
- [Site Speed](https://help.mediavine.com/site-speed?hsLang=en)
- [Grow](https://help.mediavine.com/grow?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/grow?hsLang=en#getting-started)
- [PubNation](https://help.mediavine.com/pubnation?hsLang=en#main-content)

    - [Getting Started](https://help.mediavine.com/pubnation?hsLang=en#getting-started)
    - [PubNation Applications and Onboarding](https://help.mediavine.com/pubnation?hsLang=en#pubnation-applications-and-onboarding)
    - [Understanding the Tech](https://help.mediavine.com/pubnation?hsLang=en#understanding-the-tech)
    - [PubNation Ads](https://help.mediavine.com/pubnation?hsLang=en#pubnation-ads)
- [Products](https://help.mediavine.com/products?hsLang=en#main-content)

    - [Mediavine Labs](https://help.mediavine.com/products?hsLang=en#mediavine-labs)
    - [Create](https://help.mediavine.com/products?hsLang=en#create)
- [Advanced](https://help.mediavine.com/advanced?hsLang=en#main-content)

    - [Google Analytics](https://help.mediavine.com/advanced?hsLang=en#google-analytics)
    - [SSL / HTTPS](https://help.mediavine.com/advanced?hsLang=en#ssl-https)
    - [Ads.txt Help!](https://help.mediavine.com/advanced?hsLang=en#ads-txt-help)
- [Conflicts](https://help.mediavine.com/conflicts?hsLang=en#main-content)

    - [Cloudflare](https://help.mediavine.com/conflicts?hsLang=en#cloudflare)
    - [WP Rocket](https://help.mediavine.com/conflicts?hsLang=en#wp-rocket)
    - [Layout Conflicts](https://help.mediavine.com/conflicts?hsLang=en#layout-conflicts)
- [Mediavine Direct](https://help.mediavine.com/mediavine-direct?hsLang=en)
- [Perks & Programs](https://help.mediavine.com/perks-programs?hsLang=en)
- [Navigating the New Dashboard](https://help.mediavine.com/navigating-the-new-dashboard?hsLang=en)

[![mediavine-horiz-black-RGB-2-1](https://help.mediavine.com/hs-fs/hubfs/Logos/Mediavine%20Logos/mediavine-horiz-black-RGB-2-1.png?width=138&height=30&name=mediavine-horiz-black-RGB-2-1.png "mediavine-horiz-black-RGB-2-1")](http://mediavine.com)

mediavine.com Help Center

Copyright © 2026, © Mediavine, Inc.⎪All Rights Reserved