Anonymous Users

Typically you would only show tours to signed in users. In this case you do not need to do anything else, just using HelpHero.identify() will be sufficient.

However if you want to show tours to anonymous users you can use HelpHero.anonymous() in place of HelpHero.identify().

<script>     
  HelpHero.anonymous(); 
</script>

Using both identify() and anonymous()

You can call HelpHero.identify() after HelpHero.anonymous() which will upgrade the existing anonymous user to a identified user in future visits.

if (!user) {
  HelpHero.anonymous();
} else {
  HelpHero.identify(user.id, details);
}