Update analytics-plugin.php

Bug fixing