You can get rotation data from the built in tracker. Make sure you select it when setting up your track. You’ll have to track two different points. Good luck.
If you use a light as your emitter, you can simply draw a path using the mask tool, and copy and paste the mask’s path data into the lights position property.