talkative-sdk
v1.3.4
Published
SDK for Talkative, the easiest way to conduct a user interview
Downloads
64
Readme
talkative-sdk
Getting started
Add Talkative to your web app in less than 5 minutes
- Login to Talkative and click Create an app. Fill out all information in the Install page and note down your App ID.
- Run
npm i talkative-sdk --save
to install the SDK on your frontend. - In every page that you would like to reach a user, import the package with
import talkative from "talkative-sdk";
and on page load, calltalkative.load(YOUR_APP_ID)
whereYOUR_APP_ID
is the Talkative App ID of your app that you can find in the Install page.
You can reach your users on any page which has the load
function called. You'll see them online in your dashboard and can call them at any time.
Advanced
Tracking events
Track and segment users you want to talk to by actions they've taken
By default, if you have the Talkative snippet installed on a page, you can see which pages your users are visiting. You can also track more granular events like completeing onboarding, pressing a Submit button or trying a new feature. Simply call talkative.track(EVENT_NAME)
.
Identifying users
Identify users by email to figure out who to reach out to for user interviews
If you want to identify users with their email address, you can call
talkative.identify(YOUR_USERS_EMAIL)
on any page that has the Talkative snippet from above. As soon as you call this function, the unidentified user on your page will be labeled withYOUR_USERS_EMAIL
going forward.When logging out your user, call
talkative.logout()
so that we no longer associate new users visiting your page in the same browser.