Skip to content

Instantly share code, notes, and snippets.

@gurdasnijor
Last active January 25, 2021 03:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gurdasnijor/5708e5dd8c15064bbb9dba22fc4da7a2 to your computer and use it in GitHub Desktop.
Save gurdasnijor/5708e5dd8c15064bbb9dba22fc4da7a2 to your computer and use it in GitHub Desktop.
journey sql #jo
INSERT INTO journeys (id, workspace_id,space_id,`key`,name, description,enabled, definition)
VALUES ('trial_conversion', 'fUWqmMQQC1M4ALKaerfQxx', 'fUWqmMQQC1M4ALKaerfQxx', 'trial_conversion', 'Trial Conversion', 'Convert to paying users', true, '{
"version": "2.0.0",
"id": "trial-conversion",
"initial": "non_converted_trials",
"key": "journey_def_v3.1",
"states": {
"non_converted_trials": {
"meta": {
"name": "Non-converted Trials",
"audience_ast": {},
"destinations": [],
"type": "audience"
},
"on": {
"non_converted_trials_web": {
"target": "non_converted_trials_web",
"cond": {
"type": "guard",
"audience_ast": {}
}
}
}
},
"non_converted_trials_web": {
"meta": {
"name": "Non-converted Trials [Web]",
"audience_ast": {},
"destinations": [],
"type": "audience"
},
"after": [
{
"delay": 604800000,
"target": "non_converted_trials_web_after_12_days",
"meta": {
"unit": "day"
}
}
]
},
"non_converted_trials_web_after_12_days": {
"meta": {
"name": "Non-Converted Trials [Web] [After 12 days]",
"audience_ast": {},
"destinations": [],
"type": "audience"
}
}
}
}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment