Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for Google Analytics #93

Open
danielbachhuber opened this issue Jan 3, 2017 · 3 comments
Open

Check for Google Analytics #93

danielbachhuber opened this issue Jan 3, 2017 · 3 comments

Comments

@danielbachhuber
Copy link
Member

Production sites probably need to make sure Google Analytics is present.

@Sidsector9
Copy link
Member

@danielbachhuber , should this feature scan every file for the ga() function?

@danielbachhuber
Copy link
Member Author

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

@schlessera
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants