Google-analytics plugin removed but main edited

You need to upload the google-analytic in a fresh install. Since the code works on if-based condition I removed its local copy -> faster download and if no net also.

You need to copy
<?php
if (file_exists(DOKU_PLUGIN.'googleanalytics/code.php')) include_once(DOKU_PLUGIN.'googleanalytics/code.php');
if (function_exists('ga_google_analytics_code')) ga_google_analytics_code();
?>
into main.php of your template

And the tracking ID  UA-46664025-1 in the settings page under plugin settings.

And you are good to go!!! :-)