Both are common, this "Three years ago" is much, much more common. Google.... " sounds slightly rough or informal to me, though I have heard that form used numerous times.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.