Index: googleanalytics.module
===================================================================
--- googleanalytics.module      (revision 2255)
+++ googleanalytics.module      (working copy)
@@ -53,7 +53,7 @@
       $js_file = ($legacy_version) ? 'urchin.js' : 'ga.js';
       $url = 'http://www.google-analytics.com/'. $js_file;

-      if (variable_get('googleanalytics_cache', 0) && (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC) == FILE_DOWNLOADS_PUBLIC) && $source = _googleanalytics_cache($url)) {
+      if (variable_get('googleanalytics_cache', 0) && $source = _googleanalytics_cache($url)) {
         drupal_add_js($source, 'module', $scope);
       }
       else {
@@ -543,7 +543,7 @@
  *   The path to the local javascript file on success, boolean FALSE on failure.
  */
 function _googleanalytics_cache($location) {
-  $directory = file_directory_path() .'/googleanalytics';
+  $directory = file_directory_path() .'/js/googleanalytics';
   $file_destination = $directory .'/'. basename($location);
   if (!file_exists($file_destination)) {
     $result = drupal_http_request($location);

