Install Userpilot on Your Web App

In order to trigger Experiences live on your app, you must install the Userpilot script on your product or site.

Installing Userpilot on your web app is very easy, and will only take a few minutes to do so.

All you have to do is go to https://app.userpilot.io/settings/setup and copy the script and paste it before the closing </body> tag on every page of your app.

<script src = "https://deploy.userpilot.io/App Token.js"></script>
<script>
  userpilot.identify( 

    "UNIQUE USER ID", // Used to identify users 
    { 
         name: "John Doe", // Full name 
         email: "customer@example.com", // Email address 
         created_at: "1519205055" // Signup date as a Unix timestamp 

            // Additional user properties 
            // projectId: "1"
    }     
  );
</script>

IMPORTANT: If you are copy pasting the above example code, then don't forget to fill in the "App Token" with your own app token.

You must also pass the "UNIQUE USER ID" to help Userpilot identify each user.

It's also a very good idea to pass other user attributes such as Full Name, Email Address and Created_at as shown in the instructions above to help you target certain user segments such as new users.

NOTE: If your web app runs on a Single Page Application framework, then you should refer to this article in order to make sure Userpilot is fully optimized and running efficiently. 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.