Divante Google Tag Manager is a basic module for Magento 2 to install your individual GTM ID on every shop page.
Follow the steps to get well without trouble with the installation process.
composer require divante-ltd/magento2-gtm
php -f bin/magento module:enable Divante_GoogleTagManager
php -f bin/magento setup:upgrade
Enable module and provide your Google Tag Manager credentials in admin panel:
Stores > Configuration > Sales > Google API > Google Tag Manager