=== DCO Insert Analytics Code === Contributors: denisco Donate link: https://www.paypal.me/yadenis Tags: analytics, metrika, yandex metrica, google analytics Requires at least: 4.4 Tested up to: 4.5 Stable tag: 1.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Allows you to insert analytics code before </head> or after <body> or before </body> == Description == [GitHub](https://github.com/Denis-co/DCO-Insert-Analytics-Code "GitHub plugin repository") 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. = 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_after_body** Filter to change the code is inserted before <body> **dco_iac_insert_before_body** Filter to change the code is inserted before </body> == Installation == 1. Upload `dco-insert-analytics-code` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == = I put the code on the plugin settings page, but it does not appear on the site. What could be the reason? = * For correct work plugin your theme must support [wp_head action hook](https://developer.wordpress.org/reference/functions/wp_head/) and [wp_footer action hook](https://developer.wordpress.org/reference/functions/wp_footer/). * If you are using plugins for caching you need to clear the cache to apply the changes. == Screenshots == 1. Settings page 2. Example page == Changelog == = 1.0.0 = * Initial Release