Search code examples
umbraco

adding GTM code to umbraco 4 website


My client has a website running on umbraco v4, i need to insert GTM code right after the body of the website.

The website cms is very old, i don't have any option of editing code in it or add any, only creating pages.

so i downloaded the website with the FTP but i cant find any index to edit, is anyone familar with how to add code in this kind of system?

couldn't find anything on the internet of course, and i tried to ask around https://our.umbraco.org but nobody is responding to my questions


Solution

  • If you've downloaded the whole thing, there should be a /masterpages/ folder containing, well, master pages. One of the master pages should contain the </body> tag and you can edit it using Notepad or whatever :-)

    EDIT: In this case it was an MVC based site, meaning the "master pages" were located in the /Views/ folder instead.