The sonic spike works on moles, I do not have a gopher problem. This is the way I do it.
I want the moles in my garden during the summer months because they eat the slugs and cutworms and such, but around February or March the sonic spike goes in to protect garlic and onions. I take it out in May and let the moles back in.
https://www.victorpest.com/victor-so...ic-spike-m9014
Good Luck