File tree Expand file tree Collapse file tree
components/template-detail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,9 +270,6 @@ function formatRelativeDate(dateStr: string): string {
270270 if (window.posthog) window.posthog.capture(event, props);
271271 }
272272
273- // Track template page view
274- phCapture('template_viewed', { template_name: templateName, media_type: mediaType });
275-
276273 // Run on Cloud button
277274 document.querySelectorAll('.run-cloud-btn').forEach((link) => {
278275 link.addEventListener('click', () => {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export function initPostHog(): void {
2222 * All tracked events follow the object_verb taxonomy:
2323 * - snake_case
2424 * - past tense verbs
25- * - e.g. run_button_clicked, template_viewed
25+ * - e.g. run_button_clicked, search_performed
2626 */
2727type EventProperties = Record < string , string | number | boolean | undefined > ;
2828
@@ -55,16 +55,6 @@ export function trackShareButtonClicked(templateName: string): void {
5555 } ) ;
5656}
5757
58- export function trackTemplateViewed (
59- templateName : string ,
60- mediaType : string ,
61- ) : void {
62- capture ( 'template_viewed' , {
63- template_name : templateName ,
64- media_type : mediaType ,
65- } ) ;
66- }
67-
6858export function trackSearchPerformed ( query : string ) : void {
6959 capture ( 'search_performed' , {
7060 query,
You can’t perform that action at this time.
0 commit comments