Update analytics-plugin.php

Layout to another function