Check that Userflow.js is installed

Prev Next

You can preview content with the Chrome Extension without installing anything in your app, but your users only see flows once Userflow.js is installed. Use these three checks to confirm Userflow.js is installed and running.

1. Is your user in the Users list?

Open Users in Userflow and sort by Last Seen, newest first. If the user you're signed in to your app with is near the top, Userflow.js is installed and identifying users. Check you're looking at the right environment (switch it in the top right corner).

2. What does the Userflow Debugger show?

The Userflow Debugger runs from the Chrome Extension and checks the current page.

  1. Open your app in Chrome.

  2. Click the Userflow Chrome Extension. The Debugger opens.

  3. Read the three checks:

    • Installation: shows Installed if the Userflow.js snippet is on this page. If not, it shows an error with the page URL. Repeat on other pages of your app to check each one.

      Userflow Installation Status

    • Initialization: shows Initialized if userflow.init() has run. If not, it shows which call is missing.

      Userflow Initialization Check

    • User identification: shows the user ID, company, environment and token if userflow.identify() has run. If not, it shows a warning with a link to set up identification.

      User Identification Check

  4. Click the extension again to close the Debugger.

The Debugger can also show why a flow did or didn't auto-start. See Using the Debugger for auto-start conditions.

3. What do the browser console and Network tab show?

If your user isn't in the Users list:

  1. Open a new tab in Chrome and open DevTools (F12).

  2. Go to the Console tab, then open your app.

  3. Look for Userflow errors. If there are any, try to fix them or contact support with a screenshot.

  4. Go to the Network tab and filter by userflow.js. Check that https://js.userflow.com/es2020/userflow.js loads.

    Network panel showing userflow.js

  5. Filter by e.userflow.com and check that a WebSocket connection opens to wss://e.userflow.com/....

    Network panel showing Websocket

userflow.js loads but there's no WebSocket connection

Userflow.js is installed, but it isn't connecting. Either userflow.identify() isn't being called on every page (it needs to be), or a firewall or Content Security Policy is blocking the connection to e.userflow.com. If the Chrome Extension is the part that isn't working, see Chrome Extension not working.