Integrate analytics with project directories

Fixes #4