Index: google_analytics/googleanalytics.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/google_analytics/googleanalytics.module,v
retrieving revision 1.16.2.48
diff -u -p -r1.16.2.48 googleanalytics.module
--- google_analytics/googleanalytics.module	14 Sep 2008 10:37:53 -0000	1.16.2.48
+++ google_analytics/googleanalytics.module	3 Oct 2008 19:05:35 -0000
@@ -129,6 +129,14 @@ function googleanalytics_footer($main = 
     if (module_exists('search') && variable_get('googleanalytics_site_search', FALSE) && arg(0) == 'search' && $keys = search_get_keys()) {
       $url_custom = drupal_to_js(url('search/'. arg(1), array('query' => 'search='. $keys)));
     }
+    
+    // If this node is a translation of another node, pass the original node instead.
+    // Check if we're at a node, it supports translation, and its translated node ID (tnid) doesn't match its own node ID.
+    $node = menu_get_object();
+    if ($node && translation_supported_type($node->type) && isset($node->tnid) && ($node->tnid != $node->nid)) {
+      $trans_node = node_load($node->tnid);
+      $url_custom = '"' . drupal_get_path_alias('node/' . $trans_node->nid, $trans_node->language) . '"';
+    }
 
     // Track access denied (403) and file not found (404) pages.
     if (function_exists('drupal_get_headers')) {
