diff --git a/comscore_direct.admin.inc b/comscore_direct.admin.inc
index 723f7e1..58f66e9 100644
--- a/comscore_direct.admin.inc
+++ b/comscore_direct.admin.inc
@@ -6,6 +6,7 @@
  *
  */
 function comscore_direct_form() {
+  global $base_url;
   $form = array();
   $form['comscore_direct_id'] = array(
       '#title' => t('comScore site id'),
@@ -32,6 +33,12 @@ function comscore_direct_form() {
       '#description' => t('Alphanumeric value for Publisher’s own segment for the machine the content asset is being served to (optional)'),
       '#default_value' => variable_get('comscore_direct_clientseg', '')
   );
+  $form['comscore_direct_baseurl'] = array(
+      '#title' => t('Base URL'),
+      '#type' => 'textfield',
+      '#description' => t('This is your site URL and will be used for the c4 parameter.  If empty, the default will be: %base_url', array('%base_url' => $base_url)),
+      '#default_value' => variable_get('comscore_direct_baseurl', '')
+  );
   return system_settings_form($form);
 }
 
diff --git a/comscore_direct.module b/comscore_direct.module
index 2439a6d..bc274fc 100644
--- a/comscore_direct.module
+++ b/comscore_direct.module
@@ -35,7 +35,9 @@ function comscore_direct_menu() {
  * Implementation of hook_footer().
  */
 function comscore_direct_footer($main = 0) {
-  $path = $_SERVER['HTTP_HOST'] . request_uri();
+  global $base_url;
+  $com_base_url = variable_get('comscore_direct_baseurl', '');
+  $path = (!empty($com_base_url) ? $com_base_url : $base_url) . request_uri();
   $com_id = check_plain(variable_get('comscore_direct_id', ''));
   $com_genre = check_plain(variable_get('comscore_direct_genre', ''));
   $comid_package = check_plain(variable_get('comscore_direct_package', ''));
