diff --git a/ga_node_reports.module b/ga_node_reports.module
index 6e47c09..bc3fba0 100644
--- a/ga_node_reports.module
+++ b/ga_node_reports.module
@@ -82,3 +82,19 @@ function ga_node_reports_view_node_access($node) {
   }
   return $return;
 }
+
+/**
+ * Implements hook_google_analytics_reports_api_reported_data_alter().
+ */
+function sykepleien_statistics_google_analytics_reports_api_reported_data_alter(&$name, &$value) {
+  switch ($name) {
+    case 'date':
+      // Convert Google Analytics date to timestamp, to be able to process
+      // it correctly in Drupal. Should not be used if value is already an
+      // integer, because it would double convert it and break the timestamp.
+      if (!is_int($value)) {
+        $value = strtotime($value);
+      }
+      break;
+  }
+}
