Made it work when run from DOCUMENT_ROOT

Also added Google Analytics