Skip to content

Commit

Permalink
Add tracking for initial site monitor tab
Browse files Browse the repository at this point in the history
  • Loading branch information
pantstamp committed Jan 31, 2024
1 parent c53f6ff commit 6a7a13d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import androidx.compose.material3.Tab
import androidx.compose.material3.TabRowDefaults
import androidx.compose.material3.TabRowDefaults.tabIndicatorOffset
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
Expand Down Expand Up @@ -169,6 +170,10 @@ class SiteMonitorParentActivity : AppCompatActivity(), SiteMonitorWebViewClient.

val tabs = SiteMonitorTabItem.entries

LaunchedEffect(true) {
siteMonitorUtils.trackTabLoaded(tabs[initialTab].siteMonitorType)
}

Column(modifier = modifier.fillMaxWidth()) {
androidx.compose.material3.TabRow(
selectedTabIndex = tabIndex,
Expand Down

0 comments on commit 6a7a13d

Please sign in to comment.