Skip to content

Commit 0f82376

Browse files
committed
Remove unnecessary keys from the event attributes sent to TreasureData
1 parent 3271e2b commit 0f82376

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

iCookTV/Trackable.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ extension TrackableAttributes where Self: CustomStringConvertible {
4848
var attributes: [String: AnyObject] {
4949
var attributes = details
5050
attributes["name"] = name
51+
attributes[TrackableKey.categoryTitle] = nil
52+
attributes[TrackableKey.videoTitle] = nil
5153
return attributes
5254
}
5355
}
@@ -81,6 +83,5 @@ struct TrackableKey {
8183
static let page = "page"
8284
static let currentTime = "current_time"
8385
static let duration = "duration"
84-
static let fraction = "fraction"
8586
static let percentage = "percentage"
8687
}

iCookTV/VideoPlayerController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class VideoPlayerController: AVPlayerViewController, Trackable {
116116
TrackableKey.videoTitle: video?.title ?? "",
117117
TrackableKey.currentTime: currentTime,
118118
TrackableKey.duration: duration,
119-
TrackableKey.fraction: fraction,
120119
TrackableKey.percentage: fraction * 100
121120
]))
122121
}

0 commit comments

Comments
 (0)