We can tell this because it's saying dairy products WERE CONSUMED. The use of the being verb (were) indicates the passive voice.
To change this to active voice, the being verb needs to be eliminated. It is helpful to make the one who is doing the action come at the beginning of the sentence.
North Africans consumed dairy products as early as 7000 years ago -- that is now in the active voice.