Fixes #347: updated google anaytics code implementation