gadebugger
gadebugger copied to clipboard
Transaction ID may be Text rather than Integer
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
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.