Trick question! Both are great for back pain in dogs, they just help in different ways. Apply cold compresses like ice packs or frozen peas to the site of an injury to reduce inflammation and pain immediately after a minor injury and up to two days following.  After two days, most physical therapists recommend switching to a warm compress to help dilate blood vessels and help muscles relax—that’ll help a lot more with dog back pain at this stage.