
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.
Add WhatsApp Chat to your site to communicate with visitors, deliver instant support, and create a smoother, more trustworthy user experience.
Show Google Play reviews for your Android app to build trust, strengthen credibility, and help visitors make confident download decisions.
Show eBay reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions that support higher sales.
Enhance titles with highlighted headlines that use custom colors, animations, and styles to draw attention and help visitors notice key messages.
Use feature voting so users submit ideas, vote on requests, and help you prioritize product updates by real customer demand.
Use tilted image effects to rotate visuals, add creative style, and keep visitors engaged with dynamic images on your site.
Add opening hours to your site to give visitors clear, reliable business information that improves trust, reduces confusion, and supports user experience.
Use a news ticker to display headlines and updates that highlight key information and keep users informed in real time.

Show Mastodon posts in a live Mastodon feed that keeps content fresh, strengthens your social presence, and helps visitors engage with your updates.
Scroll to element button that improves navigation by letting visitors jump directly to key sections, reducing friction and boosting overall engagement.
Display discounts with a coupon bar that highlights special offers, drives urgency, and helps convert visitors into paying customers.
Manage appointments with an appointment booking widget that lets visitors schedule easily, syncs calendars, sends reminders, and creates a smoother booking experience.
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!
