Convert visitors into customers

TrackChat's Live Chat Javascript API

Knowing who is browsing your site can be extremely useful.

Learn how to set information via TrackChat's Javascript API

01. The last line of TrackChat's initialization code looks like this:

function t(){trackchat.init({});}

02. We can pass in two variables, name and email to set these for the current visitor:

function t(){trackchat.init({name: "Thomas Buck", email: "tom@track-chat.com"});}

03. To set only the visitor's name, you can pass in name on its own:

function t(){trackchat.init({name: "Thomas Buck"});}

04. To set only the visitor's email address, you can pass in email on its own:

function t(){trackchat.init({email: "tom@track-chat.com"});}