WordPress plugin intelligence profile

DCO Insert Analytics Code

Allows you to insert analytics code before </head> or after <body> or before </body>

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 5.8
Current version1.1.3
WordPress coverageTested up to WordPress 5.8
Minimum stackWP 4.6 · PHP 5.3
Directory statusactive
Last directory update28 Jul 20215y ago
Active installations4K+Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 8 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records DCO Insert Analytics Code version 1.1.3 as active, updated 5y ago and tested up to WordPress 5.8.

Overview

About this plugin

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>

Usage

After installation and activation, you can insert the necessary code to the respective fields on the plugin settings page.

GitHub

Settings

  • Before </head> code
  • After <body> code
  • Before </body> code

Filters list

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

Examples of using filters

Hardcoding override plugin settings

/* * $current - current plugin settings * * $options - plugin settings from database * * $default - default plugin settings */

-- 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');

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • google analytics
  • yandex metrica
  • metrika
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 5.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 5.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to5.8
Minimum requirementsWordPress 4.6 · PHP 5.3
Update activity28 Jul 20215y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.