From 76eb031ec038a4188d99cc6fe283d79b765024bb Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 2 Jan 2021 11:26:43 -0800 Subject: [PATCH] Add currency to conversion event --- src/redux/epics.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/redux/epics.js b/src/redux/epics.js index 506f4334..8031459f 100644 --- a/src/redux/epics.js +++ b/src/redux/epics.js @@ -412,7 +412,7 @@ const loggingEpic = (actions, state) => case "REQUESTED_RANDOM_SKIN": case "MARK_NSFW": case "INVALID_ARCHIVE": - window.fbq("track", action.type, { value: 1 }); + window.fbq("track", action.type); window.ga("send", "event", "redux", action.type); break; default: { @@ -421,7 +421,10 @@ const loggingEpic = (actions, state) => // Facebook requires a value for events that can be used to create // look-a-like audiences. if (action.type === "ARCHIVED_SKIN") { - window.fbq("track", "SKIN_UPLOAD_CONVERSION", { value: 1 }); + window.fbq("track", "SKIN_UPLOAD_CONVERSION", { + value: 1, + currency: "USD", + }); } }), ignoreElements()