diff --git a/ga_stats.info b/ga_stats.info
index 45272f3..967a894 100755
--- a/ga_stats.info
+++ b/ga_stats.info
@@ -2,3 +2,11 @@ core = "7.x"
 description = "Allows you to pull in data that Google Analytics has gathered for your site and use it in Views."
 name = "Google Analytics Statistics"
 package = "Statistics"
+
+
+; Information added by drush on 2014-03-24
+version = "7.x-1.0-beta2"
+core = "7.x"
+project = "ga_stats"
+datestamp = "1395669027"
+
diff --git a/ga_stats.module b/ga_stats.module
index b8dfeab..00566de 100755
--- a/ga_stats.module
+++ b/ga_stats.module
@@ -14,6 +14,9 @@ function ga_stats_get_data($metric, $start_time, $end_time, $timeframe='') {
   $data_array = ga_stats_ga_data($metric, $start_time, $end_time);
   $metrics = ga_stats_ga_metrics();
   $counts = array();
+  $nids = array();
+  $indexing_enabled = variable_get('ga_stats_enable_indexing', FALSE);
+
   foreach ($data_array as $d) {
     $count = new stdClass;
     $count->url = $d['url'];
@@ -27,13 +30,23 @@ function ga_stats_get_data($metric, $start_time, $end_time, $timeframe='') {
     }
     if (preg_match('/^node\/([0-9]*)/', $alias, $matches)  ) {
       $count->nid = $matches[1];
+
+      // If search api integration is enabled, save the nids.
+      if ($indexing_enabled) {
+        $nids[] = $count->nid;
+      }
     }
 
-    // only log nodes
+    // only log nodes.
     if ($count->nid) {
       $counts[] = $count;
     }
   }
+
+  // Queue updated notes.
+  if ($indexing_enabled) {
+    search_api_track_item_change('node', $nids);
+  }
   
   return $counts;
 }
@@ -223,6 +236,12 @@ function ga_stats_admin_settings() {
     '#description' => t('The max results that a call (a metric/timeframe combination) can return. MUST be a number.'),
     '#default_value' => variable_get('ga_stats_max_results', '100')
   );
+
+  $form['ga_stats_enable_indexing'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Integrate with search API index'),
+    '#description' => t('Make the search results available for the search index (requires reindexing after stat updates)'),
+  );
   
   if (variable_get('ga_stats_profile', FALSE)) {
     $form['actions']['ga_stats_update'] = array(
@@ -249,3 +268,96 @@ function ga_stats_form_validate($form, &$form_state) {
 function ga_stats_write_count($count) {
   drupal_write_record('ga_stats_count', $count);
 }
+
+/**
+ * Implements hook_entity_property_info_alter().
+ *
+ * Add stats as properties for the node.
+ */
+function ga_stats_entity_property_info_alter(&$info) {
+  $indexing_enabled = variable_get('ga_stats_enable_indexing', FALSE);
+  
+  if (!$indexing_enabled) {
+    return;
+  }
+
+  $metrics = ga_stats_ga_metrics();
+  $timeframes = ga_stats_ga_timeframes(TRUE, FALSE);
+
+  foreach ($metrics as $m_key => $metric) {
+    foreach ($timeframes as $t_key => $timeframe) {
+      $info['node']['properties'][$m_key . '_' . $t_key] = array(
+        'type' => 'integer',
+        'label' => t($metric . ' ' . $timeframe),
+        'sanitized' => TRUE,
+        'getter callback' => '_ga_stats_stat_value_getter_callback',
+      );
+    }
+  }
+}
+
+/**
+ * Getter callback for hook_entity_property_info_alter().
+ *
+ * Deliberately empty getter callback.
+ * We only want to populate the field when indexing.
+ */
+function _ga_stats_stat_value_getter_callback($item, $info, $key) {
+  return 0;
+}
+
+/**
+ * Implements hook_search_api_index_items_alter().
+ *
+ * Add retrieved stats to the index.
+ */
+function ga_stats_search_api_index_items_alter(array &$items, SearchApiIndex $index) {
+  $indexing_enabled = variable_get('ga_stats_enable_indexing', FALSE);
+  // GA stats only supports nodes.
+  $first = current($items);
+  if (empty($first->nid) || !$indexing_enabled) {
+    return;
+  }
+
+  $nids = array_keys($items);
+
+  // Retrieve statistics from database.
+  $results = db_select('ga_stats_count', 'gsc') 
+  ->fields('gsc')
+  ->condition('nid', $nids, 'IN')
+  ->execute();   
+
+  $stats_by_nid = array(); 
+  $metrics = array();  
+
+  while($result = $results->fetchAssoc()) { 
+    $key = $result['nid'] . ':' . $result['metric'] . '_' . $result['timeframe']; 
+    $stats_by_nid[$key] = $result;   
+  }
+
+  if (empty($stats_by_nid)) {
+    return;
+  }
+
+  // Create the metric-timeframe keys.
+  $metrics = ga_stats_ga_metrics();
+  $timeframes = ga_stats_ga_timeframes(TRUE, FALSE);
+  $all_metrics = array();
+
+  foreach ($metrics as $metric) {
+    foreach ($timeframes as $timeframe) {
+      $all_metrics[] = $metric . '_' . $timeframe;
+    }
+  }
+
+  // Add the count to the item.
+  foreach ($items as $id => &$item) { 
+    foreach ($all_metrics as $metric) { 
+      if (empty($stats_by_nid[$item->nid . ':' . $metric]['count'])) {
+        continue; 
+      }   
+      $items[$id]->$metric = $stats_by_nid[$item->nid . ':' . $metric]['count'];  
+    }
+  }
+}
+
