Skip to content

Commit

Permalink
analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
aratama committed Dec 17, 2024
1 parent e42a71e commit 92eb8aa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions assets/analytics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-app.js";
import { getAnalytics } from "https://www.gstatic.com/firebasejs/11.1.0/firebase-analytics.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyCpI4k-G8OSNbduRrHTayJ5NCvuTHftrH0",
authDomain: "magiaforge-f58d3.firebaseapp.com",
projectId: "magiaforge-f58d3",
storageBucket: "magiaforge-f58d3.firebasestorage.app",
messagingSenderId: "190230318715",
appId: "1:190230318715:web:5731bd3056843e2a05dcde",
measurementId: "G-4E3FZPW8VP"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<!-- マウスクリックなどのジェスチャーでsuspendされているWebAudioをすべてresumeするトリック -->
<!-- 本体の読み込み前にこのスクリプトを読み込んでおく必要があります -->
<script data-trunk type="module" src="assets/restart-audio-context.js"></script>
<script data-trunk type="module" src="assets/analytics.js"></script>

<link rel="icon" href="assets/favicon.png">

Expand Down

0 comments on commit 92eb8aa

Please sign in to comment.