DCO Insert Analytics Code
Allows you to insert analytics code before or after or before
Envisager une alternative
DCO Insert Analytics Code shows warning signs in 2026 — compare the alternatives below before installing. It runs on 4K+ sites, is rated 5/5 and was last updated 5 years ago, and scores 41/100 on our health check.
- Momentum — Téléchargements en hausse de 55,9 % par rapport aux 30 jours précédents
- Pas de mise à jour dans 5 ans
- Uniquement testé jusqu'à WordPress 5,8 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where DCO Insert Analytics Code stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| analytique | >100 |
| google analytics | >100 |
| métrika | #28 |
| yandex metrica | #37 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 8 avis
About DCO Insert Analytics Code
À partir du Lisez-moi officiel · v1.1.3Description
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
Réglages
- 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
*/
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');
Installation
- Télécharger le dossier
dco-insert-analytics-codedans le répertoire/wp-content/plugins/ - Activez le plugin via le menu « Plugins » dans WordPress
Journal de modifications
1.1.3
- Add settings link to Plugins page
- Correct plugin description
1.1.2
- Constant
DCO_IAC_DO_SHORTCODEreplaced withdco_iac_disable_do_shortcodefilter. Useadd_filter('dco_iac_disable_do_shortcode', '__return_true');to disable shortcodes support.
1.1.1
- Added feature to hide the code
- Added shortcodes support (add constant
define('DCO_IAC_DO_SHORTCODE', false);to wp-config.php for disable)
1.1.0
- Fixed Text Domain
- Added the ability to adjust the show code for logged / not logged users
- Restricted direct access to plugin files
1.0.0
- Communiqué initial
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best DCO Insert Analytics Code alternatives
Tous les plugins d'analyse →FAQ
DCO Insert Analytics Code: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is DCO Insert Analytics Code free?
Yes. DCO Insert Analytics Code is free to download and use from the official WordPress.org plugin directory.
Is DCO Insert Analytics Code safe to use in 2026?
DCO Insert Analytics Code shows warning signs in 2026 — compare the alternatives below before installing. It runs on 4K+ sites, is rated 5/5 and was last updated 5 years ago, and scores 41/100 on our health check.
How many websites use DCO Insert Analytics Code?
DCO Insert Analytics Code is active on 4K+ WordPress websites and has been downloaded 40,395 times since it launched in January 2016. It was downloaded 505 times in the last 30 days.
Does DCO Insert Analytics Code work with WordPress 7.1?
DCO Insert Analytics Code is officially tested up to WordPress 5.8.20, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does DCO Insert Analytics Code need?
DCO Insert Analytics Code requires PHP 5.3 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was DCO Insert Analytics Code last updated?
The latest version, 1.1.3, was released on July 28, 2021 (5 years ago).
Who makes DCO Insert Analytics Code?
DCO Insert Analytics Code is developed and maintained by Denis Yanchevskiy.
What are the best alternatives to DCO Insert Analytics Code?
The most popular alternatives to DCO Insert Analytics Code are Site Kit by Google (5M+ installs), MonsterInsights (2M+ installs) and WP Statistics (500K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit


