@metarouter/ajs-starter-kit 1.0.135 → 1.0.137

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.
Files changed (127) hide show
  1. package/.dist/actioniq/kit.etag.json +1 -1
  2. package/.dist/actioniq/metadata.json +4 -0
  3. package/.dist/actioniq/playbook.etag.json +1 -1
  4. package/.dist/actioniq/playbook.json +2 -2
  5. package/.dist/adobe-experience-platform-interact/kit.etag.json +1 -1
  6. package/.dist/adobe-experience-platform-interact/metadata.json +4 -0
  7. package/.dist/adobe-experience-platform-interact/playbook.etag.json +1 -1
  8. package/.dist/adobe-experience-platform-interact/playbook.json +2 -2
  9. package/.dist/amazon-dsp-capi/kit.etag.json +1 -1
  10. package/.dist/amazon-dsp-capi/metadata.json +4 -0
  11. package/.dist/amazon-dsp-capi/playbook.etag.json +1 -1
  12. package/.dist/amazon-dsp-capi/playbook.json +6 -118
  13. package/.dist/blueshift/kit.etag.json +1 -1
  14. package/.dist/blueshift/metadata.json +4 -0
  15. package/.dist/blueshift/playbook.etag.json +1 -1
  16. package/.dist/blueshift/playbook.json +2 -2
  17. package/.dist/button/kit.etag.json +1 -1
  18. package/.dist/button/metadata.json +4 -0
  19. package/.dist/button/playbook.etag.json +1 -1
  20. package/.dist/button/playbook.json +2 -2
  21. package/.dist/clinch/kit.etag.json +1 -1
  22. package/.dist/clinch/metadata.json +4 -0
  23. package/.dist/clinch/playbook.etag.json +1 -1
  24. package/.dist/clinch/playbook.json +2 -2
  25. package/.dist/commission-junction/kit.etag.json +1 -1
  26. package/.dist/commission-junction/metadata.json +4 -0
  27. package/.dist/commission-junction/playbook.etag.json +1 -1
  28. package/.dist/commission-junction/playbook.json +3 -3
  29. package/.dist/criteo/connection.etag.json +1 -1
  30. package/.dist/criteo/connection.json +1 -1
  31. package/.dist/criteo/kit.etag.json +1 -1
  32. package/.dist/criteo/metadata.json +4 -0
  33. package/.dist/criteo/playbook.etag.json +1 -1
  34. package/.dist/criteo/playbook.json +7 -7
  35. package/.dist/facebook-pixel/kit.etag.json +1 -1
  36. package/.dist/facebook-pixel/metadata.json +4 -0
  37. package/.dist/facebook-pixel/playbook.etag.json +1 -1
  38. package/.dist/facebook-pixel/playbook.json +2 -2
  39. package/.dist/hubspot-event/kit.etag.json +1 -1
  40. package/.dist/hubspot-event/metadata.json +4 -0
  41. package/.dist/hubspot-event/playbook.etag.json +1 -1
  42. package/.dist/hubspot-event/playbook.json +2 -2
  43. package/.dist/linkedin-conversions/kit.etag.json +1 -1
  44. package/.dist/linkedin-conversions/metadata.json +4 -0
  45. package/.dist/linkedin-conversions/playbook.etag.json +1 -1
  46. package/.dist/linkedin-conversions/playbook.json +2 -2
  47. package/.dist/magellan-ai/kit.etag.json +1 -1
  48. package/.dist/magellan-ai/metadata.json +4 -0
  49. package/.dist/magellan-ai/playbook.etag.json +1 -1
  50. package/.dist/magellan-ai/playbook.json +2 -2
  51. package/.dist/merkle/kit.etag.json +1 -1
  52. package/.dist/merkle/metadata.json +4 -0
  53. package/.dist/merkle/playbook.etag.json +1 -1
  54. package/.dist/merkle/playbook.json +3 -11
  55. package/.dist/microsoft-ads/kit.etag.json +1 -1
  56. package/.dist/microsoft-ads/metadata.json +4 -0
  57. package/.dist/microsoft-ads/playbook.etag.json +1 -1
  58. package/.dist/microsoft-ads/playbook.json +2 -2
  59. package/.dist/nextdoor-capi/kit.etag.json +1 -1
  60. package/.dist/nextdoor-capi/metadata.json +4 -0
  61. package/.dist/nextdoor-capi/playbook.etag.json +1 -1
  62. package/.dist/nextdoor-capi/playbook.json +11 -11
  63. package/.dist/podscribe/kit.etag.json +1 -1
  64. package/.dist/podscribe/metadata.json +8 -0
  65. package/.dist/podscribe/playbook.etag.json +1 -1
  66. package/.dist/podscribe/playbook.json +3 -3
  67. package/.dist/rakuten-conversions/connection.etag.json +1 -0
  68. package/.dist/rakuten-conversions/connection.json +24 -0
  69. package/.dist/rakuten-conversions/kit.etag.json +1 -0
  70. package/.dist/rakuten-conversions/metadata.json +21 -0
  71. package/.dist/rakuten-conversions/playbook.etag.json +1 -0
  72. package/.dist/rakuten-conversions/playbook.json +279 -0
  73. package/.dist/rasp/kit.etag.json +1 -1
  74. package/.dist/rasp/metadata.json +4 -0
  75. package/.dist/rasp/playbook.etag.json +1 -1
  76. package/.dist/rasp/playbook.json +2 -2
  77. package/.dist/reddit-ads/kit.etag.json +1 -1
  78. package/.dist/reddit-ads/metadata.json +4 -0
  79. package/.dist/reddit-ads/playbook.etag.json +1 -1
  80. package/.dist/reddit-ads/playbook.json +3 -3
  81. package/.dist/ringier-axel-springer-poland/kit.etag.json +1 -1
  82. package/.dist/ringier-axel-springer-poland/metadata.json +4 -0
  83. package/.dist/ringier-axel-springer-poland/playbook.etag.json +1 -1
  84. package/.dist/ringier-axel-springer-poland/playbook.json +2 -2
  85. package/.dist/roku/kit.etag.json +1 -1
  86. package/.dist/roku/metadata.json +4 -0
  87. package/.dist/roku/playbook.etag.json +1 -1
  88. package/.dist/roku/playbook.json +2 -2
  89. package/.dist/rtb-house/kit.etag.json +1 -1
  90. package/.dist/rtb-house/metadata.json +4 -0
  91. package/.dist/rtb-house/playbook.etag.json +1 -1
  92. package/.dist/rtb-house/playbook.json +2 -2
  93. package/.dist/salesforce-cdp/kit.etag.json +1 -1
  94. package/.dist/salesforce-cdp/metadata.json +4 -0
  95. package/.dist/salesforce-cdp/playbook.etag.json +1 -1
  96. package/.dist/salesforce-cdp/playbook.json +2 -2
  97. package/.dist/snapchat-capi/kit.etag.json +1 -1
  98. package/.dist/snapchat-capi/metadata.json +4 -0
  99. package/.dist/snapchat-capi/playbook.etag.json +1 -1
  100. package/.dist/snapchat-capi/playbook.json +10 -10
  101. package/.dist/thetradedesk-conversion-events/kit.etag.json +1 -1
  102. package/.dist/thetradedesk-conversion-events/metadata.json +4 -0
  103. package/.dist/thetradedesk-conversion-events/playbook.etag.json +1 -1
  104. package/.dist/thetradedesk-conversion-events/playbook.json +2 -2
  105. package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
  106. package/.dist/thetradedesk-data-advertiser-firstparty/metadata.json +4 -0
  107. package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
  108. package/.dist/thetradedesk-data-advertiser-firstparty/playbook.json +2 -2
  109. package/.dist/tiktok/kit.etag.json +1 -1
  110. package/.dist/tiktok/metadata.json +4 -0
  111. package/.dist/tiktok/playbook.etag.json +1 -1
  112. package/.dist/tiktok/playbook.json +3 -3
  113. package/.dist/ttd-conversions/kit.etag.json +1 -1
  114. package/.dist/ttd-conversions/metadata.json +9 -1
  115. package/.dist/ttd-conversions/playbook.etag.json +1 -1
  116. package/.dist/ttd-conversions/playbook.json +9 -41
  117. package/.dist/twitter-conversions/kit.etag.json +1 -1
  118. package/.dist/twitter-conversions/metadata.json +4 -0
  119. package/.dist/twitter-conversions/playbook.etag.json +1 -1
  120. package/.dist/twitter-conversions/playbook.json +3 -3
  121. package/.dist/x-ads/kit.etag.json +1 -1
  122. package/.dist/x-ads/metadata.json +4 -0
  123. package/.dist/x-ads/playbook.etag.json +1 -1
  124. package/.dist/x-ads/playbook.json +2 -2
  125. package/README.md +56 -54
  126. package/index.js +18 -8
  127. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.2.0",
3
3
  "default": {
4
4
  "filters": [
5
5
  {
@@ -53,7 +53,7 @@
53
53
  {
54
54
  "expression": {
55
55
  "lang": "lua",
56
- "body": "local function is_empty(str)\n return not str or str == ''\nend\n\nlocal user_ids = {}\n\nlocal email = input.traits.email or input.context.traits.email\nif email then\n table.insert(user_ids, {\n idType = 'SHA256_EMAIL',\n idValue = TO_SHA256_HASH(LOWER(TRIM(email)))\n })\nend\n\nlocal li_fat_id = input.context.providers.linkedIn.li_fat_id\nif li_fat_id then\n table.insert(user_ids, {\n idType = 'LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID',\n idValue = li_fat_id\n })\nend\nreturn user_ids"
56
+ "body": "local function is_empty(str)\n return not str or str == ''\nend\n\nlocal user_ids = {}\n\nlocal email = input.traits.email\nif email then\n table.insert(user_ids, {\n idType = 'SHA256_EMAIL',\n idValue = TO_SHA256_HASH(LOWER(TRIM(email)))\n })\nend\n\nlocal li_fat_id = input.context.providers.linkedIn.li_fat_id\nif li_fat_id then\n table.insert(user_ids, {\n idType = 'LINKEDIN_FIRST_PARTY_ADS_TRACKING_UUID',\n idValue = li_fat_id\n })\nend\nreturn user_ids"
57
57
  }
58
58
  }
59
59
  ]
@@ -1 +1 @@
1
- "699e6d9967cfdf45b25cce1a8f788267"
1
+ "ab9b9c05bb914d9a46e2012a1a7335ee"
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2024-10-23T00:00:00.000Z",
26
26
  "note": "Version: 1.1.0\nAdded header `Accept-Encoding: application/json`"
27
+ },
28
+ {
29
+ "date": "2025-07-30T00:00:00.000Z",
30
+ "note": "Version: 1.2.0\nReplaced context.traits with traits."
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "a05a74f722a4c65c84896457cf439995"
1
+ "3c514baa92348665710b845550379377"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "TOKEN",
@@ -49,7 +49,7 @@
49
49
  {
50
50
  "expression": {
51
51
  "lang": "lua",
52
- "body": "local email = input.traits.email or input.context.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn input.userId"
52
+ "body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn input.userId"
53
53
  }
54
54
  }
55
55
  ]
@@ -1 +1 @@
1
- "44599f9b4d3b75a678e78cb051d14842"
1
+ "81d41197dd14c6d1b879c8f44e787991"
@@ -32,6 +32,10 @@
32
32
  {
33
33
  "date": "2025-02-05T00:00:00.000Z",
34
34
  "note": "Version: 1.2.0\nUpdated mappings to comply with Merkle's requirements\nAdded required fields: ipAddress, userAgent, pageUrl\nAdded optional fields: rawEmail\nUpdated type field of page event to viewpage"
35
+ },
36
+ {
37
+ "date": "2025-07-30T00:00:00.000Z",
38
+ "note": "Version: 1.3.0\nReplaced context.traits with traits."
35
39
  }
36
40
  ]
37
41
  }
@@ -1 +1 @@
1
- "e8fb409ebe6565693469c6879281f1e3"
1
+ "f8368646613bb61acc2df4dd7e3283f9"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.3.0",
3
3
  "global": {
4
4
  "mappings": [
5
5
  {
@@ -39,16 +39,8 @@
39
39
  "outputKey": "ipAddress"
40
40
  },
41
41
  {
42
- "inputKey": "input",
43
- "outputKey": "rawEmail",
44
- "transforms": [
45
- {
46
- "expression": {
47
- "lang": "lua",
48
- "body": "local email = input.traits.email or input.context.traits.email\nif email then\n return email\nend\nreturn"
49
- }
50
- }
51
- ]
42
+ "inputKey": "traits.email",
43
+ "outputKey": "rawEmail"
52
44
  },
53
45
  {
54
46
  "inputKey": "messageId",
@@ -1 +1 @@
1
- "6540d39b9ad9a702e2516c90874863ce"
1
+ "d9721e160045d36b0b2b848f0069e486"
@@ -24,6 +24,10 @@
24
24
  {
25
25
  "date": "2025-04-02T22:00:00.000Z",
26
26
  "note": "Version: 1.0.0\nMicrosoft Ads stable release"
27
+ },
28
+ {
29
+ "date": "2025-07-30T00:00:00.000Z",
30
+ "note": "Version: 1.1.0\nReplaced context.traits with traits."
27
31
  }
28
32
  ]
29
33
  }
@@ -1 +1 @@
1
- "86833f3253a6e1d91b8db00c3802d610"
1
+ "1b394957f3018f11c3c71a3ff282da96"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "UET_TAG_ID",
@@ -65,7 +65,7 @@
65
65
  {
66
66
  "expression": {
67
67
  "lang": "lua",
68
- "body": "local pid = {}\nid = 1\nlocal email = input.traits.email or input.context.traits.email\nemail = LOWER(TRIM(email))\nif email then\n if (string.find(email, '@') ~= nil) then\n email = SPLIT(email, '@', 2)\n if string.sub(email[1], -6) == '+alias' then email[1] = REPLACE(email[1], '+alias', '') end\n pid[id] = 'em=' .. TO_SHA256_HASH(REPLACE(email[1], '.', '') .. '@' .. email[2])\n else\n pid[id] = 'em=' .. TO_SHA256_HASH(email)\n end\n id = id + 1\nend\nlocal phone = input.traits.phone or input.context.traits.phone\nif phone then\n pid[id] = 'ph=' .. TO_SHA256_HASH(LOWER(TRIM(phone)))\nend\nif (#pid > 0) then return JOIN(pid, '&') end"
68
+ "body": "local pid = {}\nid = 1\nlocal email = input.traits.email\nemail = LOWER(TRIM(email))\nif email then\n if (string.find(email, '@') ~= nil) then\n email = SPLIT(email, '@', 2)\n if string.sub(email[1], -6) == '+alias' then email[1] = REPLACE(email[1], '+alias', '') end\n pid[id] = 'em=' .. TO_SHA256_HASH(REPLACE(email[1], '.', '') .. '@' .. email[2])\n else\n pid[id] = 'em=' .. TO_SHA256_HASH(email)\n end\n id = id + 1\nend\nlocal phone = input.traits.phone\nif phone then\n pid[id] = 'ph=' .. TO_SHA256_HASH(LOWER(TRIM(phone)))\nend\nif (#pid > 0) then return JOIN(pid, '&') end"
69
69
  }
70
70
  }
71
71
  ]
@@ -1 +1 @@
1
- "457b0e1cbf89d1edb60de2c419418a07"
1
+ "0e7736bf98702a02574443bab688fd4c"
@@ -28,6 +28,10 @@
28
28
  {
29
29
  "date": "2024-10-23T00:00:00.000Z",
30
30
  "note": "Version: 1.2.0\nAdded header `Accept-Encoding: application/json`"
31
+ },
32
+ {
33
+ "date": "2025-07-30T00:00:00.000Z",
34
+ "note": "Version: 1.3.0\nReplaced context.traits with traits."
31
35
  }
32
36
  ]
33
37
  }
@@ -1 +1 @@
1
- "dfef688a569f1b2107f760b0471bc6df"
1
+ "1dcade80f36aa93364878be1d75ada87"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0",
2
+ "version": "1.3.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "CLIENT_ID",
@@ -64,7 +64,7 @@
64
64
  "transforms": [
65
65
  {
66
66
  "expression": {
67
- "body": "local email = input.traits.email or input.context.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
67
+ "body": "local email = input.traits.email\nif (email) then return TO_SHA256_HASH(LOWER(TRIM(email))) end",
68
68
  "lang": "lua"
69
69
  }
70
70
  }
@@ -76,7 +76,7 @@
76
76
  "transforms": [
77
77
  {
78
78
  "expression": {
79
- "body": "local phone = input.traits.phone or input.context.traits.phone\nif (phone) then return TO_SHA256_HASH(TRIM(phone)) end",
79
+ "body": "local phone = input.traits.phone\nif (phone) then return TO_SHA256_HASH(TRIM(phone)) end",
80
80
  "lang": "lua"
81
81
  }
82
82
  }
@@ -88,7 +88,7 @@
88
88
  "transforms": [
89
89
  {
90
90
  "expression": {
91
- "body": "local firstName = input.traits.firstName or input.context.traits.firstName\nif (firstName) then return TO_SHA256_HASH(LOWER(TRIM(firstName))) end",
91
+ "body": "local firstName = input.traits.firstName\nif (firstName) then return TO_SHA256_HASH(LOWER(TRIM(firstName))) end",
92
92
  "lang": "lua"
93
93
  }
94
94
  }
@@ -100,7 +100,7 @@
100
100
  "transforms": [
101
101
  {
102
102
  "expression": {
103
- "body": "local lastName = input.traits.lastName or input.context.traits.lastName\nif (lastName) then return TO_SHA256_HASH(LOWER(TRIM(lastName))) end",
103
+ "body": "local lastName = input.traits.lastName\nif (lastName) then return TO_SHA256_HASH(LOWER(TRIM(lastName))) end",
104
104
  "lang": "lua"
105
105
  }
106
106
  }
@@ -112,7 +112,7 @@
112
112
  "transforms": [
113
113
  {
114
114
  "expression": {
115
- "body": "local birthday = input.traits.birthday or input.context.traits.birthday\nif (birthday) then return TO_SHA256_HASH(LOWER(TRIM(birthday))) end",
115
+ "body": "local birthday = input.traits.birthday\nif (birthday) then return TO_SHA256_HASH(LOWER(TRIM(birthday))) end",
116
116
  "lang": "lua"
117
117
  }
118
118
  }
@@ -124,7 +124,7 @@
124
124
  "transforms": [
125
125
  {
126
126
  "expression": {
127
- "body": "local street = input.traits.address.street or input.context.traits.address.street\nif (street) then return TO_SHA256_HASH(LOWER(TRIM(street))) end",
127
+ "body": "local street = input.traits.address.street\nif (street) then return TO_SHA256_HASH(LOWER(TRIM(street))) end",
128
128
  "lang": "lua"
129
129
  }
130
130
  }
@@ -136,7 +136,7 @@
136
136
  "transforms": [
137
137
  {
138
138
  "expression": {
139
- "body": "local city = input.traits.address.city or input.context.traits.address.city\nif (city) then return TO_SHA256_HASH(LOWER(city:gsub('%s+',''))) end",
139
+ "body": "local city = input.traits.address.city\nif (city) then return TO_SHA256_HASH(LOWER(city:gsub('%s+',''))) end",
140
140
  "lang": "lua"
141
141
  }
142
142
  }
@@ -148,7 +148,7 @@
148
148
  "transforms": [
149
149
  {
150
150
  "expression": {
151
- "body": "local state = input.traits.address.state or input.context.traits.address.state\nif (state) then return TO_SHA256_HASH(LOWER(TRIM(state))) end",
151
+ "body": "local state = input.traits.address.state\nif (state) then return TO_SHA256_HASH(LOWER(TRIM(state))) end",
152
152
  "lang": "lua"
153
153
  }
154
154
  }
@@ -160,7 +160,7 @@
160
160
  "transforms": [
161
161
  {
162
162
  "expression": {
163
- "body": "local postalCode = input.traits.address.postalCode or input.context.traits.address.postalCode\nif (postalCode) then return TO_SHA256_HASH(TRIM(postalCode)) end",
163
+ "body": "local postalCode = input.traits.address.postalCode\nif (postalCode) then return TO_SHA256_HASH(TRIM(postalCode)) end",
164
164
  "lang": "lua"
165
165
  }
166
166
  }
@@ -172,7 +172,7 @@
172
172
  "transforms": [
173
173
  {
174
174
  "expression": {
175
- "body": "local country = input.traits.address.country or input.context.traits.address.country\nif (country) then return TO_SHA256_HASH(TRIM(country)) end",
175
+ "body": "local country = input.traits.address.country\nif (country) then return TO_SHA256_HASH(TRIM(country)) end",
176
176
  "lang": "lua"
177
177
  }
178
178
  }
@@ -1 +1 @@
1
- "3fb3086abc969d63566e84b2d971e6e2"
1
+ "60245c52d4f1b66f21f6c4e2bd1f7d99"
@@ -20,6 +20,14 @@
20
20
  {
21
21
  "date": "2025-04-09T22:00:00.000Z",
22
22
  "note": "Version: 1.0.0\nStable release"
23
+ },
24
+ {
25
+ "date": "2025-07-30T00:00:00.000Z",
26
+ "note": "Version: 1.1.0\nReplaced context.traits with traits."
27
+ },
28
+ {
29
+ "date": "2025-07-30T00:00:00.000Z",
30
+ "note": "Version: 1.2.0\nUpdated Lua timestamp fallback logic to use input.timestamp"
23
31
  }
24
32
  ]
25
33
  }
@@ -1 +1 @@
1
- "9f4b3ded4a30ae0d18e347091c2c3220"
1
+ "6ab42b323ecdfcf8ca70b2fca5f14d4c"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.2.0",
3
3
  "params": [
4
4
  {
5
5
  "name": "ADVERTISER_ID",
@@ -49,7 +49,7 @@
49
49
  {
50
50
  "expression": {
51
51
  "lang": "lua",
52
- "body": "return input.originalTimestamp or input.sentAt"
52
+ "body": "return input.timestamp or input.originalTimestamp or input.sentAt"
53
53
  }
54
54
  }
55
55
  ]
@@ -88,7 +88,7 @@
88
88
  "transforms": [
89
89
  {
90
90
  "expression": {
91
- "body": "local email = input.traits.email or input.context.traits.email\nif email then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn",
91
+ "body": "local email = input.traits.email\nif email then return TO_SHA256_HASH(LOWER(TRIM(email))) end\nreturn",
92
92
  "lang": "lua"
93
93
  }
94
94
  }
@@ -0,0 +1 @@
1
+ "a7e64d8711ecd49951e96e610aacc790"
@@ -0,0 +1,24 @@
1
+ {
2
+ "default": {
3
+ "endpoint": "https://track.linksynergy.com/ep?",
4
+ "method": "GET",
5
+ "headers": [
6
+ {
7
+ "key": "Accept-Encoding",
8
+ "value": "application/json"
9
+ },
10
+ {
11
+ "key": "Content-Type",
12
+ "value": "application/json"
13
+ },
14
+ {
15
+ "key": "X-Forwarded-For",
16
+ "fromEventKey": "context.ip"
17
+ }
18
+ ],
19
+ "transform": {
20
+ "lang": "lua",
21
+ "body": "local url = request.url\nlocal path = SPLIT(url, \"?\", 1)[1]\n\nlocal query = DECODE_URL_QUERY(url)\n\nlocal important_order = {\n \"mid\", \"ord\", \"tr\", \"land\", \"date\", \"cur\", \"skulist\", \"amtlist\", \"qlist\", \"coupon\", \"disamt\", \"custid\"\n}\n\nlocal ordered_parts = {}\nlocal used = {}\n\nfor _, key in ipairs(important_order) do\n local val = query[key]\n if val then\n table.insert(ordered_parts, key .. \"=\" .. QUERY_ESCAPE(val))\n used[key] = true\n end\nend\n\nfor key, val in pairs(query) do\n if not used[key] then\n table.insert(ordered_parts, key .. \"=\" .. QUERY_ESCAPE(val))\n end\nend\n\nlocal query_string = JOIN(ordered_parts, \"&\")\nrequest.url = path .. (query_string ~= \"\" and \"?\" .. query_string or \"\")\n\nreturn request"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1 @@
1
+ "98491ef4042eecbc4503c1e4fdb466a3"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "Rakuten Conversions",
6
+ "description": "Rakuten Advertising is a global digital marketing company that specializes in performance-based marketing solutions.",
7
+ "logo": "https://cdn.metarouter.io/rakuten-conversions.png",
8
+ "color": "#BF0000",
9
+ "eventSource": {
10
+ "isAndroidApp": true,
11
+ "isIosApp": true,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2025-07-30T21:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nRakuten Conversions initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "fdcfa4bfb54a1e7df3be2c279610ebf0"
@@ -0,0 +1,279 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "MERCHANT_ID",
6
+ "exampleValue": "my_merchant_id"
7
+ }
8
+ ],
9
+ "global": {
10
+ "enrichments": [
11
+ {
12
+ "staticString": "$$MERCHANT_ID$$",
13
+ "outputKey": "mid"
14
+ }
15
+ ],
16
+ "mappings": [
17
+ {
18
+ "inputKey": "context.providers.rakuten.ranSiteID",
19
+ "outputKey": "tr"
20
+ },
21
+ {
22
+ "inputKey": "context.providers.rakuten.landTimestamp",
23
+ "outputKey": "land"
24
+ },
25
+ {
26
+ "inputKey": "anonymousId",
27
+ "outputKey": "custid"
28
+ },
29
+ {
30
+ "inputKey": "context.device.advertisingId",
31
+ "outputKey": "did"
32
+ },
33
+ {
34
+ "inputKey": "input",
35
+ "outputKey": "date",
36
+ "transforms": [
37
+ {
38
+ "expression": {
39
+ "lang": "lua",
40
+ "body": "local ts = input.timestamp or input.originalTimestamp or input.sentAt\nreturn TO_DATE_TIME(ts, {outputFormat = \"20060102_1504\"})"
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "inputKey": "traits.address.country",
47
+ "outputKey": "shipcountry"
48
+ },
49
+ {
50
+ "inputKey": "input",
51
+ "outputKey": "sitename",
52
+ "transforms": [
53
+ {
54
+ "expression": {
55
+ "lang": "lua",
56
+ "body": "return SPLIT(input.context.page.url, \"?\", 1)[1] or \"\""
57
+ }
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ },
63
+ "default": {
64
+ "filters": [
65
+ {
66
+ "byEventNames": {
67
+ "action": "allow",
68
+ "events": [
69
+ ""
70
+ ]
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "eventSpecific": {
76
+ "order_completed": {
77
+ "mappings": [
78
+ {
79
+ "inputKey": "properties.order_id",
80
+ "outputKey": "ord"
81
+ },
82
+ {
83
+ "inputKey": "input",
84
+ "outputKey": "amtlist",
85
+ "transforms": [
86
+ {
87
+ "expression": {
88
+ "lang": "lua",
89
+ "body": "local amounts = JOIN(MAP(input.properties.products, function (p) return TO_ROUNDED_INT(TOTAL_VALUE(p) * 100) end), \"|\")\nif input.properties.discount then amounts = amounts .. \"|\" .. TO_ROUNDED_INT((input.properties.discount) * -1 * 100) end\nreturn amounts"
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "inputKey": "input",
96
+ "outputKey": "skulist",
97
+ "transforms": [
98
+ {
99
+ "expression": {
100
+ "lang": "lua",
101
+ "body": "local skulist = JOIN(MAP(input.properties.products, function (p) return p.sku or p.product_id or \"\" end), \"|\")\nif input.properties.discount then skulist = skulist .. \"|Discount\" end\nreturn skulist"
102
+ }
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "inputKey": "input",
108
+ "outputKey": "qlist",
109
+ "transforms": [
110
+ {
111
+ "expression": {
112
+ "lang": "lua",
113
+ "body": "local qlist = JOIN(MAP(input.properties.products, function (p) return p.quantity or 1 end), \"|\")\nif input.properties.discount then qlist = qlist .. \"|0\" end\nreturn qlist"
114
+ }
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "inputKey": "properties.currency",
120
+ "outputKey": "cur",
121
+ "transforms": [
122
+ {
123
+ "modifyString": "uppercase"
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "inputKey": "properties.checkout_id",
129
+ "outputKey": "altord"
130
+ },
131
+ {
132
+ "inputKey": "input",
133
+ "outputKey": "brandlist",
134
+ "transforms": [
135
+ {
136
+ "expression": {
137
+ "lang": "lua",
138
+ "body": "local hasOneBrand = false\nlocal brands = JOIN(MAP(input.properties.products, function (p)\n local brand = p.brand or \"\"\n if brand ~= \"\" then hasOneBrand = true end\n return brand\nend), \"|\")\nif hasOneBrand then return brands end"
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "inputKey": "input",
145
+ "outputKey": "catlist",
146
+ "transforms": [
147
+ {
148
+ "expression": {
149
+ "lang": "lua",
150
+ "body": "local hasOneCategory = false\nlocal categories = JOIN(MAP(input.properties.products, function (p)\n local category = p.category or \"\"\n if category ~= \"\" then hasOneCategory = true end\n return category\nend), \"|\")\nif hasOneCategory then return categories end"
151
+ }
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "inputKey": "properties.coupon",
157
+ "outputKey": "coupon"
158
+ },
159
+ {
160
+ "inputKey": "input",
161
+ "outputKey": "couponlist",
162
+ "transforms": [
163
+ {
164
+ "expression": {
165
+ "lang": "lua",
166
+ "body": "local hasOneCoupon = false\nlocal coupons = JOIN(MAP(input.properties.products, function (p)\n local productCoupon = p.coupon or \"\"\n if productCoupon ~= \"\" then hasOneCoupon = true end\n return productCoupon\nend), \"|\")\nif hasOneCoupon then return coupons end"
167
+ }
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "inputKey": "properties.discount",
173
+ "outputKey": "disamt"
174
+ }
175
+ ]
176
+ },
177
+ "order_canceled": {
178
+ "mappings": [
179
+ {
180
+ "inputKey": "properties.order_id",
181
+ "outputKey": "ord"
182
+ },
183
+ {
184
+ "inputKey": "input",
185
+ "outputKey": "amtlist",
186
+ "transforms": [
187
+ {
188
+ "expression": {
189
+ "lang": "lua",
190
+ "body": "local amounts = JOIN(MAP(input.properties.products, function (p) return TO_ROUNDED_INT(TOTAL_VALUE(p) * -1 * 100) end), \"|\")\nif input.properties.discount then amounts = amounts .. \"|\" .. TO_ROUNDED_INT((input.properties.discount) * 100) end\nreturn amounts"
191
+ }
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "inputKey": "input",
197
+ "outputKey": "skulist",
198
+ "transforms": [
199
+ {
200
+ "expression": {
201
+ "lang": "lua",
202
+ "body": "local skulist = JOIN(MAP(input.properties.products, function (p) return p.sku or p.product_id or \"\" end), \"|\")\nif input.properties.discount then skulist = skulist .. \"|Discount\" end\nreturn skulist"
203
+ }
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "inputKey": "input",
209
+ "outputKey": "qlist",
210
+ "transforms": [
211
+ {
212
+ "expression": {
213
+ "lang": "lua",
214
+ "body": "local qlist = JOIN(MAP(input.properties.products, function (p) return p.quantity or 1 end), \"|\")\nif input.properties.discount then qlist = qlist .. \"|0\" end\nreturn qlist"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "inputKey": "properties.currency",
221
+ "outputKey": "cur",
222
+ "transforms": [
223
+ {
224
+ "modifyString": "uppercase"
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "inputKey": "properties.checkout_id",
230
+ "outputKey": "altord"
231
+ },
232
+ {
233
+ "inputKey": "input",
234
+ "outputKey": "brandlist",
235
+ "transforms": [
236
+ {
237
+ "expression": {
238
+ "lang": "lua",
239
+ "body": "local hasOneBrand = false\nlocal brands = JOIN(MAP(input.properties.products, function (p)\n local brand = p.brand or \"\"\n if brand ~= \"\" then hasOneBrand = true end\n return brand\nend), \"|\")\nif hasOneBrand then return brands end"
240
+ }
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "inputKey": "input",
246
+ "outputKey": "catlist",
247
+ "transforms": [
248
+ {
249
+ "expression": {
250
+ "lang": "lua",
251
+ "body": "local hasOneCategory = false\nlocal categories = JOIN(MAP(input.properties.products, function (p)\n local category = p.category or \"\"\n if category ~= \"\" then hasOneCategory = true end\n return category\nend), \"|\")\nif hasOneCategory then return categories end"
252
+ }
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "inputKey": "properties.coupon",
258
+ "outputKey": "coupon"
259
+ },
260
+ {
261
+ "inputKey": "input",
262
+ "outputKey": "couponlist",
263
+ "transforms": [
264
+ {
265
+ "expression": {
266
+ "lang": "lua",
267
+ "body": "local hasOneCoupon = false\nlocal coupons = JOIN(MAP(input.properties.products, function (p)\n local productCoupon = p.coupon or \"\"\n if productCoupon ~= \"\" then hasOneCoupon = true end\n return productCoupon\nend), \"|\")\nif hasOneCoupon then return coupons end"
268
+ }
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "inputKey": "properties.discount",
274
+ "outputKey": "disamt"
275
+ }
276
+ ]
277
+ }
278
+ }
279
+ }
@@ -1 +1 @@
1
- "81cc1041a89f0424a26955f13659c92f"
1
+ "3fa37eca26cd74b774d200a2adcfd090"
@@ -16,6 +16,10 @@
16
16
  {
17
17
  "date": "2025-06-25T22:00:00.000Z",
18
18
  "note": "Version: 0.1.0\nBeta Version\nRingier Axel Springer Poland initial release"
19
+ },
20
+ {
21
+ "date": "2025-07-30T00:00:00.000Z",
22
+ "note": "Version: 0.2.0\nReplaced context.traits with traits."
19
23
  }
20
24
  ]
21
25
  }
@@ -1 +1 @@
1
- "1d3d84717c60282fd1734ab78109af18"
1
+ "ff3a1215b491a0f5fb29984cd384049c"