Check for Google Analytics
Production sites probably need to make sure Google Analytics is present.
@danielbachhuber , should this feature scan every file for the ga() function?
should this feature scan every file for the ga() function?
I was thinking we'd implement some form of Template_Render check and then scan the rendered template.
See how wp profile renders the template here: https://github.com/wp-cli/profile-command/blob/master/inc/class-profiler.php#L449-L451
There are dozens of different tracking solutions, and there's overarching "tag consolidation" like Google Tag Manager.
You'd need to check for "a tracking solution", but I don't think you can reliably do that. Google Analytics just happens to be one of the more popular ones because it is free.