We had this exact issue when we purchased our home a few years back. Upon a recommendation from our contractor I removed the carpet and pad and got down to the bare concrete floor and applied several coats of Odoban which I purchased from Home Depot.
I also used a black light to mark several...