Last active
January 24, 2021 20:54
-
-
Save gurdasnijor/9fb3d7b77f52349c0d8ead108da5bee0 to your computer and use it in GitHub Desktop.
cart abandonment #journey-v2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.2.0", | |
"initial": "visited_site_without_adding_to_cart", | |
"key": "journey_def_v3.1", | |
"states": { | |
"visited_site_without_adding_to_cart": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"options": { | |
"durationBetween": [ | |
0, | |
604800 | |
], | |
"durationBetweenUnits": [ | |
"day", | |
"day" | |
], | |
"durationRelativeParent": true | |
}, | |
"type": "event.count", | |
"value": "Added Item To Cart" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"type": "operator", | |
"value": "not" | |
} | |
], | |
"options": { | |
"durationBetween": [ | |
86400, | |
604800 | |
], | |
"durationBetweenUnits": [ | |
"day", | |
"day" | |
], | |
"exportRef": "viewed-homepge-0" | |
}, | |
"type": "event.count", | |
"value": "Viewed Homepge" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
}, | |
"name": "Visited Site Without Adding To Cart", | |
"destinations": [] | |
}, | |
"after": [ | |
{ | |
"delay": 86400, | |
"target": "viewed_shirts", | |
"meta": { | |
"unit": "days" | |
} | |
}, | |
{ | |
"delay": 86400, | |
"target": "viewed_sweatshirts", | |
"meta": { | |
"unit": "days" | |
} | |
}, | |
{ | |
"delay": 86400, | |
"target": "viewed_pants", | |
"meta": { | |
"unit": "days" | |
} | |
} | |
] | |
}, | |
"viewed_shirts": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "last_product_viewed" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirts" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Viewed Shirts", | |
"destinations": [] | |
}, | |
"on": { | |
"vetern_user_abandon_shirts": { | |
"target": "vetern_user_abandon_shirts", | |
"condition": { | |
"children": [ | |
{ | |
"type": "trait.float", | |
"value": "lifetime_checkouts" | |
}, | |
{ | |
"type": "constant.float", | |
"value": "0" | |
} | |
], | |
"type": "operator", | |
"value": ">" | |
} | |
}, | |
"new_user_abandon_shirts": { | |
"target": "new_user_abandon_shirts", | |
"condition": { | |
"children": [ | |
{ | |
"type": "trait.float", | |
"value": "lifetime_checkouts" | |
}, | |
{ | |
"type": "constant.float", | |
"value": "0" | |
} | |
], | |
"type": "operator", | |
"value": "<=" | |
} | |
} | |
} | |
}, | |
"vetern_user_abandon_shirts": { | |
"meta": { | |
"type": "audience", | |
"name": "Vetern User Abandon Shirts", | |
"destinations": [] | |
} | |
}, | |
"new_user_abandon_shirts": { | |
"meta": { | |
"type": "audience", | |
"name": "New User Abandon Shirts", | |
"destinations": [] | |
} | |
}, | |
"viewed_sweatshirts": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "last_product_viewed" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "sweatshirts" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Viewed Sweatshirts", | |
"destinations": [] | |
}, | |
"on": { | |
"completed_shirt_checkout_email_106": { | |
"target": "completed_shirt_checkout_email_106", | |
"condition": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "email" | |
} | |
], | |
"type": "operator", | |
"value": "is not null" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "email_id" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "103" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Click Coupon Email Link" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
} | |
], | |
"type": "operator", | |
"value": "and" | |
} | |
}, | |
"didnt_complete_shirt_checkout_email_106": { | |
"target": "didnt_complete_shirt_checkout_email_106", | |
"condition": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "email" | |
} | |
], | |
"type": "operator", | |
"value": "is not null" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "email_id" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "103" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Click Coupon Email Link" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
} | |
], | |
"type": "operator", | |
"value": "and" | |
} | |
}, | |
"is_valuable_customer": { | |
"target": "is_valuable_customer", | |
"condition": { | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "email" | |
} | |
], | |
"type": "operator", | |
"value": "is not null" | |
} | |
} | |
} | |
}, | |
"is_valuable_customer": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "valuable_customer" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "true" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Is Valuable Customer", | |
"destinations": [] | |
}, | |
"on": { | |
"completed_shirt_checkout_email_13": { | |
"target": "completed_shirt_checkout_email_13", | |
"condition": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "email" | |
} | |
], | |
"type": "operator", | |
"value": "is not null" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "email_id" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "13" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Click Coupon Email Link" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
} | |
], | |
"type": "operator", | |
"value": "and" | |
} | |
}, | |
"didnt_complete_shirt_checkout_email_13": { | |
"target": "didnt_complete_shirt_checkout_email_13", | |
"condition": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "email" | |
} | |
], | |
"type": "operator", | |
"value": "is not null" | |
}, | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "email_id" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "103" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Click Coupon Email Link" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
} | |
], | |
"type": "operator", | |
"value": "and" | |
} | |
} | |
} | |
}, | |
"completed_shirt_checkout_email_106": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "product_type" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirt" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Completed Checkout" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
}, | |
"name": "Completed Shirt Checkout Email 106", | |
"destinations": [] | |
} | |
}, | |
"didnt_complete_shirt_checkout_email_106": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "product_type" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirt" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Completed Checkout" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "0" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Didnt Complete Shirt Checkout Email 106", | |
"destinations": [] | |
} | |
}, | |
"completed_shirt_checkout_email_13": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "product_type" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirt" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Completed Checkout" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "1" | |
} | |
], | |
"type": "operator", | |
"value": ">=" | |
}, | |
"name": "Completed Shirt Checkout Email 13", | |
"destinations": [] | |
} | |
}, | |
"didnt_complete_shirt_checkout_email_13": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"children": [ | |
{ | |
"type": "event.property.string", | |
"value": "product_type" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirt" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
} | |
], | |
"options": { | |
"duration": 604800, | |
"durationUnit": "day" | |
}, | |
"type": "event.count", | |
"value": "Completed Checkout" | |
}, | |
{ | |
"type": "constant.integer", | |
"value": "0" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Didnt Complete Shirt Checkout Email 13", | |
"destinations": [] | |
} | |
}, | |
"viewed_pants": { | |
"meta": { | |
"type": "audience", | |
"audience_ast": { | |
"children": [ | |
{ | |
"type": "trait.string", | |
"value": "last_product_viewed" | |
}, | |
{ | |
"type": "constant.string", | |
"value": "shirts" | |
} | |
], | |
"type": "operator", | |
"value": "=" | |
}, | |
"name": "Viewed Pants", | |
"destinations": [] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment