If you want to install it to GTM, you want to set Custom HTML. Here is how you do it.
Induction method by GTM
(1)Log into Google Tag Manager and click [Work Space]>[New tag]
(2)Click [Work Space]
(3)Click [Custom]>[Custom HTML]
(4)Paste code in HTML enter area.