The placement of code snippets provided by Google Tag Manager is really important. Try using HFCM plugin in WordPress to add the code in the specific place as recommended below, this gives you more flexibility to add the code:- To place GTM code, you need to add two snippets to your website's code. The first snippet, enclosed in tags, should be placed as high as possible within the section, ideally after the opening tag. The second snippet, enclosed in a tag, should be placed immediately after the opening tag.