diff --git a/feature/src/main/java/com/terning/feature/dialog/detail/ScrapDialog.kt b/feature/src/main/java/com/terning/feature/dialog/detail/ScrapDialog.kt index 8e64ca23..8068d46d 100644 --- a/feature/src/main/java/com/terning/feature/dialog/detail/ScrapDialog.kt +++ b/feature/src/main/java/com/terning/feature/dialog/detail/ScrapDialog.kt @@ -138,7 +138,13 @@ fun ScrapDialog( ) } }, - onClickNavigateButton = viewModel::navigateToDetail, + onClickNavigateButton = { + viewModel.navigateToDetail() + amplitudeTracker.track( + type = EventType.CLICK, + name = "modal_detail" + ) + }, onClickScrapButton = { amplitudeTracker.track( type = EventType.CLICK, diff --git a/feature/src/main/java/com/terning/feature/filtering/startfiltering/StartFilteringRoute.kt b/feature/src/main/java/com/terning/feature/filtering/startfiltering/StartFilteringRoute.kt index 9c3d8c97..c82e4943 100644 --- a/feature/src/main/java/com/terning/feature/filtering/startfiltering/StartFilteringRoute.kt +++ b/feature/src/main/java/com/terning/feature/filtering/startfiltering/StartFilteringRoute.kt @@ -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 @@ -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 = "start_service" + ) + }, buttonState = state.isButtonVisible, screenHeight = screenHeight, ) diff --git a/feature/src/main/java/com/terning/feature/search/search/SearchRoute.kt b/feature/src/main/java/com/terning/feature/search/search/SearchRoute.kt index 27d081b1..7b4303d6 100644 --- a/feature/src/main/java/com/terning/feature/search/search/SearchRoute.kt +++ b/feature/src/main/java/com/terning/feature/search/search/SearchRoute.kt @@ -94,7 +94,12 @@ fun SearchRoute( }, navigateToIntern = navigateToIntern, onAdvertisementClick = { pageIndex -> - CustomTabsIntent.Builder().build().launchUrl(context, SearchViewModel.bannerList[pageIndex].url.toUri()) + amplitudeTracker.track( + type = EventType.CLICK, + name = "quest_banner" + ) + CustomTabsIntent.Builder().build() + .launchUrl(context, SearchViewModel.bannerList[pageIndex].url.toUri()) } ) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 45ae80bb..48738241 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,8 +2,8 @@ compileSdk = "34" minSdk = "28" targetSdk = "34" -versionName = "1.1.7" -versionCode = "10107" +versionName = "1.1.8" +versionCode = "10108" kotlinCompilerExtensionVersion = "1.5.0" jvmTarget = "1.8"