<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz" -->

---
title: Tracking Cloud Storage usage for each user with Firebase...
description: Learn how to track Cloud Storage usage for each user with Firebase and Cloud Functions. Implement a counter for total bytes uploaded per user and a daily...
canonical: https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Tracking Cloud Storage usage for each user with Firebase and Cloud Functions | daily.dev
og:description: Learn how to track Cloud Storage usage for each user with Firebase and Cloud Functions. Implement a counter for total bytes uploaded per user and a daily...
og:url: https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz
og:image: https://api.daily.dev/og/posts/tijJhNbAZ.png
og:image:alt: Tracking Cloud Storage usage for each user with Firebase and Cloud Functions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracking Cloud Storage usage for each user with Firebase and Cloud Functions

**[Firebase Developers](https://daily.dev/sources/firebase-developers)** · 3 min read · 2 upvotes · 0 comments

## Summary

Learn how to track Cloud Storage usage for each user with Firebase and Cloud Functions. Implement a counter for total bytes uploaded per user and a daily counter that resets. Use server-side validation logic and Firestore to efficiently store and retrieve file sizes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/firebase-developers/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-1c70c1e0c10f?source=rss----8e8b7dc6774d---4>

---

Tags: [#gcp](https://daily.dev/tags/gcp), [#firebase](https://daily.dev/tags/firebase), [#gcp-cloud-functions](https://daily.dev/tags/gcp-cloud-functions), [#firestore](https://daily.dev/tags/firestore)

[View this post on daily.dev](https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Tracking Cloud Storage usage for each user with Firebase and Cloud Functions","url":"https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz"},"datePublished":"2023-12-18T13:10:06.088Z","dateModified":"2023-12-18T13:10:05.345Z","description":"Learn how to track Cloud Storage usage for each user with Firebase and Cloud Functions. Implement a counter for total bytes uploaded per user and a daily...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12dd5060171428dff8749c76d73b80de?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12dd5060171428dff8749c76d73b80de?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Firebase Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Firebase Developers","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/e13782b61c20475895cc14c209cc0989","url":"https://daily.dev/sources/firebase-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/tracking-cloud-storage-usage-for-each-user-with-firebase-and-cloud-functions-tijjhnbaz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"gcp,firebase,gcp-cloud-functions,firestore","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Firebase Developers","item":"https://daily.dev/sources/firebase-developers"},{"@type":"ListItem","position":3,"name":"Tracking Cloud Storage usage for each user with Firebase and Cloud Functions"}]}
```

