modify analytics_plugin.