A serverless function for counting page views on gis.utah.gov (could be used for any website with unique URLs).
One-time setup:
- Install
gcloud
cli - Install Cloud Functions Local Emulator
- Install Cloud Datastore Emulator
- Add a service account key file named:
<project-root>/service-account.json
To run locally:
npm start
(starts the functions local emulator, and server for test.html)
npm run deploy