Hi
Are you sure that is the correct code? According to this page:https://developers.google.com/tag-platform/tag-manager/web it should be quite different.
I think there might also be an error on the custom_js module. What actually happens when you paste your code into the Custom Javascript box and click ‘save”?