JS SDK Setup Guide

Integrate UserMotion to your own website using our simple JS snippet.

You can easily integrate UserMotion into your website with our simple JS SDK (JavaScript snippet). This allows you to receive custom events, create a customized lead scoring system, and identify your high-potential leads based on important user activities within your product.

You can go to Integrations in UserMotion App and find the setup guide. The setup guide includes following the steps below:


1. Install JS SDK

Insert the following code in your dashboard into your website, preferably on the head section.

2. Identify Users

To identify your users to UserMotion, you need to provide a unique identifier of the user and any optional properties

usermotion.identify("userid", { email: "tim@apple.com", name: "Tim Cook" });


3. Identify Groups (Companies, Teams, etc.)

UserMotion refers to a group of users as groups. This can be a company, a team of users or however you wish to group your users.

usermotion.group("groupid", { name: "Apple Inc", website: "https://apple.com" });

4. Track Events

Track your user activity. If you assign scores to these signals, you can influence the score calculation of UserMotion.

usermotion.track("event-name", { // any custom properties });
Did this answer your question?
😞
😐
😁