Windows 7 did some tracking but no where near the extent 10 does because there was nothing on the OS to really spy on. 7 was designed as a very much an offline OS because at the time it was a world where many people still didn't have reliable high speed broadband. Having said on this there were articles rumouring that MS was bringing more spying to Windows 7 for the people who choose not to upgrade through Windows Update
Windows 10 is built for a permanently connected world, with so much of the OS talking to the web they have much more scope to monitor what you do. I like to compare Windows 10 to a website more than an OS. That's why MS wants to dub it as 'Windows as a Service'.