diff --git a/piwik.module b/piwik.module
index 15181e0..ed74d60 100644
--- a/piwik.module
+++ b/piwik.module
@@ -422,7 +422,7 @@ function piwik_preprocess_search_results(&$variables) {
   // found. But the pager item mumber can tell the number of search results.
   global $pager_total_items;
 
-  drupal_add_js('window.piwik_search_results = ' . intval($pager_total_items[0]) . ';', array('type' => 'inline', 'group' => JS_LIBRARY-1));
+  drupal_add_js('window.piwik_search_results = ' . intval($pager_total_items[0]) . ';', array('type' => 'inline', 'group' => JS_LIBRARY-1, 'force header' => TRUE));
 }
 
 /**
