Skip to content

Commit fa13f14

Browse files
author
hoang.tran12
committed
track hover event
1 parent 47288b5 commit fa13f14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/magnify_image.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ export default {
159159
const { data, type } = e.data || {};
160160
if (type === "ufs-magnify-image-hover") {
161161
let srcs = data?.srcs;
162+
if (srcs?.length)
163+
UfsGlobal.Extension.trackEvent("magnify-image-HOVER");
162164

163165
if (srcs?.length > 1) chooseImg(srcs);
164166
else if (srcs?.length === 1) createPreview(srcs[0]);

0 commit comments

Comments
 (0)