-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added event type mapping json for all standard events
- Loading branch information
1 parent
3980223
commit b31ac7a
Showing
10 changed files
with
339 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/v0/destinations/facebook_pixel/data/FBPIXELCheckoutStartedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category" | ||
}, | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "content_type", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": "product" | ||
} | ||
}, | ||
{ | ||
"destKey": "currency", | ||
"sourceKeys": "properties.currency", | ||
"metadata": { | ||
"defaultValue": "USD" | ||
} | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.revenue", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
}, | ||
{ | ||
"destKey": "contents", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "num_items", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": 0 | ||
} | ||
} | ||
] |
52 changes: 52 additions & 0 deletions
52
src/v0/destinations/facebook_pixel/data/FBPIXELOrderCompletedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category" | ||
}, | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "content_type", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": "product" | ||
} | ||
}, | ||
{ | ||
"destKey": "currency", | ||
"sourceKeys": "properties.currency", | ||
"metadata": { | ||
"defaultValue": "USD" | ||
} | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.revenue", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
}, | ||
{ | ||
"destKey": "contents", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "num_items", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": 0 | ||
} | ||
}, | ||
{ | ||
"destKey": "content_name", | ||
"sourceKeys": "properties.contentName" | ||
} | ||
] |
48 changes: 48 additions & 0 deletions
48
src/v0/destinations/facebook_pixel/data/FBPIXELProductAddedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[ | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": ["properties.product_id", "properties.sku", "properties.id"] | ||
}, | ||
{ | ||
"destKey": "content_type", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": "product" | ||
} | ||
}, | ||
{ | ||
"destKey": "content_name", | ||
"sourceKeys": ["properties.product_name", "properties.name"], | ||
"metadata": { | ||
"defaultValue": "" | ||
} | ||
}, | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category", | ||
"metadata": { | ||
"defaultValue": "" | ||
} | ||
}, | ||
{ | ||
"destKey": "currency", | ||
"sourceKeys": "properties.currency", | ||
"metadata": { | ||
"defaultValue": "USD" | ||
} | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.value", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
}, | ||
{ | ||
"destKey": "contents", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
} | ||
] |
35 changes: 35 additions & 0 deletions
35
src/v0/destinations/facebook_pixel/data/FBPIXELProductListViewedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[ | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "content_type", | ||
"sourceKeys": "" | ||
}, | ||
{ | ||
"destKey": "contents", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": [] | ||
} | ||
}, | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category" | ||
}, | ||
{ | ||
"destKey": "content_name", | ||
"sourceKeys": "properties.contentName" | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.value", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
} | ||
] |
39 changes: 39 additions & 0 deletions
39
src/v0/destinations/facebook_pixel/data/FBPIXELProductSearchedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[ | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": ["properties.product_id", "properties.sku", "properties.id"] | ||
}, | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category", | ||
"metadata": { | ||
"defaultValue": "" | ||
} | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.value", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
}, | ||
{ | ||
"destKey": "contents.0.id", | ||
"sourceKeys": ["properties.product_id", "properties.sku", "properties.id"] | ||
}, | ||
{ | ||
"destKey": "contents.0.quantity", | ||
"sourceKeys": "properties.quantity", | ||
"metadata": { | ||
"defaultValue": 1 | ||
} | ||
}, | ||
{ | ||
"destKey": "contents.0.item_price", | ||
"sourceKeys": "properties.price" | ||
}, | ||
{ | ||
"destKey": "search_string", | ||
"sourceKeys": "properties.query" | ||
} | ||
] |
56 changes: 56 additions & 0 deletions
56
src/v0/destinations/facebook_pixel/data/FBPIXELProductViewedCustomData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[ | ||
{ | ||
"destKey": "content_ids", | ||
"sourceKeys": ["properties.product_id", "properties.sku", "properties.id"] | ||
}, | ||
{ | ||
"destKey": "content_type", | ||
"sourceKeys": "", | ||
"metadata": { | ||
"defaultValue": "product" | ||
} | ||
}, | ||
{ | ||
"destKey": "content_name", | ||
"sourceKeys": ["properties.product_name", "properties.name"], | ||
"metadata": { | ||
"defaultValue": "" | ||
} | ||
}, | ||
{ | ||
"destKey": "content_category", | ||
"sourceKeys": "properties.category", | ||
"metadata": { | ||
"defaultValue": "" | ||
} | ||
}, | ||
{ | ||
"destKey": "currency", | ||
"sourceKeys": "properties.currency", | ||
"metadata": { | ||
"defaultValue": "USD" | ||
} | ||
}, | ||
{ | ||
"destKey": "value", | ||
"sourceKeys": "properties.value", | ||
"metadata": { | ||
"type": "numberForRevenue" | ||
} | ||
}, | ||
{ | ||
"destKey": "contents.0.id", | ||
"sourceKeys": ["properties.product_id", "properties.sku", "properties.id"] | ||
}, | ||
{ | ||
"destKey": "contents.0.quantity", | ||
"sourceKeys": "properties.quantity", | ||
"metadata": { | ||
"defaultValue": 1 | ||
} | ||
}, | ||
{ | ||
"destKey": "contents.0.item_price", | ||
"sourceKeys": "properties.price" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.