duplicate tracking fixed
This commit is contained in:
parent
913ef03160
commit
b68e0dd80c
@ -68,6 +68,8 @@ open class Carousel: View {
|
||||
|
||||
private var size: CGFloat?
|
||||
|
||||
private var isTrackedAnalytics: Bool = false
|
||||
|
||||
// Updates the model and index.
|
||||
public func updateModelIndex() {
|
||||
(model as? CarouselModel)?.index = pageIndex
|
||||
@ -165,7 +167,10 @@ open class Carousel: View {
|
||||
collectionView.reloadData()
|
||||
|
||||
// track analyticsData
|
||||
if(!isTrackedAnalytics){
|
||||
trackSwipeActionAnalyticsforIndex(pageIndex)
|
||||
isTrackedAnalytics = true
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user