Skip to content

Commit 0af94df

Browse files
committed
📈 Track login email input and Plus Liker ID gate
Fire `login_panel_email_input` on first email input and `subscription_liker_id_required` when a user tries to subscribe without a Liker ID. Fills two gaps in the login→subscribe funnel — top-of-funnel engagement intent and a known conversion blocker.
1 parent c885078 commit 0af94df

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎components/LoginPanel.vue‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
type="email"
1616
:placeholder="$t('login_panel_email_placeholder')"
1717
size="lg"
18+
@input.once="useLogEvent('login_panel_email_input')"
1819
/>
1920
<UButton
2021
type="submit"

‎composables/use-subscription-checkout.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function useSubscriptionCheckout() {
8080
blockingModal.open({ title: $t('common_processing') })
8181

8282
if (!user.value?.likerId) {
83+
useLogEvent('subscription_liker_id_required')
8384
toast.add({
8485
title: $t('pricing_page_liker_id_required'),
8586
description: $t('pricing_page_liker_id_required_description'),

‎stores/account.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ export const useAccountStore = defineStore('account', () => {
388388
isLoggingIn.value = true
389389

390390
// Disconnect any existing connection
391-
await disconnectAsync()
391+
if (isConnected.value) {
392+
await disconnectAsync().catch(() => {})
393+
}
392394
let magicEmail: string | undefined = preferredEmail
393395
if (!connectorId || !connectors.some((c: { id: string }) => c.id === connectorId)) {
394396
useLogEvent('login_panel_open')

0 commit comments

Comments
 (0)