We have no idea if mammals can sense magnetic fields.
Maybe bats. And maybe many mammals including dogs and humans.
But we don't actually know.
Which makes me sad. It should not be hard to do properly. Harder than looking at dog poop, but possible.
None of the studies done have been done properly. Many have been disproven.