mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Add currency to conversion event
This commit is contained in:
parent
0ffb6f3f64
commit
76eb031ec0
1 changed files with 5 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue