This behavior sounds like it may be a pre-seizure episode which may or may not turn into actual epileptic seizures. Usually veterinarians run a blood profile and urinalysis to check for any internal canine health issues such as low blood sugar for example that may be present. If so they can be treated and the seizures stop.
In the vast majority of canine epilepsy cases, lab tests come back normal. If these episodes do become seizures then your vet will prescribe appropriate medications such as phenobarbital for your dog.
We have had some of our epileptic canine patients stop experiencing seizures and eliminate the need for prescription medications, by adding a natural dog vitamin supplement to the dogs diet. The vitamins act by balancing out certain trace vitamin-mineral deficiencies such as magnesium that can be the root cause of seizures.
Should you want to follow up with me, that would be fine.
Dr Carol Osborne, DVM