How to add Google Tag Manager code in Magento 2
For Magento 2.1.x, 2.2.x and 2.3.x
Documentation & Installation Guide
Download the package and paste under app/code folder
composer require anees/magento2-aneesgtm
If you encounter any problems or bugs, please open an issue on GitHub. Support
Need help setting up or want to customize this extension to meet your business needs? Please email firstname.lastname@example.org and if we like your idea we will add this feature for free or at a discounted rate.