Skip to content

Commit 891209f

Browse files
committed
[ADD/#338] add home filtering save event
1 parent ecc77ab commit 891209f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

โ€Žfeature/home/src/main/java/com/terning/feature/home/component/bottomsheet/HomeFilteringBottomSheet.ktโ€Ž

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import androidx.compose.ui.layout.onGloballyPositioned
3030
import androidx.compose.ui.platform.LocalDensity
3131
import androidx.compose.ui.res.stringResource
3232
import androidx.compose.ui.unit.dp
33+
import com.terning.core.analytics.EventType
34+
import com.terning.core.analytics.LocalTracker
3335
import com.terning.core.designsystem.component.bottomsheet.TerningBasicBottomSheet
3436
import com.terning.core.designsystem.component.button.RoundButton
3537
import com.terning.core.designsystem.extension.noRippleClickable
@@ -76,6 +78,8 @@ internal fun HomeFilteringBottomSheet(
7678
)
7779
}
7880

81+
val amplitudeTracker = LocalTracker.current
82+
7983
GetPagerHeight(
8084
onHeightMeasured = {
8185
pageHeight = it
@@ -194,6 +198,18 @@ internal fun HomeFilteringBottomSheet(
194198
startMonth,
195199
jobType
196200
)
201+
amplitudeTracker.track(
202+
type = EventType.CLICK,
203+
name = "home_filtering_save",
204+
properties = mapOf(
205+
"jobType" to jobType,
206+
"grade" to grade,
207+
"workingPeriod" to workingPeriod,
208+
"startYear" to startYear,
209+
"startMonth" to startMonth,
210+
"planSaveAll" to isCheckBoxChecked
211+
)
212+
)
197213
}
198214
},
199215
isEnabled = checkButtonEnable(

0 commit comments

Comments
ย (0)