Has to be Class React.Component, and not a functional component
FireFox by default disables trackers. To confirm, you'll see this in the console log:
Request to access cookie or storage on “https://www.google-analytics.com/collect?v=1&_v=j77&a=181386…4&tid=UA-144340339-1&_gid=1441659023.1563729848&z=1143710822” was blocked because it came from a tracker and content blocking is enabled.
Disable tracker blocking by clicking the shield/lock button on the left side of the address bar and then clicking "disable blocking for this site"