
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
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds 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.
Show key stats with an animated number counter that draws attention, adds social proof, and helps increase trust and conversions.
Present dishes with restaurant menu flip cards that highlight key details, help visitors explore options easily, and support confident ordering decisions.
Add announcements to your site to share important updates, keep visitors informed, and guide them toward actions that support engagement and conversions.
Showcase visuals with a multi row image slider that displays images in layered rows, improves design, and helps visitors explore content more easily.
Use a process widget to present tasks in a clear visual sequence, showing each step with images and text to improve understanding and user engagement.
Add Telegram Chat to your site to communicate with visitors, deliver instant support, and provide a smoother, more reliable user experience.
Show inspiring quotes with a quotes carousel that rotates messages, enhances design, and keeps visitors engaged.
Add WhatsApp Chat to your site to communicate with visitors, deliver instant support, and create a smoother, more trustworthy user experience.
Use a coupon popup to highlight special offers, capture email leads, reduce cart abandonment, and turn more visitors into paying customers.
Add a floating corner pop-up to display updates or calls to action without disrupting the user experience or site flow.

Show Vimeo videos in a Vimeo feed that keeps content fresh and helps visitors discover more of your video library.
Create interactive flash cards that present questions and answers in a clear, customizable format to support learning, training, and user engagement.
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!
