Until https://github.com/Doyban/Doyban-Website/issues/26 isn't fixed, Google Tag Manager code needs to be added manually to generated server/plugins/extend-html.ts and it needs to be build with nuxi build, then firebase deploy.
server/plugins/extend-html.ts
nuxi build
firebase deploy