The first step is made in your Google Tag Manager account


Log in to your Google Tag Manager account at https://tagmanager.google.com/#/home 

Click the Cog shape to the top right of your relevant Tag Manager instance


Click Install Google Tag Manager


Copy the code in the top box using the copy icon on the right

The second step is made in your Magento 1 Admin


Log into your Magento 1 admin

Navigate to System -> Configuration


Under the GENERAL tab click Design then HTML Head

Find the Miscellaneous Scripts section and add the code copied from Tag Manager in this box. 


Once the changes have been performed press the Save Configuration button at the top right and flush Magento Cache.


How to check if GTM code is present on your website

The easiest way to verify that Google Tag Manager code is present on your website is to check the source code of your Magento 1 store frontend.

On the homepage of your website right click -> view page source and search for “Google Tag Manager.” If Google Tag Manager has been added successfully, you will see code similar to this: