keithclark / gadebugger

A Chrome, Firefox & Opera devtools extension for debugging Google Analytics tracking code
https://keithclark.github.io/gadebugger/
MIT License
238 stars 65 forks source link

Double data in Chrome #31

Closed lembitk closed 8 years ago

lembitk commented 8 years ago

Somehow all data (pageviews, events) is double-logged, please check the screenshot:

gadebugger-chrome-double-data

I'm sure it's not the fault of my tracking code implementation or a problem with my event tracking JS, because, for one, double data doesn't occur in Firefox devtools (Google Analytics Debugger v2.1.1). Also, Chrome's Google Tag Assistant reports "1 Pageview Requests", "1 Events" every time when GA Debugger reports 2.

keithclark commented 8 years ago

Thanks for the bug report.

GA Debugger watches for HTTP(S) requests to the GA domain and logs a beacon for each one. It looks like Chrome is now forcing all HTTP beacon requests to GA to be re-transmitted over HTTPS as a result of HTTP Strict Transport Security (HSTS), this is why you're seeing two requests in the extension.

Request Headers:

Request URL:http://www.google-analytics.com/collect?...
Request Method:GET
Status Code:307 Internal Redirect

Response Headers:

Location:https://www.google-analytics.com/collect?
Non-Authoritative-Reason:HSTS
lembitk commented 8 years ago

Thanks for the answer, and thank you for making such a handy tool.

keithclark commented 8 years ago

32 should fix the issue.

keithclark commented 8 years ago

Bug fixed and deployed in v2.1.2.