- Navigate to your Magento project root folder:
cd /path/to/magento
- Run the following commands:
composer require acid-unit/module-google-tag-manager
bin/magento module:enable AcidUnit_GoogleTagManager
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
After installation, ensure the module is properly enabled by running:
bin/magento module:status | grep GoogleTagManager
If installed correctly, you should see:
AcidUnit_GoogleTagManager