I don't think that just because she is going in certain places you can rule out a UTI. It's best to take her to the vet.

Now with that said here are my suggestions. If you can roll back the carpet and replace the pad underneath will help. If it has soaked through to the subfloor I would paint it with an oil-based primer, like Kilz, so it will seal the stain and smell. If you can't replace the pad then I would soak it with the enzyme killer and let it completely air dry if possible and then do the same for your carpet.

If it's behavior then try Feliway spray and/or plug-ins. That should help her calm down hopefully. You can get them at petstores online or brick and mortar.