diff --git a/googleanalytics.module b/googleanalytics.module
old mode 100644
new mode 100755
index 5cfaffe..b451f3f
--- a/googleanalytics.module
+++ b/googleanalytics.module
@@ -339,6 +339,10 @@ function googleanalytics_page_alter(&$page) {
     if (!empty($url_custom)) {
       $script .= 'ga("set", "page", ' . $url_custom . ');';
     }
+
+    // Allow others to alter the script before it is being sent
+    drupal_alter('googleanalytics_before_send', $script);
+
     $script .= 'ga("send", "pageview");';
 
     if (!empty($message_events)) {
