diff --git a/googleanalytics.module b/googleanalytics.module
index 7ccccb6..114c8e4 100644
--- a/googleanalytics.module
+++ b/googleanalytics.module
@@ -103,6 +103,15 @@ function googleanalytics_footer($main = 0) {
   global $user;
 
   $id = variable_get('googleanalytics_account', '');
+  
+  $result = module_invoke_all('other_google_analytics_number');
+  $other_id = $result[0];
+  
+  // if Google Analytics account is not setup use form-specific UA number and unset $other_id, so there is no double tracking
+  if (empty($id) && !empty($other_id)){
+    $id = $other_id;
+    $other_id = '';
+  }
 
   // 1. Check if the GA account number has a value.
   // 2. Track page views based on visibility value.
@@ -237,6 +246,10 @@ function googleanalytics_footer($main = 0) {
     else {
       $script .= '_gaq.push(["_trackPageview", ' . $url_custom . ']);';
     }
+    
+    if (!empty($other_id)){
+      $script .= '_gaq.push(["b._setAccount", "' . $other_id . '"], ["b._trackPageview"]);';
+    } 
 
     if (variable_get('googleanalytics_trackpageloadtime', 0)) {
       $script .= '_gaq.push(["_trackPageLoadTime"]);';
