diff --git a/shynet/analytics/views/ingress.py b/shynet/analytics/views/ingress.py index cd925ea..ed8141e 100644 --- a/shynet/analytics/views/ingress.py +++ b/shynet/analytics/views/ingress.py @@ -15,8 +15,8 @@ from ..tasks import ingress_request def ingress(request, service_uuid, identifier, tracker, payload): time = timezone.now() client_ip, is_routable = get_client_ip(request) - location = request.META.get("HTTP_REFERER") or "" - user_agent = request.META.get("HTTP_USER_AGENT") or "" + location = request.META.get("HTTP_REFERER", "").strip() + user_agent = request.META.get("HTTP_USER_AGENT", "").strip() ingress_request.delay( service_uuid, diff --git a/shynet/dashboard/templates/dashboard/pages/service_update.html b/shynet/dashboard/templates/dashboard/pages/service_update.html index 7bd739a..ff0a534 100644 --- a/shynet/dashboard/templates/dashboard/pages/service_update.html +++ b/shynet/dashboard/templates/dashboard/pages/service_update.html @@ -14,8 +14,8 @@
Place the following snippet at the end of the <body>
tag on any page you'd like to track.