Widget + JS Auth

You can identify guest users in the Widget with only a few lines of code, all you need is a name and email. If you're using anonymous authentication then you can the email is optional (but still recommended).

Note: You can only identify guest or anonymous users. If the email is already associated to registered user they will be asked to login.

After a user has been identified, any interaction e.g. votes, comments, ideas, will be automatically associated to them.

Code Sample

<!-- Frill Widget (https://frill.co) -->
<script>
  window.Frill_Config = window.Frill_Config || [];
  window.Frill_Config.push({
    key: 'YOUR_WIDGET_KEY',
    callbacks: {
      onReady(widget) {
widget.identify( email: 'email@domain.com', name: 'my user' })
}
} }); </script> <script async src="https://widget.stage.frill.co/v2/widget.js"></script> <!-- End Frill Widget -->

More Examples

Check out our full example on how to use the widget identify api.

See all our widget api examples here

Still need help? Contact Us Contact Us