How to Implement a Visitor Counter Using Google Cloud’s Firestore

Safely increment a value using a field value

David Kramer
Better Programming
Published in
3 min readJun 19, 2020

--

Photo by Matt Helbig on Unsplash.

In this tutorial, I will demonstrate how to implement a visitor counter that increments on every page refresh. The counter will be implemented using a Cloud Firestore database and an Express-based web app.

--

--