Getting started
WelcomeAPI Changelog
REST API (BETA)

Introduction

LiveSession tracking script loaded on your page provides the __ls object that can be used to execute a number of helpful methods.

Tracking script

Paste your tracking code into your website source code in <head> section.

<!-- LiveSession.io code -->
<script type="text/javascript">
!function(w, d, t, u) {
if (w.__ls) return; var f = w.__ls = function() { f.push ? f.push.apply(f, arguments) : f.store.push(arguments)};
if (!w.__ls) w.__ls = f; f.store = []; f.v = "1.0";
var ls = d.createElement(t); ls.async = true; ls.src = u;
var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(ls, s);
}(window, document, 'script', ('https:' == window.location.protocol ? 'https://' : 'http://') + 'cdn.livesession.io/track.js');
__ls("init", "YOUR_TRACK_ID" });
__ls("newPageView");
</script>
<!-- END LiveSession.io code -->
  • How to install tracking script?
  • How to check if my tracking script works?