Official Userpilot JavaScript SDK methods and usage.
userpilot
object.
Method | Parameters | Description |
---|---|---|
identify | userId, properties? | Identify a user and set properties |
anonymous | Assign a session-based ID | |
reload | options? | Reload Userpilot content |
track | name, properties? | Track a custom event |
trigger | contentId | Show specific content |
on | event, callback | Listen for Userpilot events |
off | event | Remove event listener |
once | event, callback | Listen for event once |
end | End the current flow | |
clean | Clear Userpilot storage | |
destroy | Remove all Userpilot data and content |