magento-hackathon / UniversalGaConversionTracking

15 stars 15 forks source link

Check response code of request() call #7

Open peterjaap opened 10 years ago

peterjaap commented 10 years ago

Response Codes

The Measurement Protocol will return a 2xx status code if the HTTP request was received. The Measurement Protocol does not return an error code if the payload data was malformed, or if the data in the payload was incorrect or was not processed by Google Analytics.

If you do not get a 2xx status code, you should NOT retry the request. Instead, you should stop and correct any errors in your HTTP request.

peterjaap commented 10 years ago

Keep track of which requests did not return a 2xx status; maybe make a list in a grid?

BasBlanken commented 10 years ago

Log table might be overkill seeing normal users wont be able to fix errors, maybe adding debug mode setting; if on, write error data to log file