@metarouter/ajs-starter-kit 1.0.75 → 1.0.76
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/kit.etag.json +1 -1
- package/.dist/actioniq/metadata.json +4 -0
- package/.dist/amplitude/kit.etag.json +1 -1
- package/.dist/amplitude/playbook.etag.json +1 -1
- package/.dist/amplitude/playbook.json +5 -5
- package/.dist/thetradedesk-data-advertiser-firstparty/kit.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.etag.json +1 -1
- package/.dist/thetradedesk-data-advertiser-firstparty/playbook.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"17ec96be19e77128c237548aa219cc53"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"70f0c0318da9112cfbf9c40ace582ee6"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"9995f07e9469faf62f709a50b60ced96"
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"product_list_viewed": {
|
|
239
239
|
"enrichments": [
|
|
240
240
|
{
|
|
241
|
-
"staticString": "
|
|
241
|
+
"staticString": "product_list_viewed",
|
|
242
242
|
"outputKey": "event_type"
|
|
243
243
|
}
|
|
244
244
|
],
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"product_viewed": {
|
|
340
340
|
"enrichments": [
|
|
341
341
|
{
|
|
342
|
-
"staticString": "
|
|
342
|
+
"staticString": "product_viewed",
|
|
343
343
|
"outputKey": "event_type"
|
|
344
344
|
}
|
|
345
345
|
],
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
"product_added": {
|
|
453
453
|
"enrichments": [
|
|
454
454
|
{
|
|
455
|
-
"staticString": "
|
|
455
|
+
"staticString": "product_added",
|
|
456
456
|
"outputKey": "event_type"
|
|
457
457
|
}
|
|
458
458
|
],
|
|
@@ -569,7 +569,7 @@
|
|
|
569
569
|
"cart_viewed": {
|
|
570
570
|
"enrichments": [
|
|
571
571
|
{
|
|
572
|
-
"staticString": "
|
|
572
|
+
"staticString": "cart_viewed",
|
|
573
573
|
"outputKey": "event_type"
|
|
574
574
|
}
|
|
575
575
|
],
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
"order_completed": {
|
|
667
667
|
"enrichments": [
|
|
668
668
|
{
|
|
669
|
-
"staticString": "
|
|
669
|
+
"staticString": "order_completed",
|
|
670
670
|
"outputKey": "event_type"
|
|
671
671
|
}
|
|
672
672
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"7e25c96b1194971f91f413880709d94e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"f150cdd49747c4ec593ceac3fd1a36df"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
{
|
|
33
33
|
"expression": {
|
|
34
34
|
"lang": "lua",
|
|
35
|
-
"body": "\n-- variables needed from input schema --\nevent = LOWER(input.event)\nevent_type = LOWER(input.type)\npage_title = LOWER(input.context.page.title)\ntimestamp = input.originalTimestamp\nproducts = input.properties.products\ntotal = input.properties.total\nsingle_product_name = LOWER(input.properties.name)\nsingle_product_sku = LOWER(input.properties.sku)\n-- END --\n\nif event == null\nthen\n segment_name = \"page view | \" .. event_type .. \" | \" .. page_title\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\nelse\n segment_name = event\n if products == null\n then\n\n if event == \"
|
|
35
|
+
"body": "\n-- variables needed from input schema --\nevent = LOWER(input.event)\nevent_type = LOWER(input.type)\npage_title = LOWER(input.context.page.title)\ntimestamp = input.originalTimestamp\nproducts = input.properties.products\ntotal = input.properties.total\nsingle_product_name = LOWER(input.properties.name)\nsingle_product_sku = LOWER(input.properties.sku)\n-- END --\n\nif event == null\nthen\n segment_name = \"page view | \" .. event_type .. \" | \" .. page_title\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\nelse\n segment_name = event\n if products == null\n then\n\n if event == \"product_added\" or segment_name == \"product_viewed\"\n then\n segment_name = event .. \" | \" .. single_product_name .. \" | \" .. single_product_sku\n end\n return {{\n Name = segment_name,\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }}\n\n else\n p = {}\n p = MAP(products, function(p)\n return {\n Name = LOWER(event .. \" | \" .. p.name .. \" | \" .. p.sku),\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp\n }\n end\n )\n if total ~= null\n then\n\n -- function --\n function totalRounded(total, divisible)\n total = math.floor(total)\n if total <= 0\n then\n return \"= 0\"\n end\n total = math.floor((total + divisible) / divisible) * divisible\n return \"< \" .. total\n end\n -- END --\n\n table.insert(p, {\n Name = \"order total \" .. totalRounded(tonumber(total), 100),\n TTLInMinutes = TO_ROUNDED_INT($$TTL_IN_MINUTES$$),\n TimestampUtc = timestamp,\n })\n end\n return p\n end\nend"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
]
|