Skip to content

Commit 98bcd8c

Browse files
robinjhuangclaude
andcommitted
Remove redundant template_viewed PostHog event
PostHog auto-captures $pageview events, making the custom template_viewed event redundant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f5e6a69 commit 98bcd8c

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

site/src/lib/posthog.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function initPostHog(): void {
2424
* All tracked events follow the object_verb taxonomy:
2525
* - snake_case
2626
* - past tense verbs
27-
* - e.g. hub:run_button_clicked, hub:template_viewed
27+
* - e.g. hub:run_button_clicked, hub:search_performed
2828
*/
2929
type EventProperties = Record<string, string | number | boolean | undefined>;
3030

@@ -57,16 +57,6 @@ export function trackShareButtonClicked(templateName: string): void {
5757
});
5858
}
5959

60-
export function trackTemplateViewed(
61-
templateName: string,
62-
mediaType: string,
63-
): void {
64-
capture('hub:template_viewed', {
65-
template_name: templateName,
66-
media_type: mediaType,
67-
});
68-
}
69-
7060
export function trackSearchPerformed(query: string): void {
7161
capture('hub:search_performed', {
7262
query,

0 commit comments

Comments
 (0)