We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b77c4 commit 58dab6fCopy full SHA for 58dab6f
web/assets/js/widgets/core/snowplow-tracking.js
@@ -166,10 +166,12 @@
166
const cardTitle = entry.target.getElementsByClassName(
167
"cnw_card-title"
168
);
169
-
170
if (!cardTitle[0]) return;
171
172
- const url = new URL(cardTitle[0].dataset.detailLink);
+ const detailLink = cardTitle[0].dataset.detailLink;
+ if (!detailLink) return;
173
+
174
+ const url = new URL(detailLink);
175
const cdbidOfEventTeaser = url.searchParams.get("cdbid");
176
viewedEventTeasers.add(cdbidOfEventTeaser);
177
});
0 commit comments