Skip to content

Commit

Permalink
if currency not present made default usd
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed May 5, 2020
1 parent 6acc32a commit 9e0a375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/FbPixel/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class FbPixel {
// }
each(function (event) {
if (event === "Purchase")
payload.currency = rudderElement.message.properties.currency;
payload.currency = rudderElement.message.properties.currency || 'USD';
window.fbq("trackSingle", this.pixelId, event, payload, {
eventID: rudderElement.message.messageId,
});
Expand Down

0 comments on commit 9e0a375

Please sign in to comment.