Does she dig in one area (along the fence), or is it all over the yard?

A nice alternative might be getting her a kid's sandbox. Tell her "No!" for digging in the yard, redirect her to the sandbox and let her dig there instead.