diff --git a/ga_stats.module b/ga_stats.module
index d96616a..114de57 100755
--- a/ga_stats.module
+++ b/ga_stats.module
@@ -23,7 +23,12 @@ function ga_stats_get_data($metric, $start_time, $end_time, $timeframe='') {
     $count->timeframe = $timeframe;
     $alias = preg_replace('/^\//', '', $count->url);
     if (!preg_match('/^node\/([0-9]*)/', $alias, $matches) ) {
-      $alias = drupal_lookup_path('source', $alias);
+      list($locale_status, $locale_alias) = language_url_split_prefix($alias, _ga_stats_get_enabled_languages ());
+      if($locale_status) {
+        $alias = drupal_lookup_path('source', $locale_alias, $locale_status->language);
+      } else {
+        $alias = drupal_lookup_path('source', $alias);
+      }
     }
     if (preg_match('/^node\/([0-9]*)/', $alias, $matches)  ) {
       $count->nid = $matches[1];
@@ -90,7 +95,7 @@ function ga_stats_update_counts() {
         $data= array_merge($data, $new_data);
       }
     }
-  
+  dsm($new_data);
     db_query('DELETE FROM {ga_stats_count}');
     foreach ($data as $obj) {
       ga_stats_write_count($obj);
@@ -236,4 +241,12 @@ function ga_stats_form_validate($form, &$form_state) {
 
 function ga_stats_write_count($count) {
   drupal_write_record('ga_stats_count', $count);
+}
+
+function _ga_stats_get_enabled_languages () {
+  $languages = language_list('language');
+  foreach ($lanuages as $key => $language) {
+    if(!$language->enabled) unset($languages[$key]);
+  }
+  return $languages;
 }
\ No newline at end of file
