Skip to content

Commit

Permalink
[FEAT/#300] 터닝 시작하기 엠플리튜드 이벤트
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Nov 19, 2024
1 parent e497f28 commit 615ada1
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.airbnb.lottie.compose.LottieConstants
import com.terning.core.analytics.EventType
import com.terning.core.analytics.LocalTracker
import com.terning.core.designsystem.component.button.RectangleButton
import com.terning.core.designsystem.component.item.TerningLottieAnimation
import com.terning.core.designsystem.theme.TerningPointTheme
Expand All @@ -44,13 +46,21 @@ fun StartFilteringRoute(
val configuration = LocalConfiguration.current
val screenHeight = 780f / configuration.screenHeightDp

val amplitudeTracker = LocalTracker.current

LaunchedEffect(key1 = true) {
delay(DELAY)
viewModel.updateButtonState()
}

StartFilteringScreen(
onNextClick = onNextClick,
onNextClick = {
onNextClick()
amplitudeTracker.track(
type = EventType.CLICK,
name = "click_start_service"
)
},
buttonState = state.isButtonVisible,
screenHeight = screenHeight,
)
Expand Down

0 comments on commit 615ada1

Please sign in to comment.