Tour trigger funnel conditions 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 in the last x days, but always show in checklists or when accessed via a tour link.
In this example we are going to pass a createdAt date user property to HelpHero. Learn more.
<script> // assumes user object with id (string or number) and createdAt (Date) exists in scope // the implementation will varying depending on your development setup HelpHero.identify(user.id, { createdAt: user.createdAt }); </script>
Now that HelpHero knows about this new user property you can setup tours to only show if the user signed up within the last 7 days OR tour is not being triggered by Auto Start.
