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 copy the script and paste it before the closing  </body> tag on every page of your web application.

<script src = " Token/latest.js"></script>

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

            // Additional user properties 
            // projectId: "1"
           // trialEnds: '2019-10-31T09:29:33.401Z'

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. If you are already a user, click here to find your "App Token".

You must also pass the "UNIQUE USER ID" using the userpilot.identify() method as shown in the instructions above to help Userpilot identify each user.

The more information you pass, the more power you will have at your hands so it's 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.