added analytics code
Merge pull request #5 from ryusukefuda/apmac

added analytics code