A simple WordPress plugin for inject the Google Tag Manager JS code snippet into the site <head> and the <noscript> snippet after the open <body> tag.
In order to put the plugin into action you must first define GTM_CONTAINER_ID const in the wp-config.php file and set its value to the container ID you got from GTM.
define( 'GTM_CONTAINER_ID', 'container-id' );