Google Tag Manager code

Has anyone had any luck using the Google Tag Manager code? The embed option inserts the code in a div which makes the code not work.

Nevermind: it works when you insert it into the custom code section in the dashboard.