
DCO Insert Analytics Code is a WordPress plugin is intended for insert analytics code(or any custom code) before </head> or after <body> or before </body>
After installation and activation, you can insert the necessary code to the respective fields on the plugin settings page.
GitHub
dco_iac_get_options
Filter for hardcoding override plugin settings. You won’t be able to edit them on the settings page anymore when using this filter.
dco_iac_insert_before_head
Filter to change the code is inserted before </head>
dco_iac_insert_before_head_show
Filter to change show the code is inserted before </head>
dco_iac_insert_after_body
Filter to change the code is inserted after <body>
dco_iac_insert_after_body_show
Filter to change show the code is inserted after <body>
dco_iac_insert_before_body
Filter to change the code is inserted before </body>
dco_iac_insert_before_body_show
Filter to change show the code is inserted before </body>
dco_iac_disable_do_shortcode
Filter to disable shortcode processing in inserted codes
Hardcoding override plugin settings
/* * $current - current plugin settings * * $options - plugin settings from database * * $default - default plugin settings */ function custom_get_options($current, $options, $default) { $array = array( 'before_head' => '<!-- before </head> -->', 'before_head_show' => '0', 'after_body' => '<!-- after <body> -->', 'after_body_show' => '1', 'before_body' => '<!-- before </body> -->', 'before_body_show' => '2' ); return $array; } add_filter('dco_iac_get_options', 'custom_get_options', 10, 3); Change before </head> code
/* * $code - value from "before </head>" setting */ function custom_before_head_code( $code ) { return $code . '<!-- before <head> -->' . "\n"; } add_filter( 'dco_iac_insert_before_head', 'custom_before_head_code' ); Change before </body> code show
/* * $value - value from "before </body> show" setting */ function custom_before_head_code( $value ) { return '2'; } add_filter( 'dco_iac_insert_before_body_show', 'custom_before_body_show' ); Disable shortcode processing in insert codes
add_filter('dco_iac_disable_do_shortcode', '__return_true'); Starting from $0 per month.
Rating
Reviewers
8 reviews
Tags
Developed By
Denis Yanchevskiy
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Create interactive flash cards that present questions and answers in a clear, customizable format to support learning, training, and user engagement.
Showcase visuals with an image slider that displays multiple images in a smooth slideshow, improves design, and keeps visitors engaged.
Use skill flip cards to showcase your abilities in a clear, interactive format that strengthens your profile and improves your chances of getting hired.
Use tabs to organize content into clear sections, improve navigation, and help visitors switch between topics quickly for a smoother user experience.
Create a mega footer that organizes navigation links, contact info, logos, social icons and improves usability and site structure.

Create consent forms that collect signatures, save submissions, send notifications, and help you manage approvals efficiently.
Use a reviews badge to highlight your ratings, build trust at a glance, improve credibility, and help increase conversions across your site.
Use a notification bar to alert users, highlight offers, and drive clicks that boost engagement, signups, and conversions.

Add a Google powered search bar that delivers relevant results, improves navigation, and helps visitors find content fast.
Showcase content with a card slider that presents images, text, and buttons in a smooth, customizable layout to keep visitors engaged.
Use a live weather forecast widget to show current conditions and upcoming predictions, giving visitors real time local weather updates for better planning.
Add Messenger Chat to your site to communicate with visitors, offer fast support, and create a smoother user experience across all pages.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
