I am trying to set up RUM, as a first step I tried to inject RUM javascript into an html, but I can see in the console that the calls for the same are returning "
There are several possible reasons, one of them, surprisingly, can be missing license for Digital experience (DEM units) in classic licensing, other can be disabled RUM on the process group (it is enabled by default). Please provide more context of your situation. I recommend running the healthcheck as shown here. where you will likely more detail about the reason.