Add currency to conversion event

This commit is contained in:
Jordan Eldredge 2021-01-02 11:26:43 -08:00
parent 0ffb6f3f64
commit 76eb031ec0

View file

@ -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()