diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index 7c3c067efab0acde8fcaa14c88a7c259f2f34421..5d663feb0facac07ab554b8e2d1ad40008c84a31 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -600,6 +600,12 @@ class Configuration(object):
                  "in conjuction with --log-format-name=w3c_extended.\n"
                  "Example: --w3c-fields='#Fields: date time c-ip ...'"
         )
+        option_parser.add_option(
+            '--title-category-delimiter', dest='title_category_delimiter', default='/',
+            help="If --enable-http-errors is used, errors are shown in the page titles report. If you have "
+            "changed General.action_title_category_delimiter in your Piwik configuration, you need to set this "
+            "option to the same value in order to get a pretty page titles report."
+        )
         return option_parser
 
     def _set_w3c_field_map(self, option, opt_str, value, parser):
@@ -1411,10 +1417,14 @@ class Recorder(object):
             args['cvar'] = '{"1":["HTTP-code","%s"]}' % hit.status
 
         if hit.is_error or hit.is_redirect:
-			args['action_name'] = '%s/URL = %s%s' % (
+			args['action_name'] = '%s%sURL = %s%s' % (
 				hit.status,
+				config.options.title_category_delimiter,
 				urllib.quote(args['url'], ''),
-				("/From = %s" % urllib.quote(args['urlref'], '') if args['urlref'] != ''  else '')
+				("%sFrom = %s" % ( 
+					config.options.title_category_delimiter,
+					urllib.quote(args['urlref'], '')
+				) if args['urlref'] != ''  else '')
 			)
 
         if hit.generation_time_milli > 0: