Contributing Open Source — react-ga4

Han Lin Yap
PriceRunner Tech & Data
1 min readOct 15, 2021

As the vast majority of sites out there, we are using Google Analytics to keep track of our users. We always thrive to use the latest release of any framework, so when Google Analytics 4 was released we started to look on how to migrate.

We were using npm package react-ga and later on it became outdated and unmaintained. It did not support the new gtag or Google Analytics 4.

I decided to created a new rewritten from scratch npm package react-ga4 with the aim to

  • Support Google Analytics 4 and gtag
  • Be backward compatible.
  • Super easy migration with only one line to change.

We share this package to the open source and it have been steady gaining popularity with now over 9000 weekly downloads. Go ahead and try it out.

Weekly Downloads over 9000
Weekly Downloads over 9000

React Google Analytics 4 maintained by Han Lin Yap

npm i react-ga4

--

--