We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc42bdb commit e4a539cCopy full SHA for e4a539c
facets.js
@@ -131,8 +131,15 @@ export const facets = {
131
.filter((s) => s))
132
.pop() || [],
133
),
134
+ /**
135
+ * Extracts the target of the media view event from the bundle. This
136
+ * is typically the URL of an image or video, and the URL is stripped
137
+ * of query parameters, hash, user, and password.
138
+ * @param {Bundle} bundle the bundle of sampled rum events
139
+ * @returns {string[]} a list of media targets
140
+ */
141
mediaTarget: (bundle) => bundle.events
- .filter((evt) => evt.checkpoint === 'viewedia')
142
+ .filter((evt) => evt.checkpoint === 'viewmedia')
143
.map((evt) => evt.target)
144
.filter((target) => target)
145
.map((target) => {
0 commit comments