Version 1.4.0

03/24/25

TypeLocationEventPrevious VersionUpdated VersionNotes
parameterplaybook.yamlN/A1.3.01.4.0Updated version parameter
parameterplaybook.yamlglobalN/A{"inputKey":"input","outputKey":"action_source","transforms":[{"expression":{"body":"local t = (input.context.device.type and LOWER(input.context.device.type)) or ''\nreturn ({ ios = 'app', android = 'app' })[t] or 'website'","lang":"lua"}}]}Added mappings parameter
parameterplaybook.yamlglobalN/A{"inputKey":"context.device.adTrackingEnabled","outputKey":"app_data.advertiser_tracking_enabled"}Added mappings parameter
parameterplaybook.yamlglobalN/A{"inputKey":"context.device.adTrackingEnabled","outputKey":"app_data.application_tracking_enabled"}Added mappings parameter
parameterplaybook.yamlglobalN/A{"inputKey":"input","outputKey":"app_data.extinfo","transforms":[{"expression":{"body":"local deviceType = LOWER(input.context.device.type)\nlocal extinfoversion\nif deviceType == 'ios' then\n extinfoversion = 'i2'\nelseif deviceType == 'android' then\n extinfoversion = 'a2'\nend\n\nreturn {\nextinfoversion,\ninput.context.app.name or '',\n'', -- Short Version Example: 1.0\n'', -- Long Version Example: 1.0 long\ninput.context.os.version,\ninput.context.device.model or '',\ninput.context.locale or '',\n'', -- Timezone Abbreviation Example: PDT\ninput.context.network.carrier or '',\ninput.context.screen.width or '',\ninput.context.screen.height or '',\ninput.context.screen.density or '',\n'', -- CPU Cores Example: 2\n'', -- External Storage Size in GB Example: 13\n'', -- Free Space on External Storage in GB Example: 8\ninput.context.timezone or ''\n}","lang":"lua"}}]}Added mappings parameter
parameterplaybook.yamlglobal{"outputKey":"action_source","staticString":"website"}N/ARemoved enrichments parameter
eventplaybook.yamlcheckout_startedN/A{"enrichments":[{"outputKey":"event_name","staticString":"InitiateCheckout"}],"mappings":[{"inputKey":"properties.products","outputKey":"custom_data.content_ids","transforms":[{"pluckValues":{"extractKey":"product_id"}}]},{"defaultString":"USD","inputKey":"properties.currency","outputKey":"custom_data.currency","transforms":[{"modifyString":"uppercase"}]},{"inputKey":"input","outputKey":"custom_data.value","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end))","lang":"lua"}}]},{"inputKey":"input","outputKey":"custom_data.num_items","transforms":[{"expression":{"body":"return SUM(MAP(input.properties.products, function (p) return p.quantity or 1 end))","lang":"lua"}}]},{"inputKey":"input","outputKey":"custom_data.contents","transforms":[{"expression":{"body":"return MAP(\n input.properties.products,\n function (p)\n return {\n id=p.product_id,\n quantity=p.quantity or 1,\n item_price=p.price\n }\n end\n)","lang":"lua"}}]},{"inputKey":"properties.order_id","outputKey":"custom_data.order_id"}]}Added checkout_started event
eventplaybook.yamlpayment_info_enteredN/A{"enrichments":[{"outputKey":"event_name","staticString":"AddPaymentInfo"}],"mappings":[{"inputKey":"properties.order_id","outputKey":"custom_data.order_id"},{"inputKey":"input","outputKey":"custom_data.content_ids","transforms":[{"expression":{"body":"return { checkout_id=input.properties.checkout_id , order_id=input.properties.order_id }","lang":"lua"}}]}]}Added payment_info_entered event
eventplaybook.yamlproduct_added_to_wishlistN/A{"enrichments":[{"outputKey":"event_name","staticString":"AddToWishlist"}],"mappings":[{"inputKey":"properties.category","outputKey":"custom_data.content_category"},{"inputKey":"properties.name","outputKey":"custom_data.content_name"},{"inputKey":"properties.product_id","outputKey":"custom_data.content_ids"},{"defaultString":"USD","inputKey":"properties.currency","outputKey":"custom_data.currency","transforms":[{"modifyString":"uppercase"}]},{"inputKey":"input","outputKey":"custom_data.value","transforms":[{"expression":{"body":"return input.properties.price * (input.properties.quantity or 1)","lang":"lua"}}]},{"inputKey":"input","outputKey":"custom_data.contents","transforms":[{"expression":{"body":"return {{\n id=input.properties.product_id,\n quantity=input.properties.quantity or 1,\n item_price=input.properties.price,\n}}","lang":"lua"}}]}]}Added product_added_to_wishlist event
parameterconnection.yamlN/Av19.0v22.0Updated defaultValue parameter