[ { "label": "Tag an order with the UTM Parameters", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "order_add_tags", "settings": { "token_object_type": "order", "tags": "{% set attrs = order.landing_site|split('?')[1] %}\r\n{% set attr = attrs|split('&') %}\r\n{% set to_tag = [] %}\r\n{% for att in attr if att|contains('utm') %}\r\n{% set to_tag = to_tag|merge([att]) %}\r\n{% endfor %}\r\n{{to_tag|join(',')}}", "wait": "600", "cw_timezone": "Australia\/Brisbane", "custom_wait": "" }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 57334 }, "description": "This automation is fired when an is raised, the workflow fetches the order UTM attributes from the landing URL and then tags the order with the UTM parameters. " } ]