gadebugger icon indicating copy to clipboard operation
gadebugger copied to clipboard

Transaction ID may be Text rather than Integer

Open steverabino opened this issue 8 years ago • 1 comments
trafficstars

According to https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#transaction and https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce#item, Transaction ID in each of these scenarios is a Text field.

However, I believe GA Debugger is parsing the ID as an integer, which gives us a different result to GA when using Transaction IDs that are not pure Integers.

I think this is being done https://github.com/keithclark/gadebugger/blob/master/src/core/utmBeacon.js#L246 and https://github.com/keithclark/gadebugger/blob/master/src/core/utmBeacon.js#L262.

cc/ @NGMarmaduke who originally found the issue

steverabino avatar May 21 '17 21:05 steverabino

Hey Steve!

Thanks for taking the time to do the investigation work - that makes complete sense to me. I'll get a fix ready for the next release.

keithclark avatar May 22 '17 08:05 keithclark