@metarouter/ajs-starter-kit 1.0.141 → 1.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dist/actioniq/connection.etag.json +1 -1
- package/.dist/actioniq/kit.etag.json +1 -1
- package/.dist/actioniq/playbook.etag.json +1 -1
- package/.dist/acuity-ads/connection.etag.json +1 -1
- package/.dist/acuity-ads/kit.etag.json +1 -1
- package/.dist/acuity-ads/playbook.etag.json +1 -1
- package/.dist/adjust/connection.etag.json +1 -1
- package/.dist/adjust/kit.etag.json +1 -1
- package/.dist/adjust/playbook.etag.json +1 -1
- package/.dist/adobe-experience-platform-interact/connection.etag.json +1 -1
- package/.dist/adobe-experience-platform-interact/kit.etag.json +1 -1
- package/.dist/adobe-experience-platform-interact/playbook.etag.json +1 -1
- package/.dist/adobe-id/connection.etag.json +1 -1
- package/.dist/adobe-id/kit.etag.json +1 -1
- package/.dist/adobe-id/playbook.etag.json +1 -1
- package/.dist/adroll/connection.etag.json +1 -1
- package/.dist/adroll/kit.etag.json +1 -1
- package/.dist/adroll/playbook.etag.json +1 -1
- package/.dist/amazon-data-firehose/connection.etag.json +1 -1
- package/.dist/amazon-data-firehose/kit.etag.json +1 -1
- package/.dist/amazon-data-firehose/playbook.etag.json +1 -1
- package/.dist/amazon-dsp-capi/connection.etag.json +1 -1
- package/.dist/amazon-dsp-capi/kit.etag.json +1 -1
- package/.dist/amazon-dsp-capi/playbook.etag.json +1 -1
- package/.dist/amazon-kinesis/connection.etag.json +1 -1
- package/.dist/amazon-kinesis/kit.etag.json +1 -1
- package/.dist/amazon-kinesis/playbook.etag.json +1 -1
- package/.dist/amnet/connection.etag.json +1 -1
- package/.dist/amnet/kit.etag.json +1 -1
- package/.dist/amnet/playbook.etag.json +1 -1
- package/.dist/amobee/connection.etag.json +1 -1
- package/.dist/amobee/kit.etag.json +1 -1
- package/.dist/amobee/playbook.etag.json +1 -1
- package/.dist/amperity/connection.etag.json +1 -1
- package/.dist/amperity/kit.etag.json +1 -1
- package/.dist/amperity/playbook.etag.json +1 -1
- package/.dist/amplitude/connection.etag.json +1 -1
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/playbook.etag.json +1 -1
- package/.dist/apps-flyer-android/connection.etag.json +1 -1
- package/.dist/apps-flyer-android/kit.etag.json +1 -1
- package/.dist/apps-flyer-android/playbook.etag.json +1 -1
- package/.dist/apps-flyer-ios/connection.etag.json +1 -1
- package/.dist/apps-flyer-ios/kit.etag.json +1 -1
- package/.dist/apps-flyer-ios/playbook.etag.json +1 -1
- package/.dist/awin/connection.etag.json +1 -1
- package/.dist/awin/kit.etag.json +1 -1
- package/.dist/awin/playbook.etag.json +1 -1
- package/.dist/bing-ads/connection.etag.json +1 -1
- package/.dist/bing-ads/kit.etag.json +1 -1
- package/.dist/bing-ads/playbook.etag.json +1 -1
- package/.dist/blob/connection.etag.json +1 -1
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/blob/playbook.etag.json +1 -1
- package/.dist/bloomreach/connection.etag.json +1 -1
- package/.dist/bloomreach/kit.etag.json +1 -1
- package/.dist/bloomreach/playbook.etag.json +1 -1
- package/.dist/blueshift/connection.etag.json +1 -1
- package/.dist/blueshift/kit.etag.json +1 -1
- package/.dist/blueshift/playbook.etag.json +1 -1
- package/.dist/braze/connection.etag.json +1 -1
- package/.dist/braze/kit.etag.json +1 -1
- package/.dist/braze/playbook.etag.json +1 -1
- package/.dist/build-your-own/connection.etag.json +1 -1
- package/.dist/build-your-own/kit.etag.json +1 -1
- package/.dist/build-your-own/playbook.etag.json +1 -1
- package/.dist/button/connection.etag.json +1 -1
- package/.dist/button/kit.etag.json +1 -1
- package/.dist/button/playbook.etag.json +1 -1
- package/.dist/clinch/connection.etag.json +1 -1
- package/.dist/clinch/kit.etag.json +1 -1
- package/.dist/clinch/playbook.etag.json +1 -1
- package/.dist/commission-junction/connection.etag.json +1 -1
- package/.dist/commission-junction/kit.etag.json +1 -1
- package/.dist/commission-junction/playbook.etag.json +1 -1
- package/.dist/convert/connection.etag.json +1 -1
- package/.dist/convert/kit.etag.json +1 -1
- package/.dist/convert/playbook.etag.json +1 -1
- package/.dist/criteo/connection.etag.json +1 -1
- package/.dist/criteo/kit.etag.json +1 -1
- package/.dist/criteo/playbook.etag.json +1 -1
- package/.dist/customer-io/connection.etag.json +1 -1
- package/.dist/customer-io/kit.etag.json +1 -1
- package/.dist/customer-io/playbook.etag.json +1 -1
- package/.dist/facebook-pixel/connection.etag.json +1 -1
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/playbook.etag.json +1 -1
- package/.dist/gcs/connection.etag.json +1 -1
- package/.dist/gcs/kit.etag.json +1 -1
- package/.dist/gcs/playbook.etag.json +1 -1
- package/.dist/google-ad-words/connection.etag.json +1 -1
- package/.dist/google-ad-words/kit.etag.json +1 -1
- package/.dist/google-ad-words/playbook.etag.json +1 -1
- package/.dist/google-ads/connection.etag.json +1 -1
- package/.dist/google-ads/kit.etag.json +1 -1
- package/.dist/google-ads/playbook.etag.json +1 -1
- package/.dist/google-ads-audience/connection.etag.json +1 -1
- package/.dist/google-ads-audience/kit.etag.json +1 -1
- package/.dist/google-ads-audience/playbook.etag.json +1 -1
- package/.dist/google-analytics/connection.etag.json +1 -1
- package/.dist/google-analytics/kit.etag.json +1 -1
- package/.dist/google-analytics/playbook.etag.json +1 -1
- package/.dist/google-analytics-4/connection.etag.json +1 -1
- package/.dist/google-analytics-4/kit.etag.json +1 -1
- package/.dist/google-analytics-4/playbook.etag.json +1 -1
- package/.dist/google-analytics-4-collect/connection.etag.json +1 -1
- package/.dist/google-analytics-4-collect/kit.etag.json +1 -1
- package/.dist/google-analytics-4-collect/playbook.etag.json +1 -1
- package/.dist/google-bigquery-streaming/connection.etag.json +1 -1
- package/.dist/google-bigquery-streaming/kit.etag.json +1 -1
- package/.dist/google-bigquery-streaming/playbook.etag.json +1 -1
- package/.dist/google-cm360/connection.etag.json +1 -1
- package/.dist/google-cm360/kit.etag.json +1 -1
- package/.dist/google-cm360/playbook.etag.json +1 -1
- package/.dist/google-firebase/connection.etag.json +1 -1
- package/.dist/google-firebase/kit.etag.json +1 -1
- package/.dist/google-firebase/playbook.etag.json +1 -1
- package/.dist/google-pubsub/connection.etag.json +1 -1
- package/.dist/google-pubsub/kit.etag.json +1 -1
- package/.dist/google-pubsub/playbook.etag.json +1 -1
- package/.dist/heap/connection.etag.json +1 -1
- package/.dist/heap/kit.etag.json +1 -1
- package/.dist/heap/playbook.etag.json +1 -1
- package/.dist/hubspot-event/connection.etag.json +1 -1
- package/.dist/hubspot-event/kit.etag.json +1 -1
- package/.dist/hubspot-event/playbook.etag.json +1 -1
- package/.dist/impact-radius/connection.etag.json +1 -1
- package/.dist/impact-radius/kit.etag.json +1 -1
- package/.dist/impact-radius/playbook.etag.json +1 -1
- package/.dist/in-market/connection.etag.json +1 -1
- package/.dist/in-market/kit.etag.json +1 -1
- package/.dist/in-market/playbook.etag.json +1 -1
- package/.dist/iterable/connection.etag.json +1 -1
- package/.dist/iterable/kit.etag.json +1 -1
- package/.dist/iterable/playbook.etag.json +1 -1
- package/.dist/kafka/connection.etag.json +1 -1
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/playbook.etag.json +1 -1
- package/.dist/kochava/connection.etag.json +1 -1
- package/.dist/kochava/kit.etag.json +1 -1
- package/.dist/kochava/playbook.etag.json +1 -1
- package/.dist/kochava-identitylink/connection.etag.json +1 -1
- package/.dist/kochava-identitylink/kit.etag.json +1 -1
- package/.dist/kochava-identitylink/playbook.etag.json +1 -1
- package/.dist/linkedin-conversions/connection.etag.json +1 -1
- package/.dist/linkedin-conversions/kit.etag.json +1 -1
- package/.dist/linkedin-conversions/playbook.etag.json +1 -1
- package/.dist/lytics/connection.etag.json +1 -1
- package/.dist/lytics/kit.etag.json +1 -1
- package/.dist/lytics/playbook.etag.json +1 -1
- package/.dist/magellan-ai/connection.etag.json +1 -1
- package/.dist/magellan-ai/kit.etag.json +1 -1
- package/.dist/magellan-ai/playbook.etag.json +1 -1
- package/.dist/media-math/connection.etag.json +1 -1
- package/.dist/media-math/kit.etag.json +1 -1
- package/.dist/media-math/playbook.etag.json +1 -1
- package/.dist/merkle/connection.etag.json +1 -1
- package/.dist/merkle/kit.etag.json +1 -1
- package/.dist/merkle/playbook.etag.json +1 -1
- package/.dist/microsoft-ads/connection.etag.json +1 -1
- package/.dist/microsoft-ads/kit.etag.json +1 -1
- package/.dist/microsoft-ads/playbook.etag.json +1 -1
- package/.dist/microsoft-ads-capi/connection.etag.json +1 -0
- package/.dist/microsoft-ads-capi/connection.json +37 -0
- package/.dist/microsoft-ads-capi/kit.etag.json +1 -0
- package/.dist/microsoft-ads-capi/metadata.json +21 -0
- package/.dist/microsoft-ads-capi/playbook.etag.json +1 -0
- package/.dist/microsoft-ads-capi/playbook.json +549 -0
- package/.dist/miq-xandr/connection.etag.json +1 -1
- package/.dist/miq-xandr/kit.etag.json +1 -1
- package/.dist/miq-xandr/playbook.etag.json +1 -1
- package/.dist/mixpanel/connection.etag.json +1 -1
- package/.dist/mixpanel/kit.etag.json +1 -1
- package/.dist/mixpanel/playbook.etag.json +1 -1
- package/.dist/moloco-commerce-media/connection.etag.json +1 -1
- package/.dist/moloco-commerce-media/kit.etag.json +1 -1
- package/.dist/moloco-commerce-media/playbook.etag.json +1 -1
- package/.dist/movable-ink/connection.etag.json +1 -1
- package/.dist/movable-ink/kit.etag.json +1 -1
- package/.dist/movable-ink/playbook.etag.json +1 -1
- package/.dist/movable-ink-customer-data/connection.etag.json +1 -1
- package/.dist/movable-ink-customer-data/kit.etag.json +1 -1
- package/.dist/movable-ink-customer-data/playbook.etag.json +1 -1
- package/.dist/nextdoor/connection.etag.json +1 -1
- package/.dist/nextdoor/kit.etag.json +1 -1
- package/.dist/nextdoor/playbook.etag.json +1 -1
- package/.dist/nextdoor-capi/connection.etag.json +1 -1
- package/.dist/nextdoor-capi/kit.etag.json +1 -1
- package/.dist/nextdoor-capi/playbook.etag.json +1 -1
- package/.dist/perion/connection.etag.json +1 -1
- package/.dist/perion/kit.etag.json +1 -1
- package/.dist/perion/playbook.etag.json +1 -1
- package/.dist/pinterest/connection.etag.json +1 -1
- package/.dist/pinterest/kit.etag.json +1 -1
- package/.dist/pinterest/playbook.etag.json +1 -1
- package/.dist/pinterest-capi/connection.etag.json +1 -1
- package/.dist/pinterest-capi/kit.etag.json +1 -1
- package/.dist/pinterest-capi/playbook.etag.json +1 -1
- package/.dist/podscribe/connection.etag.json +1 -1
- package/.dist/podscribe/kit.etag.json +1 -1
- package/.dist/podscribe/playbook.etag.json +1 -1
- package/.dist/podsights/connection.etag.json +1 -1
- package/.dist/podsights/kit.etag.json +1 -1
- package/.dist/podsights/playbook.etag.json +1 -1
- package/.dist/rakuten-conversions/connection.etag.json +1 -1
- package/.dist/rakuten-conversions/kit.etag.json +1 -1
- package/.dist/rakuten-conversions/playbook.etag.json +1 -1
- package/.dist/rasp/connection.etag.json +1 -1
- package/.dist/rasp/kit.etag.json +1 -1
- package/.dist/rasp/playbook.etag.json +1 -1
- package/.dist/reddit-ads/connection.etag.json +1 -1
- package/.dist/reddit-ads/kit.etag.json +1 -1
- package/.dist/reddit-ads/playbook.etag.json +1 -1
- package/.dist/rev-jet/connection.etag.json +1 -1
- package/.dist/rev-jet/kit.etag.json +1 -1
- package/.dist/rev-jet/playbook.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/connection.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/kit.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/metadata.json +4 -0
- package/.dist/ringier-axel-springer-poland/playbook.etag.json +1 -1
- package/.dist/ringier-axel-springer-poland/playbook.json +9 -9
- package/.dist/roku/connection.etag.json +1 -1
- package/.dist/roku/kit.etag.json +1 -1
- package/.dist/roku/playbook.etag.json +1 -1
- package/.dist/roomvo/connection.etag.json +1 -1
- package/.dist/roomvo/kit.etag.json +1 -1
- package/.dist/roomvo/playbook.etag.json +1 -1
- package/.dist/rtb-house/connection.etag.json +1 -1
- package/.dist/rtb-house/kit.etag.json +1 -1
- package/.dist/rtb-house/playbook.etag.json +1 -1
- package/.dist/s3/connection.etag.json +1 -1
- package/.dist/s3/kit.etag.json +1 -1
- package/.dist/s3/playbook.etag.json +1 -1
- package/.dist/salesforce-cdp/connection.etag.json +1 -1
- package/.dist/salesforce-cdp/kit.etag.json +1 -1
- package/.dist/salesforce-cdp/playbook.etag.json +1 -1
- package/.dist/snapchat/connection.etag.json +1 -1
- package/.dist/snapchat/kit.etag.json +1 -1
- package/.dist/snapchat/playbook.etag.json +1 -1
- package/.dist/snapchat-capi/connection.etag.json +1 -1
- package/.dist/snapchat-capi/kit.etag.json +1 -1
- package/.dist/snapchat-capi/playbook.etag.json +1 -1
- package/.dist/snowflake/connection.etag.json +1 -1
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/snowflake/playbook.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/connection.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/kit.etag.json +1 -1
- package/.dist/thetradedesk-conversion-events/playbook.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/connection.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
- package/.dist/tiktok/connection.etag.json +1 -1
- package/.dist/tiktok/kit.etag.json +1 -1
- package/.dist/tiktok/playbook.etag.json +1 -1
- package/.dist/treasure-data/connection.etag.json +1 -1
- package/.dist/treasure-data/kit.etag.json +1 -1
- package/.dist/treasure-data/playbook.etag.json +1 -1
- package/.dist/ttd-conversions/connection.etag.json +1 -1
- package/.dist/ttd-conversions/kit.etag.json +1 -1
- package/.dist/ttd-conversions/playbook.etag.json +1 -1
- package/.dist/twitter-conversions/connection.etag.json +1 -1
- package/.dist/twitter-conversions/kit.etag.json +1 -1
- package/.dist/twitter-conversions/playbook.etag.json +1 -1
- package/.dist/verizon-media/connection.etag.json +1 -1
- package/.dist/verizon-media/kit.etag.json +1 -1
- package/.dist/verizon-media/playbook.etag.json +1 -1
- package/.dist/videoamp/connection.etag.json +1 -1
- package/.dist/videoamp/kit.etag.json +1 -1
- package/.dist/videoamp/playbook.etag.json +1 -1
- package/.dist/x-ads/connection.etag.json +1 -1
- package/.dist/x-ads/kit.etag.json +1 -1
- package/.dist/x-ads/playbook.etag.json +1 -1
- package/.dist/xandr/connection.etag.json +1 -1
- package/.dist/xandr/kit.etag.json +1 -1
- package/.dist/xandr/playbook.etag.json +1 -1
- package/.dist/yahoo-enhanced-attribution/connection.etag.json +1 -1
- package/.dist/yahoo-enhanced-attribution/kit.etag.json +1 -1
- package/.dist/yahoo-enhanced-attribution/playbook.etag.json +1 -1
- package/.dist/yahoo-offline-conversion/connection.etag.json +1 -1
- package/.dist/yahoo-offline-conversion/kit.etag.json +1 -1
- package/.dist/yahoo-offline-conversion/playbook.etag.json +1 -1
- package/.dist/zeotap/connection.etag.json +1 -1
- package/.dist/zeotap/kit.etag.json +1 -1
- package/.dist/zeotap/playbook.etag.json +1 -1
- package/README.md +4 -2
- package/index.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"global": {
|
|
4
|
+
"mappings": [
|
|
5
|
+
{
|
|
6
|
+
"inputKey": "input",
|
|
7
|
+
"outputKey": "eventType",
|
|
8
|
+
"transforms": [
|
|
9
|
+
{
|
|
10
|
+
"expression": {
|
|
11
|
+
"lang": "lua",
|
|
12
|
+
"body": "return (input.type == 'page' and 'pageLoad') or 'custom'"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputKey": "messageId",
|
|
19
|
+
"outputKey": "eventId"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"inputKey": "context.providers.microsoftAds.mid",
|
|
23
|
+
"outputKey": "pageLoadId"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputKey": "input",
|
|
27
|
+
"outputKey": "eventTime",
|
|
28
|
+
"transforms": [
|
|
29
|
+
{
|
|
30
|
+
"expression": {
|
|
31
|
+
"lang": "lua",
|
|
32
|
+
"body": "return SECONDS_SINCE_EPOCH_FROM_RFC3999(input.timestamp or input.originalTimestamp or input.sentAt)"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"inputKey": "context.page.url",
|
|
39
|
+
"outputKey": "eventSourceUrl"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inputKey": "context.page.title",
|
|
43
|
+
"outputKey": "pageTitle"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputKey": "context.page.referrer",
|
|
47
|
+
"outputKey": "referrerUrl"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputKey": "anonymousId",
|
|
51
|
+
"outputKey": "userData.anonymousId"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"inputKey": "userId",
|
|
55
|
+
"outputKey": "userData.externalId"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"inputKey": "context.providers.microsoftAds.msclkid",
|
|
59
|
+
"outputKey": "userData.msclkid"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"inputKey": "context.ip",
|
|
63
|
+
"outputKey": "userData.clientIpAddress"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputKey": "context.userAgent",
|
|
67
|
+
"outputKey": "userData.clientUserAgent"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"inputKey": "input",
|
|
71
|
+
"outputKey": "userData.em",
|
|
72
|
+
"transforms": [
|
|
73
|
+
{
|
|
74
|
+
"expression": {
|
|
75
|
+
"body": "local email = input.traits.email\nif email then\n local cleaned_email = (input.traits.email:gsub(\"([^@]+)@(.+)\", function(user, domain)\n return (user:gsub(\"%+.*\", \"\"):gsub(\"%.\", \"\")) .. \"@\" .. domain\n end))\n return TO_SHA256_HASH(LOWER(TRIM(cleaned_email)))\nend",
|
|
76
|
+
"lang": "lua"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"inputKey": "input",
|
|
83
|
+
"outputKey": "userData.ph",
|
|
84
|
+
"transforms": [
|
|
85
|
+
{
|
|
86
|
+
"expression": {
|
|
87
|
+
"body": "local phone = input.traits.phone\nlocal default_country_code = \"+1\"\nif phone then\n local normalized_phone = (phone:gsub(\"[^%d+]\", \"\"):gsub(\"^00\", \"+\"):gsub(\"^(%d)\", default_country_code .. \"%1\"))\n return TO_SHA256_HASH(LOWER(normalized_phone))\nend",
|
|
88
|
+
"lang": "lua"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"inputKey": "input",
|
|
95
|
+
"outputKey": "customData.eventLabel",
|
|
96
|
+
"transforms": [
|
|
97
|
+
{
|
|
98
|
+
"expression": {
|
|
99
|
+
"lang": "lua",
|
|
100
|
+
"body": "return input.event or input.type"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"eventSpecific": {
|
|
108
|
+
"page": {
|
|
109
|
+
"mappings": [
|
|
110
|
+
{
|
|
111
|
+
"inputKey": "input",
|
|
112
|
+
"outputKey": "customData.pageType",
|
|
113
|
+
"transforms": [
|
|
114
|
+
{
|
|
115
|
+
"expression": {
|
|
116
|
+
"body": "return input.context.page.path == '/' and 'home' or 'other'",
|
|
117
|
+
"lang": "lua"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"products_searched": {
|
|
125
|
+
"enrichments": [
|
|
126
|
+
{
|
|
127
|
+
"staticString": "searchresults",
|
|
128
|
+
"outputKey": "customData.pageType"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"staticString": "search",
|
|
132
|
+
"outputKey": "customData.eventCategory"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"mappings": [
|
|
136
|
+
{
|
|
137
|
+
"inputKey": "properties.query",
|
|
138
|
+
"outputKey": "customData.searchTerm"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"product_list_viewed": {
|
|
143
|
+
"enrichments": [
|
|
144
|
+
{
|
|
145
|
+
"staticString": "category",
|
|
146
|
+
"outputKey": "customData.pageType"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"mappings": [
|
|
150
|
+
{
|
|
151
|
+
"inputKey": "properties.category",
|
|
152
|
+
"outputKey": "customData.ecommCategory"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"inputKey": "input",
|
|
156
|
+
"outputKey": "customData.itemIds",
|
|
157
|
+
"transforms": [
|
|
158
|
+
{
|
|
159
|
+
"expression": {
|
|
160
|
+
"body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
|
|
161
|
+
"lang": "lua"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"inputKey": "input",
|
|
168
|
+
"outputKey": "customData.items",
|
|
169
|
+
"transforms": [
|
|
170
|
+
{
|
|
171
|
+
"expression": {
|
|
172
|
+
"body": "return MAP(input.properties.products, function (p) return {\n id = p.product_id or p.sku or 'N/A',\n name = p.name,\n price = p.price or 0,\n quantity = p.quantity or 1\n} end)",
|
|
173
|
+
"lang": "lua"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"product_clicked": {
|
|
181
|
+
"enrichments": [
|
|
182
|
+
{
|
|
183
|
+
"staticString": "product",
|
|
184
|
+
"outputKey": "customData.pageType"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"mappings": [
|
|
188
|
+
{
|
|
189
|
+
"inputKey": "properties.category",
|
|
190
|
+
"outputKey": "customData.ecommCategory"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"inputKey": "input",
|
|
194
|
+
"outputKey": "customData.itemIds",
|
|
195
|
+
"transforms": [
|
|
196
|
+
{
|
|
197
|
+
"expression": {
|
|
198
|
+
"body": "return { input.properties.product_id or input.properties.sku }",
|
|
199
|
+
"lang": "lua"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"inputKey": "input",
|
|
206
|
+
"outputKey": "customData.items",
|
|
207
|
+
"transforms": [
|
|
208
|
+
{
|
|
209
|
+
"expression": {
|
|
210
|
+
"body": "return {{\n id = input.properties.product_id or input.properties.sku or 'N/A',\n name = input.properties.name,\n price = input.properties.price or 0,\n quantity = input.properties.quantity or 1\n}}",
|
|
211
|
+
"lang": "lua"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"product_viewed": {
|
|
219
|
+
"enrichments": [
|
|
220
|
+
{
|
|
221
|
+
"staticString": "product",
|
|
222
|
+
"outputKey": "customData.pageType"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"mappings": [
|
|
226
|
+
{
|
|
227
|
+
"inputKey": "properties.category",
|
|
228
|
+
"outputKey": "customData.ecommCategory"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"inputKey": "input",
|
|
232
|
+
"outputKey": "customData.itemIds",
|
|
233
|
+
"transforms": [
|
|
234
|
+
{
|
|
235
|
+
"expression": {
|
|
236
|
+
"body": "return { input.properties.product_id or input.properties.sku }",
|
|
237
|
+
"lang": "lua"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"inputKey": "input",
|
|
244
|
+
"outputKey": "customData.items",
|
|
245
|
+
"transforms": [
|
|
246
|
+
{
|
|
247
|
+
"expression": {
|
|
248
|
+
"body": "return {{\n id = input.properties.product_id or input.properties.sku or 'N/A',\n name = input.properties.name,\n price = input.properties.price or 0,\n quantity = input.properties.quantity or 1\n}}",
|
|
249
|
+
"lang": "lua"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"product_added": {
|
|
257
|
+
"enrichments": [
|
|
258
|
+
{
|
|
259
|
+
"staticString": "product",
|
|
260
|
+
"outputKey": "customData.pageType"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"mappings": [
|
|
264
|
+
{
|
|
265
|
+
"inputKey": "properties.category",
|
|
266
|
+
"outputKey": "customData.ecommCategory"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"inputKey": "input",
|
|
270
|
+
"outputKey": "customData.itemIds",
|
|
271
|
+
"transforms": [
|
|
272
|
+
{
|
|
273
|
+
"expression": {
|
|
274
|
+
"body": "return { input.properties.product_id or input.properties.sku }",
|
|
275
|
+
"lang": "lua"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"inputKey": "input",
|
|
282
|
+
"outputKey": "customData.items",
|
|
283
|
+
"transforms": [
|
|
284
|
+
{
|
|
285
|
+
"expression": {
|
|
286
|
+
"body": "return {{\n id = input.properties.product_id or input.properties.sku or 'N/A',\n name = input.properties.name,\n price = input.properties.price or 0,\n quantity = input.properties.quantity or 1\n}}",
|
|
287
|
+
"lang": "lua"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"inputKey": "input",
|
|
294
|
+
"outputKey": "customData.value",
|
|
295
|
+
"transforms": [
|
|
296
|
+
{
|
|
297
|
+
"expression": {
|
|
298
|
+
"lang": "lua",
|
|
299
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"inputKey": "input",
|
|
306
|
+
"outputKey": "customData.ecommTotalValue",
|
|
307
|
+
"transforms": [
|
|
308
|
+
{
|
|
309
|
+
"expression": {
|
|
310
|
+
"lang": "lua",
|
|
311
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"inputKey": "properties.currency",
|
|
318
|
+
"outputKey": "customData.currency",
|
|
319
|
+
"transforms": [
|
|
320
|
+
{
|
|
321
|
+
"modifyString": "uppercase"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"defaultString": "USD"
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"product_removed": {
|
|
329
|
+
"enrichments": [
|
|
330
|
+
{
|
|
331
|
+
"staticString": "product",
|
|
332
|
+
"outputKey": "customData.pageType"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"mappings": [
|
|
336
|
+
{
|
|
337
|
+
"inputKey": "properties.category",
|
|
338
|
+
"outputKey": "customData.ecommCategory"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"inputKey": "input",
|
|
342
|
+
"outputKey": "customData.itemIds",
|
|
343
|
+
"transforms": [
|
|
344
|
+
{
|
|
345
|
+
"expression": {
|
|
346
|
+
"body": "return { input.properties.product_id or input.properties.sku }",
|
|
347
|
+
"lang": "lua"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"inputKey": "input",
|
|
354
|
+
"outputKey": "customData.items",
|
|
355
|
+
"transforms": [
|
|
356
|
+
{
|
|
357
|
+
"expression": {
|
|
358
|
+
"body": "return {{\n id = input.properties.product_id or input.properties.sku or 'N/A',\n name = input.properties.name,\n price = input.properties.price or 0,\n quantity = input.properties.quantity or 1\n}}",
|
|
359
|
+
"lang": "lua"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"inputKey": "input",
|
|
366
|
+
"outputKey": "customData.value",
|
|
367
|
+
"transforms": [
|
|
368
|
+
{
|
|
369
|
+
"expression": {
|
|
370
|
+
"lang": "lua",
|
|
371
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"inputKey": "input",
|
|
378
|
+
"outputKey": "customData.ecommTotalValue",
|
|
379
|
+
"transforms": [
|
|
380
|
+
{
|
|
381
|
+
"expression": {
|
|
382
|
+
"lang": "lua",
|
|
383
|
+
"body": "return TOTAL_VALUE(input.properties)"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"inputKey": "properties.currency",
|
|
390
|
+
"outputKey": "customData.currency",
|
|
391
|
+
"transforms": [
|
|
392
|
+
{
|
|
393
|
+
"modifyString": "uppercase"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"defaultString": "USD"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
"cart_viewed": {
|
|
401
|
+
"enrichments": [
|
|
402
|
+
{
|
|
403
|
+
"staticString": "cart",
|
|
404
|
+
"outputKey": "customData.pageType"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"mappings": [
|
|
408
|
+
{
|
|
409
|
+
"inputKey": "input",
|
|
410
|
+
"outputKey": "customData.itemIds",
|
|
411
|
+
"transforms": [
|
|
412
|
+
{
|
|
413
|
+
"expression": {
|
|
414
|
+
"body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
|
|
415
|
+
"lang": "lua"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"inputKey": "input",
|
|
422
|
+
"outputKey": "customData.items",
|
|
423
|
+
"transforms": [
|
|
424
|
+
{
|
|
425
|
+
"expression": {
|
|
426
|
+
"body": "return MAP(input.properties.products, function (p) return {\n id = p.product_id or p.sku or 'N/A',\n name = p.name,\n price = p.price or 0,\n quantity = p.quantity or 1\n} end)",
|
|
427
|
+
"lang": "lua"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"inputKey": "input",
|
|
434
|
+
"outputKey": "customData.value",
|
|
435
|
+
"transforms": [
|
|
436
|
+
{
|
|
437
|
+
"expression": {
|
|
438
|
+
"lang": "lua",
|
|
439
|
+
"body": "return TOTAL_VALUE(input.properties.products)"
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"inputKey": "input",
|
|
446
|
+
"outputKey": "customData.ecommTotalValue",
|
|
447
|
+
"transforms": [
|
|
448
|
+
{
|
|
449
|
+
"expression": {
|
|
450
|
+
"lang": "lua",
|
|
451
|
+
"body": "return TOTAL_VALUE(input.properties.products)"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"inputKey": "properties.currency",
|
|
458
|
+
"outputKey": "customData.currency",
|
|
459
|
+
"transforms": [
|
|
460
|
+
{
|
|
461
|
+
"modifyString": "uppercase"
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
"defaultString": "USD"
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
"order_completed": {
|
|
469
|
+
"enrichments": [
|
|
470
|
+
{
|
|
471
|
+
"staticString": "purchase",
|
|
472
|
+
"outputKey": "customData.pageType"
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"mappings": [
|
|
476
|
+
{
|
|
477
|
+
"inputKey": "properties.order_id",
|
|
478
|
+
"outputKey": "customData.transactionId"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"inputKey": "input",
|
|
482
|
+
"outputKey": "customData.itemIds",
|
|
483
|
+
"transforms": [
|
|
484
|
+
{
|
|
485
|
+
"expression": {
|
|
486
|
+
"body": "return MAP(input.properties.products, function (p) return p.product_id or p.sku end)",
|
|
487
|
+
"lang": "lua"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"inputKey": "input",
|
|
494
|
+
"outputKey": "customData.items",
|
|
495
|
+
"transforms": [
|
|
496
|
+
{
|
|
497
|
+
"expression": {
|
|
498
|
+
"body": "return MAP(input.properties.products, function (p) return {\n id = p.product_id or p.sku or 'N/A',\n name = p.name,\n price = p.price or 0,\n quantity = p.quantity or 1\n} end)",
|
|
499
|
+
"lang": "lua"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"inputKey": "input",
|
|
506
|
+
"outputKey": "customData.value",
|
|
507
|
+
"transforms": [
|
|
508
|
+
{
|
|
509
|
+
"expression": {
|
|
510
|
+
"lang": "lua",
|
|
511
|
+
"body": "return TOTAL_VALUE(input.properties.products)"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"inputKey": "input",
|
|
518
|
+
"outputKey": "customData.ecommTotalValue",
|
|
519
|
+
"transforms": [
|
|
520
|
+
{
|
|
521
|
+
"expression": {
|
|
522
|
+
"lang": "lua",
|
|
523
|
+
"body": "return TOTAL_VALUE(input.properties.products)"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"inputKey": "properties.currency",
|
|
530
|
+
"outputKey": "customData.currency",
|
|
531
|
+
"transforms": [
|
|
532
|
+
{
|
|
533
|
+
"modifyString": "uppercase"
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"defaultString": "USD"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"default": {
|
|
542
|
+
"enrichments": [
|
|
543
|
+
{
|
|
544
|
+
"staticString": "other",
|
|
545
|
+
"outputKey": "customData.pageType"
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
}
|
|
549
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"3415659ce647c325ee093e5f24390dae"
|
|
1
|
+
"3415659ce647c325ee093e5f24390dae -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"5bb176ae896eca8dee91dfc4fb7bfad9 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"a8e6cdd44f662c410f801b3ef8e4e1d5"
|
|
1
|
+
"a8e6cdd44f662c410f801b3ef8e4e1d5 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"a2954a40361ab841a304a1cca1e256a9"
|
|
1
|
+
"a2954a40361ab841a304a1cca1e256a9 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"0d357f0f7c58942d5c59a17f50125514 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"0e5443bf79a7009fad5a4903e125b768"
|
|
1
|
+
"0e5443bf79a7009fad5a4903e125b768 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"d818194a33ded718398d2b3d345ef8db"
|
|
1
|
+
"d818194a33ded718398d2b3d345ef8db -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f36324ae11a090c0e1ef7e1441f5ee42 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"54ebfff68f490705fa552893bfa6f76e"
|
|
1
|
+
"54ebfff68f490705fa552893bfa6f76e -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"1bb318b25c50ab2a0714bc09b5710f0a"
|
|
1
|
+
"1bb318b25c50ab2a0714bc09b5710f0a -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"c1d5eb586d303a4bb2a0b15008f4d8ae -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"7df34301bc470359d9b681dbef3cfa96"
|
|
1
|
+
"7df34301bc470359d9b681dbef3cfa96 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"113d40c3d8bdcdeb8d55813fb3306b7a"
|
|
1
|
+
"113d40c3d8bdcdeb8d55813fb3306b7a -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1bb4baa131a4c3d3424de87bfd5424d6 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"a60ed01b01451e52e71c5f5653d88b2a"
|
|
1
|
+
"a60ed01b01451e52e71c5f5653d88b2a -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"8453a7604fd59632c28fc2d86abe7b73"
|
|
1
|
+
"8453a7604fd59632c28fc2d86abe7b73 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ef03e9d213c0f9245f94ea8a713523e1 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"daf5f8b1f13ac70aacb4bea50fac5ac7"
|
|
1
|
+
"daf5f8b1f13ac70aacb4bea50fac5ac7 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"87ee4386c51a48d465d942b70a5fba84"
|
|
1
|
+
"87ee4386c51a48d465d942b70a5fba84 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"b54219c39d94c21216908b769c63e5ef -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"1dcade80f36aa93364878be1d75ada87"
|
|
1
|
+
"1dcade80f36aa93364878be1d75ada87 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"c752be088c743ff1fb49d99ff5376984"
|
|
1
|
+
"c752be088c743ff1fb49d99ff5376984 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"b866afad2d2e3d1a5b2e8c4a8432e548 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"d7e76e5085d5354707ca807b892f0e11"
|
|
1
|
+
"d7e76e5085d5354707ca807b892f0e11 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"cd4779aca67c541637b809139ef52b6a"
|
|
1
|
+
"cd4779aca67c541637b809139ef52b6a -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"6328ccb9f64d4f48047ce403f72d1dc4 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"70885ad793f795c08cdea5a0900c0373"
|
|
1
|
+
"70885ad793f795c08cdea5a0900c0373 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"e6699a80469141c62fcfb6f0e955b180"
|
|
1
|
+
"e6699a80469141c62fcfb6f0e955b180 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f77eb643227d13c5421b32a324597dc7 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"189bd1bf0b3bc316e3220f4029890511"
|
|
1
|
+
"189bd1bf0b3bc316e3220f4029890511 -"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"844d255b7d234f50fad501d603c4ae87"
|
|
1
|
+
"844d255b7d234f50fad501d603c4ae87 -"
|