Trazodone can be given to dogs as needed or as part of a daily schedule. For the treatment of anxiety, it's usually given as a daily medication. However, when trazodone is used to treat anxiety from a certain trigger, such as during storms, it can be given on an as-needed basis.