Skip to content

Instantly share code, notes, and snippets.

@wetzler
Created July 19, 2016 22:38
Show Gist options
  • Save wetzler/010d7294bc33fbe4058bf53e6c27fd5e to your computer and use it in GitHub Desktop.
Save wetzler/010d7294bc33fbe4058bf53e6c27fd5e to your computer and use it in GitHub Desktop.
Keen.ready(function(){
signup_flow = new Keen.Query("funnel", {
timeframe: {
start: "2015-07-01T07:00:00.000Z" // analyze events after this date
},
steps: [
{
event_collection: "view_page",
actor_property: "visitor_id",
filters: [
{
property_name : "url.full",
operator : "contains",
property_value : "https://mywebsite/landingpageA"
}
]
},
{
event_collection: "click_try_it_button",
actor_property: "user.id"
},
{
event_collection: "choose_selection_from_offering_page",
actor_property: "visitor_id",
filters: [
{
property_name : "selection",
operator : "eq",
property_value : "SportyBusinessPackage"
}
]
},
{
event_collection: "trial_step_complete_tutorial",
optional: true
},
{
event_collection: "trial_step_write_bio",
optional: true
},
{
event_collection: "trial_step_create_content",
optional: true
},
{
event_collection: "subscribe",
optional: true
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment