added analytics snippets