The trackers, used to monitor user behaviour online, were found on thousands of official web pages.