Get Started
/
Methods

Methods

init

This method is an entry point for LiveSession tracking script used to initialize tracking script on your website. You can find your trackingID in LiveSession -> Settings -> Websites.

Type signture:

Examples:

with options:

options signature:

More info about keystrokes you can find here.

 

identify

Identify user and custom data to session.

Type signture:

Examples:

with params:

with companies:

data signature:

User's name and email will be the same across all of their sessions.

 

track

This method allows you to send custom event that your users perform along with custom properties.

Type signture:

Examples:

with properties:

without properties type suffix (not recommended):

properties signature:

 

newPageView

Start recording user's visit and add it to session when conditions fulfilled. If session doesn't exists it also create new session.

Type signture:

Examples:

with options:

with conditions:

with base URL:

options signature:

 

setCustomParams

Set custom properties to session.

Type signture:

Examples:

options signature:

 

getSessionURL

Get URL to current session.

Type signture:

Examples:

integration with other software:

callback signature:

 

setOptions

Set options and init LiveSession tracking stript (if it's not inited). You can find your website ID and account ID in LiveSession -> Settings -> Websites.

Type signture:

Exmaples:

with keystrokes:

 

invalidateSession

Close curent session.

Type signture:

Examples:

 

debug

Set debug logging mode.

Type signture:

Examples:

 

log

Standard console.log() statements will be recorded by LiveSession, but you have the option to log messages without adding additional noise to your users browser consoles.

Type signture:

Examples:

logLevel signature:

 

off

Turn LiveSession script off.

Type signture:

Examples:

Built with

Show your support! Star us on GitHub ⭐️