Go to System → Settings → General

Enter Google Tag Manager ID (Container ID) to enable.

Log in to your Google Tag Manager account and open a container. In the top right corner (next to the Submit and Preview buttons) you’ll see some short text that starts with GTM- and then contains some letters/numbers. That’s your Google Tag Manager ID. The same ID can be found in the Google Tag Manager container’s code snippet.