Closed alan-cooney closed 2 years ago
@alan-cooney Hi. I tried testing the same payload but these are getting set...
Can you give more context...
Hi @ruchiramoitra,
I've updated to 1.0.17 (was on .16) and it is now sending the default currency of USD rather than nothing (i.e. still not picking up the GBP). My setup is:
{
"blacklistPiiProperties": [
{
"blacklistPiiProperties": "",
"blacklistPiiHash": false
}
],
"categoryToContent": [
{
"from": "",
"to": ""
}
],
"pixelId": "394675804771668",
"eventsToEvents": [
{
"from": "",
"to": "Purchase"
}
],
"eventCustomProperties": [
{
"eventCustomProperties": "messageId"
},
{
"eventCustomProperties": ""
}
],
"valueFieldIdentifier": "properties.price",
"advancedMapping": true,
"whitelistPiiProperties": [
{
"whitelistPiiProperties": ""
}
]
}
Interestingly if I log inside the rudder-sdk-js module directly, within the facebook pixel integration track function, some key properties are missing (including currency):
{
"value": 12.8,
"revenue": 125,
"products": [
{
"sku": "group_UUID",
"url": "https://dev.skyhookadventure.com/trips/url-slug",
"image_url": "https://dev-skyhook.imgix.net/key.jpg?ixlib=react-9.1.1"
}
]
}
Okay disabling GA4 integration solves the issue - which suggests that the GA4 integration is mutating the track event properties?
Found the culprit - creating a PR now:
// eslint-disable-next-line no-param-reassign
delete props[key];
PR #274 has been merged. Hence, closing this issue.
When you set currency like this, it is not sent in the FB InitiateCheckout event:
Using debug mode on a development version of our site, the tracking event logs with currency in it, so it appears to be an issue with the integration:
Here is the output from Facebook pixel debugger (note the
content_ids
andcontents
are also not sent despite being included in the event):