DCO Insert Analytics Code
Allows you to insert analytics code before or after or before
Considere uma alternativa
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 — downloads up 55.9% vs the previous 30 days
- Nenhuma atualização em 5 anos
- Testado apenas até WordPress 5.8 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where DCO Insert Analytics Code stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| analytics | >100 |
| Google Analytics | >100 |
| metrika | #28 |
| yandex metrica | #37 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 8 comentários
About DCO Insert Analytics Code
From the official readme · v1.1.3Descrição
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>
Uso
After installation and activation, you can insert the necessary code to the respective fields on the plugin settings page.
GitHub
Definições
- 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');
Instalação
- Upload
dco-insert-analytics-codefolder to the/wp-content/plugins/directory - Ative o plugin através do menu 'Plugins' em WordPress
Log de Changes
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
- Initial Release
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best DCO Insert Analytics Code alternatives
All analytics plugins →FAQ
DCO Insert Analytics Code: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: 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).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito


