Here is the list of the best plugins to add header/footer code or JS in the wordpress theme.
Header Footer Code Manager
Robots Header Footer Code Manager is a simple GUI to apply samples to your page’s header or footer or above or below.
Woody ad snippets – Insert Header Footer Code, AdSense Ads
Woody ad samples are going to facilitate your existence. The extension allows code snippets and duplicates to be generated and saved in a special repository at the website administration desk. Place the shortcode in any section of your website to add a fragment. Or do it automatically: face, footer and post shots, for example. Using conditional reasoning to reveal and conceal fragments of software
Elementor – Header, Footer & Blocks
You can easily create a template with Elementor and display this as a header or footer on your website with the Header Footer Elementor addon.
You just have to build a design with Elementor.
Choose whether the header or footer is to be added.
The prototype is used as a header/footer automatically. Quick peasy! Easy peasy!
Insert Headers and Footers
Add headers and footers is a basic plugin which can inserve the WordPress page header and footer, such as Google Analytics, Custom CSS, Facebook Pixel and more. You don’t have to change theme documents!
You could quickly add scripts in one location using the simple interface of Add Headers and Footers, instead of working with dozens of different plugins.
Header and Footer Scripts
You will sooner or later add some sort of code into your page if you are operating a WordPress site. This is possibly a web analytics software such as Google Analytics or perhaps a social media script or some Html stylesheet and personalized fonts. This app does everything amazing. Even if you want these keys to be incorporated into a customized message.
Head, Footer and Post Injections
You can only use a Header and Footer plug-in to copy the software that you send to the providers in a centralized location, which gives you the convenient managing of all 10 plug-ins to include Google Analytics, Twitter pixels, custom monitoring code, Gougle DFP code, Google Webmaster / Alexa / Bing / Tradedoubler code. And topic independent: without loosing the inserted script you could change the template!
Ad Inserter – Ad Manager & AdSense Ads
This plugin for inserting brand codes at suitable locations with many advanced promotional apps. Help other forms of ads such as Google AdSense, Google Ad Manager (DFP), Amazon Native Shopping Ad, Media.net and Routing Banners. Supports all kinds of ads.