update analytics code
Merge pull request #3 from anatomics/local

update analytics code