Skip to content

Commit ade254a

Browse files
committed
added gtag for analytics
1 parent 49ae2f6 commit ade254a

6 files changed

Lines changed: 16 additions & 22 deletions

File tree

backend/server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5559,7 +5559,6 @@ app.post('/api/follow-up-queries/submit-video', uploadMeeting.single('video'), a
55595559
}
55605560
});
55615561

5562-
console.log('Video uploaded to GCS:', videoPath);
55635562

55645563
// Process video with Gemini for transcript and answers
55655564
const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash-exp" });
@@ -5671,7 +5670,6 @@ Return only the JSON object.`;
56715670
}
56725671
});
56735672

5674-
console.log('Transcript saved to GCS:', transcriptPath);
56755673

56765674
// Update follow-up query with actual paths
56775675
await dbRun(
@@ -5771,7 +5769,6 @@ app.post('/api/gemini-tts', async (req, res) => {
57715769

57725770
// For now, return a simple text response instead of audio
57735771
// This is a fallback until we can properly implement TTS
5774-
console.log('TTS Request:', text);
57755772

57765773
// Create a simple audio file or use Web Speech API on frontend
57775774
// For now, we'll return a success response and handle TTS on frontend

frontend/extension.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
</svg>
192192
<span>Profile</span>
193193
</a>
194-
<a class="w-10 h-10 grid place-items-center rounded-lg hover:bg-white/10 relative group" href="https://youtu.be/XUuLeXaEIdI" target="_blank" title="How to use PitchLense">
194+
<a class="w-10 h-10 grid place-items-center rounded-lg hover:bg-white/10 relative group" href="https://youtu.be/J8Bp4um6UfA?si=95QvK70f61o1J5BQ" target="_blank" title="How to use PitchLense">
195195
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor">
196196
<path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/>
197197
</svg>

frontend/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@
4747
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
4848
<!-- GSAP for animations -->
4949
<script src="https://unpkg.com/gsap@3/dist/gsap.min.js"></script>
50+
51+
<!-- Google Analytics - PitchLense & YouTube Tracking -->
52+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-01HVZWQJYZ"></script>
53+
<script>
54+
window.dataLayer = window.dataLayer || [];
55+
function gtag(){dataLayer.push(arguments);}
56+
gtag('js', new Date());
57+
58+
// PitchLense Analytics
59+
gtag('config', 'G-01HVZWQJYZ');
60+
61+
// YouTube Analytics
62+
gtag('config', 'G-MEJ9RH4LNM');
63+
</script>
5064
</head>
5165

5266
<body class="bg-background text-text font-sans antialiased selection:bg-accent selection:text-white">

frontend/news.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,7 @@ <h4 class="text-lg font-semibold text-white mb-4 flex items-center gap-2">
625625
async function generateAINewsAnalysis() {
626626
try {
627627
const newsDataForAI = collectNewsDataForAI();
628-
629-
// Debug logging
630-
console.log('Collected news data:', newsDataForAI);
631-
628+
632629
// Show loading state
633630
document.getElementById('aiNewsLoadingState').classList.remove('hidden');
634631
document.getElementById('aiNewsSummaryContent').classList.add('hidden');

frontend/report.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5395,14 +5395,6 @@ <h3 class="text-lg font-medium text-white mb-3">File Content</h3>
53955395
edges: edges
53965396
};
53975397

5398-
console.log('Processed knowledge graph:', knowledgeGraph);
5399-
console.log('Total nodes:', knowledgeGraph.nodes.length);
5400-
console.log('Total edges:', knowledgeGraph.edges.length);
5401-
5402-
// Log metadata if available
5403-
if (apiKnowledgeGraph.metadata) {
5404-
console.log('Graph metadata:', apiKnowledgeGraph.metadata);
5405-
}
54065398

54075399
// Add a summary display for large graphs (desktop only)
54085400
if (knowledgeGraph.nodes.length > 10 && window.matchMedia('(min-width: 768px)').matches) {
@@ -6110,7 +6102,6 @@ <h3 class="text-xl font-semibold text-white mb-2">No Knowledge Graph Data</h3>
61106102
feedbackNote.value = feedback.feedback_note;
61116103
}
61126104

6113-
console.log('Populated existing feedback:', feedback);
61146105
}
61156106

61166107
// Reset feedback form to start fresh
@@ -6124,7 +6115,6 @@ <h3 class="text-xl font-semibold text-white mb-2">No Knowledge Graph Data</h3>
61246115
feedbackNote.value = '';
61256116
}
61266117

6127-
console.log('Reset feedback form for fresh start');
61286118
}
61296119

61306120
// Initialize star ratings
@@ -6196,7 +6186,6 @@ <h3 class="text-xl font-semibold text-white mb-2">No Knowledge Graph Data</h3>
61966186
tabId: activeTabButton.id,
61976187
tabData: activeTabButton.getAttribute('data-tab')
61986188
};
6199-
console.log('Saved tab state:', savedTabState);
62006189
} else {
62016190
// Fallback: look for any active tab content to determine current tab
62026191
const activeContent = document.querySelector('.tab-content.active:not(.news-tab-content)');
@@ -6227,15 +6216,13 @@ <h3 class="text-xl font-semibold text-white mb-2">No Knowledge Graph Data</h3>
62276216

62286217
if (tabData && tabId) {
62296218
savedTabState = { tabId, tabData };
6230-
console.log('Saved tab state (fallback):', savedTabState);
62316219
}
62326220
}
62336221
}
62346222
}
62356223

62366224
function restoreTabState() {
62376225
if (savedTabState) {
6238-
console.log('Restoring tab state:', savedTabState);
62396226

62406227
// Find the tab button to restore
62416228
const tabButton = document.getElementById(savedTabState.tabId);

frontend/video.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ <h2 class="text-2xl font-bold text-white mb-4">Welcome to PitchLense Video Follo
520520

521521
if (selectedVoice) {
522522
utterance.voice = selectedVoice;
523-
console.log('Using voice:', selectedVoice.name);
524523
}
525524

526525
// Enhanced speech settings

0 commit comments

Comments
 (0)