Tour Triggered By

Tour trigger Funnel conditons are useful for situations where you want different Funnel conditions depending on where the tour is being triggered from (Auto Start, Checklists and Tour Links). In this example we are going to explore how have a tour Auto Start to users who have joined after a specific timestamp, but always show in Checklists and when accessed via a Tour link.

1. Pass User Created Timestamp to HelpHero

In this example we are going to pass a created_at user property to HelpHero we are assumming this is Unix timestamp in seconds.

<script>
  HelpHero.identify('<?php echo get_current_user_id(); ?>', {
    created_at: <?php echo get_current_user_created_at() ?>
  }); 
</script>
Note: this code will vary depending on the server language and frameworks you are using. Please consult with your development team and get in touch if you need more information.

2. Setup a Funnel

Now that HelpHero knows about this new user property you can setup tours to only show if the user was created after a certain timestamp OR tour is not being triggered by Auto Start.