Skip to content


Fixed: utmdebug flag when set causes 500 #3

wants to merge 1 commit into from

1 participant


Setting the utmdebug to any value causes a 500 to appear, this is due to:

a) The X-GA-MOBILE-URL header value is being assigned to the request rather than the response, and
b) utmurl is being used instead of utm_url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 4, 2011
  1. Fixed: utmflag when set causes 500

    bmorrall committed
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  RailsApplication1/app/controllers/ga_controller.rb
2  RailsApplication1/app/controllers/ga_controller.rb
@@ -135,7 +135,7 @@ def track_pageview
# If the debug parameter is on, add a header to the response that contains
# the url that was used to contact Google Analytics.
unless params[:utmdebug].blank?
- request.headers["X-GA-MOBILE-URL:"] = utmurl
+ response.headers["X-GA-MOBILE-URL"] = utm_url
# Finally write the gif data to the response.
Something went wrong with that request. Please try again.