はじめに 個人開発しているサービスで、追加した機能の効果測定がしたいと思ったので、データ分析の仕組みを整えることにしました。 実現手段の検討 分析したい内容を決める まず、分析したい内容を決め、取得したいデータの内容を決定します。これはサービス個別の内容なので省略します。 Firestoreのデータをどう分析するか DBにFirestoreを使用しているので、Firestoreからどうやってデータを取得して表示するか考えました。 [却下] 管理画面を作って、そこにデータを表示する 管理画面用にFirestoreのセキュリティールールを作成したり、いちいちFunctionsでデータを取得してくるのは面倒なので却下。 [却下] GASを使って、Google Spredsheetに表示 Fuctionsでデータを加工、取得してきて、それをGASでゴニョゴニョして、Googleスプレッドシートに表