There is a current service - builtwith.com - that does a nice job of productizing this type of research - eg:
Here is an example search that can extract the IDs from Google Analytics code on websites into a downloadable list https://nerdydata.com/search?query=UA-%5Cd%2B-%5Cd%2B®ex=...