2003 Grand Am Trac Off light on

2003 Pontiac grand am “Trac Off” light on in some when car was stoped. Light will auto turn off (at the most of time) when drive 30~60 sec later. From owner manual, it said properly is engine problem.

But, if it is speed sensor problem, how to determine which side of sensor need to be checked? Thanks,